#include <GxEPD.h>
#include <GxGDEH029A1/GxGDEH029A1.h> // Driver for 2.9-inch e-paper display
#include <Adafruit_GFX.h> // Graphics library
// Pin definitions
#define CS_PIN 10
#define DC_PIN 9
#define RST_PIN 8
#define BUSY_PIN 7
// Initialize the e-paper display
GxIO_Class io(SPI, CS_PIN, DC_PIN, RST_PIN);
GxEPD_Class display(io, RST_PIN, BUSY_PIN);
void setup() {
// Initialize Serial Monitor
Serial.begin(115200);
Serial.println("E-Paper Display with Arduino Uno");
// Initialize the e-paper display
display.init();
// Clear the display
display.fillScreen(GxEPD_WHITE);
display.update();
// Display text
display.setTextColor(GxEPD_BLACK);
display.setCursor(10, 30); // Set cursor position
display.setTextSize(2); // Set text size
display.print("Hello, E-Paper!");
// Update the display to show the content
display.update();
}
void loop() {
// Leave empty for static display
}
uno:A5.2
uno:A4.2
uno:AREF
uno:GND.1
uno:13
uno:12
uno:11
uno:10
uno:9
uno:8
uno:7
uno:6
uno:5
uno:4
uno:3
uno:2
uno:1
uno:0
uno:IOREF
uno:RESET
uno:3.3V
uno:5V
uno:GND.2
uno:GND.3
uno:VIN
uno:A0
uno:A1
uno:A2
uno:A3
uno:A4
uno:A5
epd1:BUSY
epd1:RST
epd1:DC
epd1:CS
epd1:CLK
epd1:DIN
epd1:VCC
epd1:GND