#include <GxEPD2_BW.h>
#include <Adafruit_GFX.h> // Core graphics library
#include <Fonts/FreeMonoBold12pt7b.h>
#include <Fonts/FreeSerif9pt7b.h>
// Set up the e-paper display
GxEPD2_BW<GxEPD2_290, GxEPD2_290::HEIGHT> display(GxEPD2_290(/*CS=*/ 5, /*DC=*/ 17, /*RST=*/ 16, /*BUSY=*/ 4));
void setup() {
Serial.begin(115200);
// Initialize the e-paper display
display.init();
display.setRotation(1);
}
void loop() {
// Clear the display
display.fillScreen(GxEPD_WHITE);
// Draw "Hello World" in the center of the display
display.setFont(&FreeMonoBold12pt7b);
display.setTextColor(GxEPD_BLACK);
display.setCursor((display.width() - 11) / 2, display.height() / 2);
display.println("Hello World");
// Update the display
display.display();
// Wait for 10 seconds before clearing the display and drawing "Hello World" again
delay(10000);
}
esp:VIN
esp:GND.2
esp:D13
esp:D12
esp:D14
esp:D27
esp:D26
esp:D25
esp:D33
esp:D32
esp:D35
esp:D34
esp:VN
esp:VP
esp:EN
esp:3V3
esp:GND.1
esp:D15
esp:D2
esp:D4
esp:RX2
esp:TX2
esp:D5
esp:D18
esp:D19
esp:D21
esp:RX0
esp:TX0
esp:D22
esp:D23
epd1:BUSY
epd1:RST
epd1:DC
epd1:CS
epd1:CLK
epd1:DIN
epd1:VCC
epd1:GND