epaper-hello-world.ino

M5Stack PaperDIY Complete Kit ESP32-S3 e-paper Development Kit · File : epaper-hello-world.ino · Language : C++ (Arduino) · Use case : Afficher du texte simple sur l'écran e-paper ED047TC1 de 4,7 pouces.

Initializes the e-paper screen and displays a welcome message.

Requires M5EPD library. The ED047TC1 screen uses an 8-bit parallel interface. GC16 mode offers the best grayscale quality. Ensure the battery is charged to avoid display artifacts.

epaper-hello-world.ino

#include <M5EPD.h>

M5EPD_Canvas canvas(&M5.EPD);

void setup() {
  M5.begin();
  M5.EPD.SetRotation(90);
  M5.EPD.Clear(true);
  canvas.createCanvas(960, 540);
  canvas.setTextSize(30);
  canvas.setCursor(100, 100);
  canvas.println("Hello PaperDIY!");
  canvas.pushCanvas(0, 0, UPDATE_MODE_GC16);
}

void loop() {
  // L'écran e-paper ne nécessite pas de rafraîchissement continu
  delay(10000);
}

← Back to the board