Hi,
im trying to use my eink display (link to aliexpress, red version with the library zinggjm/GxEPD2 @ ^1.4.4
Using the GxEPD2_213_flex works just fine for drwaing black and white text or shapes but when trying to draw something in red color, it shows nothing / white. Please find my example code below, the first text does not appear but takes it spaces and the second text is displayed correctly shifted to the right.
#include <Arduino.h>
#include <Wire.h>
#include <GxEPD2_BW.h> // including both doesn't use more code or ram
#include <GxEPD2_3C.h> // including both doesn't use more code or ram
#define SS D2
GxEPD2_3C<GxEPD2_213_flex, GxEPD2_213_flex::HEIGHT> display(GxEPD2_213_flex(/*CS=D8*/ SS, /*DC=D3*/ D3, /*RST=D4*/ -1, /*BUSY=D2*/ -1));
void setup()
{
display.init();
display.setRotation(1);
display.firstPage();
do
{
display.fillScreen(GxEPD_WHITE);
display.setTextColor(GxEPD_RED);
display.print("Hello World");
display.setTextColor(GxEPD_BLACK);
display.print("Hello World");
}
while (display.nextPage());
}
void loop() {};