GxEPD2 Version 1.5.0 vs. 1.5.1

Hey!

A few years ago, I made a project with a 2,9" ePaper. Now I'm try to compile the sketch again but that dosn't work. I went back to older versions of the GxEPD2 library and find out that my sketch work up to Version 1.5.0 but not with 1.5.1. and above.

I'm not fimilar in understanding the sourcecode of that library. So I'm unable to retrace the difference between these versions. Can someone help me to get my old sketch working with the actal Library?

My display was defined as

GxEPD2_BW<GxEPD2_213, GxEPD2_213::HEIGHT> display(GxEPD2_213(/*CS=15*/ SS, /*DC=4*/ 4, /*RST=2*/ 2, /*BUSY=5*/ 5))

Thank you and best regards,
Bernd

@btro , welcome to the forum!

Your issue can't be analyzed (by me), without knowing what target you compile for (board selection).

And of course any reader of your post would expect to get the information from your compile.
Report the error messages, in a code window, please.
-jz-

But you selected the 2.13" one to compile for. Is this what you intended?

And if you can successfully compile GxEPD2_Example.ino for your display and your target, then we would need to know your code that causes your issue. And in this case you should change your topic title!

I'm sorry for giving an unclear error message and specifying the wrong display size.

The project uses a Waveshare e-Paper ESP8266 driver board with a 2.13" B/W display. I'm trying to compile GxEPD2_HelloWorld.ino. There are no compiler error messages.

The example sketch from version 1.5.0 shows “Hello World”. In the example from 1.5.1 the display remains white. The initialization seems to work for both because the display flashes when starting.

Same behavior with GxEPD2_Example.ino

My configuration:

GxEPD2_BW<GxEPD2_213, GxEPD2_213::HEIGHT> display(GxEPD2_213(/*CS=15*/ SS, /*DC=4*/ 4, /*RST=2*/ 2, /*BUSY=5*/ 5)); // GDE0213B1 128x250, IL3895, phased out

Thank you and Best regards
Bernd

Ok, with your added information, I could check.
But I will not do any work, or provide any more answers, unless you change that offensive title.

@btro , thank you for reporting this issue, and thank you for the updated topic title.

I confirm that the driver class GxEPD2_213.cpp is broken since version 1.5.1.

Lines 101 and 102 should be swapped:

  _startTransfer();
  _writeCommand(0x24);

to

  _writeCommand(0x24);
  _startTransfer();

I will check in this modification to version 1.5.6 on GitHub. This version will be released after some release test.
-jz-

Hi Jean-Marc,

thank you very much, after this change it works for me!

Best regards
Bernd

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.