epaper-hello-world.ino
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);
}