// Display-Test für das Waveshare 2.9" e-Paper Module Rev2.1 (296x128, SSD1680, schwarz/weiß) // am Seeed Studio XIAO ESP32-C3. // Verkabelung: VCC+PWR→3V3, GND→GND, DIN→D10, CLK→D8, CS→D1, DC→D2, RST→D5, BUSY→D4. #include #include #include GxEPD2_BW display( GxEPD2_290_T94_V2(/*CS=*/D1, /*DC=*/D2, /*RST=*/D5, /*BUSY=*/D4)); void setup() { // Diagnose-Ausgabe auf USB-Serial (Busy-Zeiten), 2 ms Reset-Puls für Waveshare-Boards display.init(115200, true, 2, false); display.setRotation(1); // Querformat 296x128 display.setTextColor(GxEPD_BLACK); display.setFullWindow(); display.firstPage(); do { display.fillScreen(GxEPD_WHITE); display.drawRoundRect(4, 4, display.width() - 8, display.height() - 8, 8, GxEPD_BLACK); display.setFont(&FreeSansBold18pt7b); display.setCursor(20, 50); display.print("esticky"); display.setFont(&FreeSans9pt7b); display.setCursor(20, 85); display.print("Hallo vom XIAO ESP32-C3!"); display.setCursor(20, 110); display.print("Waveshare 2.9\" Rev2.1"); } while (display.nextPage()); display.hibernate(); // Bild bleibt ohne Strom stehen Serial.println("Display aktualisiert, Display im Ruhezustand."); } void loop() {}