MH-ET live eink display not showing red color using GxEPD2

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() {};

@lerosen1 Hi, welcome to the forum!

What a surprise! See in README.md:

  • GDEW0213I5F 2.13" b/w flexible

Take a look at GxEPD2_display_selection_new_style.h:

//#define GxEPD2_DRIVER_CLASS GxEPD2_213_flex // GDEW0213I5F 104x212, UC8151 (IL0373)
//#define GxEPD2_DRIVER_CLASS GxEPD2_213c     // GDEW0213Z16 104x212, UC8151 (IL0373)

Same controller used, might work.

Jean-Marc

Hi @ZinggJM, thanks for your reply!

I just got one step ahead and by comparing the number on the ribbon connector, I found out that it is this panel https://www.good-display.com/product/223.html with the GDEH0213Z19 controller.

In the readme I could find * GDEW0213Z19 2.13" b/w/r which seems to work just fine with the GxEPD2_213_Z19c constructor, also displaying red :slight_smile: