Hello.
So I am stupid and I can't understand in which way.
I have a waveshare 4.2" b/w and I have hooked it correctly to an arduino uno with great results using GxEPD2.
Now I tried doing the same with my bluepill, with no result whatsoever.
I have the latest core by stm, and use an stlink v2 to upload.
I'm trying the default "Example" sketch.
Examining everything with my scope I can see that PA5, which is sck is displaying an sck activity and PA7 is displaying serial data -like behaviour.
The problem is that I cannot find what the other pins are. I tried probing around the board after the reset but nothing works. I tried using the following:
// adapt the constructor parameters to your wiring
GxEPD2_DISPLAY_CLASS<GxEPD2_DRIVER_CLASS, MAX_HEIGHT(GxEPD2_DRIVER_CLASS)> display(GxEPD2_DRIVER_CLASS(/*CS=4*/ 3, /*DC=*/ 2, /*RST=*/ 1, /*BUSY=*/ 0));
or
// adapt the constructor parameters to your wiring
GxEPD2_DISPLAY_CLASS<GxEPD2_DRIVER_CLASS, MAX_HEIGHT(GxEPD2_DRIVER_CLASS)> display(GxEPD2_DRIVER_CLASS(/*CS=4*/ PA3, /*DC=*/ PA2, /*RST=*/ PA1, /*BUSY=*/ PA0));
or
// adapt the constructor parameters to your wiring
GxEPD2_DISPLAY_CLASS<GxEPD2_DRIVER_CLASS, MAX_HEIGHT(GxEPD2_DRIVER_CLASS)> display(GxEPD2_DRIVER_CLASS(/*CS=4*/ PA_3, /*DC=*/ PA_2, /*RST=*/ PA_1, /*BUSY=*/ PA_0));
or even
// adapt the constructor parameters to your wiring
GxEPD2_DISPLAY_CLASS<GxEPD2_DRIVER_CLASS, MAX_HEIGHT(GxEPD2_DRIVER_CLASS)> display(GxEPD2_DRIVER_CLASS(/*CS=4*/ A3, /*DC=*/ A2, /*RST=*/ A1, /*BUSY=*/ A0));
But the selected pin never display anything at all on them during the serial communication. I tried hooking up the display regardless but to no avail.
The rest of the entire sketch, meaning all of the files, are the default, except for the fact that I uncommented
#define GxEPD2_DISPLAY_CLASS GxEPD2_BW
#define GxEPD2_DRIVER_CLASS GxEPD2_420 // GDEW042T2 400x300, UC8176 (IL0398)
what am I doing wrong?
Thanks