Hi Robert,
Im having the same issue as you! The code compiles and downloads, but nothing happens on the screen. I borrowed your code, hope that's okay. I need to display different statements on the display, but again, I can't seem to connect to the display. I have tried everything and looked at different forums for answers. How did you get your screen to work? I hope you can help me. I have added the code + setup.
Kind regards,
Naja
#include <GxEPD2_BW.h>
#include <Fonts/FreeMono12pt7b.h>
// Connections for Adafruit ESP32 Feather
static const uint8_t EPD_BUSY = 32; // Ada 32 to EPD BUSY
static const uint8_t EPD_CS = 15; // Ada 15 to EPD CS
static const uint8_t EPD_RST = 27; // Ada 27 to EPD RST
static const uint8_t EPD_DC = 33; // Ada 33 to EPD DC
static const uint8_t EPD_SCK = 5; // Ada 5 to EPD CLK
static const uint8_t EPD_MISO = 19; // Master-In Slave-Out not used, as no data from display
static const uint8_t EPD_MOSI = 18; // Ada 18 to EPD DIN
//Include the appropriate line from the 'GxEPD2_Example' code for your particular display.
//This works for the 2.9 inch black and white display. Add pin numbers.
GxEPD2_BW<GxEPD2_213_flex, GxEPD2_213_flex::HEIGHT> display(GxEPD2_213_flex(/CS=5/SS, /DC=/ 33, /RST=/ 27, /BUSY=/ 32));
void setup() {
// Initialize display and set font
display.init();
display.setRotation(3); // landscape orientaion
display.setFullWindow();
display.setFont(&FreeMono12pt7b);
display.setTextColor(GxEPD_BLACK, GxEPD_WHITE);
// Write something to display buffer
display.fillScreen(GxEPD_WHITE);
display.setCursor(2, 20);
display.print("Hello World!");
// Update display
display.display();
}
void loop() {
// These aren't the droids you're looking for.
}
