Hello,
I bought a set, consisting of a Waveshare driver board and a Waveshare display, for a school project.
My current problem is rendering an image on the display. For me, it is the first time that I am working with an ESP32, an e-paper and the Arduino IDE. I've already managed to connect to the ESP32 and get a simple Blink program running. Now I'm trying to control the e-paper display, I tried to use the "GxEPD2_HelloWorld.ino by Jean-Marc Zingg" https://github.com/ZinggJM/GxEPD2/tree/master/examples/GxEPD2_HelloWorldand then selected the "GxEPD2_750_T7"
The only line of code I changed is:
GxEPD2_display_selection_added.h
Line 69 GxEPD2_BW<GxEPD2_750_T7, MAX_HEIGHT(GxEPD2_750_T7)> display(GxEPD2_750_T7(/*CS=10*/ 15, /*DC=*/ 27, /*RST=*/ 26, /*BUSY=*/ 25)); // GDEW075T7 800x480, EK79655 (GD7965)
Line 69 of GxEPD2_display_selection_added.h is in the conditional compile section for Arduino Due.
You should have had a compile error, unless you selected Arduino Due to compile for.
In GxEPD2_display_selection.h there is a conditional compile section for ESP32, and in the second part the selections for the ESP32 Driver board, with an important remark (line 300):
// ***** for mapping of Waveshare ESP32 Driver Board *****
// use Board "ESP32 Dev Module" to build with Arduino IDE
// uncomment next line to use HSPI for EPD (and e.g VSPI for SD), e.g. with Waveshare ESP32 Driver Board
//#define USE_HSPI_FOR_EPD
// select one, can use full buffer size (full HEIGHT)
But:
// for handling alternative SPI pins (ESP32, RP2040) see example GxEPD2_Example.ino
The code to handle #define USE_HSPI_FOR_EPD is only part of GxEPD2_Example.ino.
Line 348 would be the line to select for your panel, according to the inking.
For more details about using this Driver Board with its special SPI pins, take a look at the example GxEPD2_Example.
-jz-