how to use esp32 spi with e-paper module ?

Hello,
I'm new to arduino and not that good at programming, I've been stuck using the the "DOIT ESP32 DEVKIT V1" with a "Waveshare 2.9Inch e-paper Module B" for quite a while now...

I tried tutorials that used ESP32 and waveshare's modules, constructor documentation, but I'm still stuck on what wiring is the right one, what to code to setup SPI and to at least fill in Black the whole display.

These are the parts I use:

Can anyone help me out sort things?
Ty :slight_smile:

Hello Sofloan,

You are new to Arduino, but you certainly have heard of Google!
And on top right of this page there is a search button, a looking glass.
You should get quite an amount of answers when searching for Waveshare e-paper, e.g.:

Waveshare e-paper displays with SPI

You could try to use the library GxEPD2, which is available with Library Manager.

// mapping suggestion for ESP32, e.g. LOLIN32, see .../variants/.../pins_arduino.h for your board
// NOTE: there are variants with different pins for SPI ! CHECK SPI PINS OF YOUR BOARD
// BUSY -> 4, RST -> 16, DC -> 17, CS -> SS(5), CLK -> SCK(18), DIN -> MOSI(23), GND -> GND, 3.3V -> 3.3V
#if defined(ESP32)
// select one and adapt to your mapping, can use full buffer size (full HEIGHT)
//GxEPD2_BW<GxEPD2_154, GxEPD2_154::HEIGHT> display(GxEPD2_154(/*CS=5*/ SS, /*DC=*/ 17, /*RST=*/ 16, /*BUSY=*/ 4));
//GxEPD2_BW<GxEPD2_213, GxEPD2_213::HEIGHT> display(GxEPD2_213(/*CS=5*/ SS, /*DC=*/ 17, /*RST=*/ 16, /*BUSY=*/ 4));
//GxEPD2_BW<GxEPD2_213_flex, GxEPD2_213_flex::HEIGHT> display(GxEPD2_213_flex(/*CS=5*/ SS, /*DC=*/ 17, /*RST=*/ 16, /*BUSY=*/ 4)); // GDEW0213I5F
GxEPD2_BW<GxEPD2_290, GxEPD2_290::HEIGHT> display(GxEPD2_290(/*CS=5*/ SS, /*DC=*/ 17, /*RST=*/ 16, /*BUSY=*/ 4));
...

Choose a different pin for CS and adapt the constructor parameter, if standard SS pin interferes with boot mode.