Many thanks @bns !
For sure I didn’t know those secret files and they are helpful.
I have to say if it is not obvious yet I’m a total beginner here.
So following your advice, I dug into this GxEPD2_display_selection_new_style.h example.
You’re right, L93 sounds like the good one.
So I uncommented this line and also line 22
#define GxEPD2_DISPLAY_CLASS GxEPD2_3C
Now I guess I have to set up the board?
I can see a lot of arduino lines within “if blocks”, I think none of them is relevant to my board right?
Should I comment everything and try to set up those lines? (L232-235)
’ GxEPD2_DISPLAY_CLASS < GxEPD2_DRIVER_CLASS, MAX_HEIGHT(GxEPD2_DRIVER_CLASS) > display(GxEPD2_DRIVER_CLASS(/sck=/ 13, /miso=/ 12, /mosi=/ 14,
/cs_m1=/ 23, /cs_s1=/ 22, /cs_m2=/ 16, /cs_s2=/ 19,
/dc1=/ 25, /dc2=/ 17, /rst1=/ 33, /rst2=/ 5,
/busy_m1=/ 32, /busy_s1=/ 26, /busy_m2=/ 18, /busy_s2=/ 4));’
I understood that I needed to be careful with the pinouts
I did not find technical documentation yet on this point, but an IA research told me I should use CS:5; DC:17; RST:16 & BUSY:4
So it gave me that simple sketch that eventually didn’t work
#include <GxEPD2_3C.h>
#include <Adafruit_GFX.h>
#define EPD_CS 5
#define EPD_DC 17
#define EPD_RST 16
#define EPD_BUSY 4
GxEPD2_3C<GxEPD2_420c, GxEPD2_420c::HEIGHT> display(GxEPD2_420c(EPD_CS, EPD_DC, EPD_RST, EPD_BUSY));
void setup()
{
display.init();
display.setRotation(1);
display.setTextColor(GxEPD_BLACK);
display.setCursor(10, 40);
display.firstPage();
do {
display.fillScreen(GxEPD_WHITE);
display.print("hello world!");
} while (display.nextPage());
}
void loop() {}
Could you provide me further assistance please? Many thanks