To @ZinggJM , this is a reaction to post #3393.
Hello Jean-Marc,
It took me a while due to a delay in the shipping of the programmer for the Arduino Pro Mini, but here I am finally back with some feedback! In short, the GxEPD2_HelloWorld example works (I am so happy, thanks for helping me on this!!!), but there are some things that I cannot explain. Here below the details.
I have connected the Arduino Pro Mini with the display as follows:
BUSY -> 7
RST -> 9
DC -> 8
CS -> 10
CLK -> 13
DIN -> 11
VSYS -> Vcc
GND -> GND
See also figure:
I have compiled and uploaded the GxEPD2_HelloWorld example from the library (version 1.5.2) with the following changes:
In GxEPD2_display_selection_new_style.h:
#define GxEPD2_DRIVER_CLASS GxEPD2_213_BN // DEPG0213BN 128x250, SSD1680, TTGO T5 V2.4.1, V2.3.1
To get some extra information, I have added in GxEPD2_HelloWorld.ino, just at the beginning of the void setup() function and just before the call to "display.init(115200, true, 2, false);":
void setup()
{
Serial.begin(115200);
Serial.println();
Serial.println("setup");
delay(100);
//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();
}
After uploading, I didn't see any reactions from the display, I could see however the following on the serial monitor (this goes in an endless loop, I am just coping the initial part):
14:08:29.207 ->
14:08:29.207 -> setup
14:08:30.772 ->
14:08:30.772 -> setup
14:08:32.335 ->
14:08:32.335 -> setup
14:08:33.898 ->
14:08:33.898 -> setup
14:08:35.461 ->
14:08:35.461 -> setup
It seems that, every time the call to
display.init(115200, true, 2, false);
is reached, the program crashes (?) and it starts again from the beginning, thus by printing again the string "setup". It seems that this takes approximately 1.5 s.
Later, just by chance, it happened to me to repeat the same process but with the VSYS -> Vcc disconnected. Now the GxEPD2_HelloWorld works and I see appearing on the display the "Hello World!" string. From the serial monitor the following appears:
14:11:58.152 ->
14:11:58.152 -> setup
14:11:58.417 -> _PowerOn : 94248
14:12:04.401 -> _Update_Full : 5224480
14:12:04.933 -> _PowerOff : 79592
So, I cannot explain to myself how it is possible that it works only when I disconnect the power!? I am very curious if you have perhaps any ideas on this?
Perhaps good to mention: you had already found the display that I am using and you reported the following link:
https://nl.aliexpress.com/item/1005002121960368.html?gatewayAdapt=glo2nld
and you indicated that the inking on the flex connector is FPC-7528, indeed from that site I see the same: FPC-7528 S (I don't know if the extra "S" matters). Now I also have physically looked at my display, there on the flex connector is given:
HINK-E0213A22-AO
SLH 1948
See also figure:
which is different. Does it make sense to you? I don't know how to interpret these codes.
So if you would have any ideas, please let me know! Thanks in advance for your great help!
Regards,
Carlo



