Template: ESP32 Guides for SPI e-Paper
Setup Arduino IDE (Winodws)
To use the ESP32 board with Arduino IDE, you need to first add the support of the board package to the IDE. We use Windows PC as an example.
The ESP32 used here is the Waveshare ESP32 e-Paper Driver Board
- Download the Arduino IDE from Arduino website
- Install the Arduino-ESP32 Support Page:Click to download
- Unzip the support package to the hardware/espressif/esp32 folder, which is under the installation directory of Arduino IDE. You may need to create them if you didn't find the directory on your PC.
- Enter the tools folder, run the get.exe file as administrator.
- After installing, restart the Arduino IDE, and you can find the ESP DEV Module options in the Tools-Boards menu of IDE
Download Demo Codes
- Download the ESP32 Demo codes e-Paper ESP32 Driver Codes to your PC.
- Unzip the demo codes
- You should copy the esp32-waveshare-epd folder to the \hardware\espressif\esp32\libraries folder which is under the installation directory of IDE. The esp32-waveshare-epd is saved under the examples directory.
- Raw panel + ESP32 Driver Board
- If you have the ESP32 e-Paper Driver board as well as an e-Paper raw panel.You can just connect the e-paper panel to the ESP32 board as below:
- Configure the switch according to the type of display
|A||1.54inch e-Paper, 2.13inch e-Paper, 2.13inch e-Paper (D), 2.9inch e-Paper|
|B||1.54inch e-Paper (B), 1.54inch e-Paper (C)
2.13inch e-Paper (B), 2.13inch e-Paper (C)
Note: The ACeP e-Paper doesn't support this connecting method.
- e-Paper Module/HAT + ESP32 Board
- If you have the ESP32 Board as well as the e-Paper module/HAT which has PCB already, you can wire the displays by 8-pin cable pin
Run the Demo Codes
- Open the Arduino IDE
- Choose File->Examples-> waveshae-e-Paper -> And the project according to the type of display
- Build and program the ESP32 board
- Open the serial monitor, you can check the degbug information when runing the demo codes