Hardware:
Seeed XIAO C3 MCU
Seeed Driver Board (More info here.)
2.13" Display (GDEY0213B74 122x250, SSD1680, FPC-A002 20.04.08)
Problem:
The first time I ran the GxEPD2 helloWorld example on this hardware, the display started a full refresh, but stopped while it was mostly black but with a little grey. No matter what code I run now, and if I run the same code again, nothing happens. It has been stuck on this same screen since that first run. I am not getting any busy errors, and the serial output looks normal from what I can tell. All libraries and dependencies are up to date. I have posted the code and output below.
I am honestly lost as to what the problem could be, and I am coming here as a last hope. Starting to think it could be the driver board at this point but I don't have another on hands to test with. Any help would be greatly appreciated.
Output:
Serial Monitor:
_Update_Full : 1751001
_Update_Full : 1750000
Display:
Code:
#include <GxEPD2_BW.h>
#include <GxEPD2_3C.h>
#include <GxEPD2_4C.h>
#include <GxEPD2_7C.h>
#include <Fonts/FreeMonoBold9pt7b.h>
// select the display class and display driver class in the following file (new style):
#include "GxEPD2_display_selection_new_style.h"
// or select the display constructor line in one of the following files (old style):
#include "GxEPD2_display_selection.h"
#include "GxEPD2_display_selection_added.h"
// alternately you can copy the constructor from GxEPD2_display_selection.h or GxEPD2_display_selection_added.h to here
// e.g. for Wemos D1 mini:
//GxEPD2_BW<GxEPD2_154_D67, GxEPD2_154_D67::HEIGHT> display(GxEPD2_154_D67(/*CS=D8*/ SS, /*DC=D3*/ 0, /*RST=D4*/ 2, /*BUSY=D2*/ 4)); // GDEH0154D67
GxEPD2_BW<GxEPD2_213_GDEY0213B74, GxEPD2_213_GDEY0213B74::HEIGHT> display(GxEPD2_213_GDEY0213B74(D1,D3,D0,D2)); // GDEY0213B74 122x250, SSD1680, (FPC-A002 20.04.08)
// for handling alternative SPI pins (ESP32, RP2040) see example GxEPD2_Example.ino
void setup()
{
//display.init(115200); // default 10ms reset pulse, e.g. for bare panels with DESPI-C02
display.init(115200, true, 2, false); // USE THIS for Waveshare boards with "clever" reset circuit, 2ms reset pulse
helloWorld();
display.hibernate();
}
const char HelloWorld[] = "Hello World!";
void helloWorld()
{
display.setRotation(1);
display.setFont(&FreeMonoBold9pt7b);
display.setTextColor(GxEPD_BLACK);
int16_t tbx, tby; uint16_t tbw, tbh;
display.getTextBounds(HelloWorld, 0, 0, &tbx, &tby, &tbw, &tbh);
// center the bounding box by transposition of the origin:
uint16_t x = ((display.width() - tbw) / 2) - tbx;
uint16_t y = ((display.height() - tbh) / 2) - tby;
display.setFullWindow();
display.firstPage();
do
{
display.fillScreen(GxEPD_WHITE);
display.setCursor(x, y);
display.print(HelloWorld);
}
while (display.nextPage());
}
void loop() {};
