ESP32

Note

Before compiling or uploading the example, install the esp32 board package by Espressif Systems in Arduino IDE. Follow Environment Configuration to complete the installation. If the package is already installed, continue below.

Hardware Connection

Use the module’s 8-pin header. The examples provide a default ESP32-S3 profile and an alternate classic ESP32 profile. Link according to the table below.

ESP32-S3 (default)

ESP32-S3 Pin Correspondence Table

E-paper module pin

ESP32-S3 GPIO

VCC

3.3V

GND

GND

DIN / MOSI

GPIO41

CLK / SCK

GPIO42

CS

GPIO4

DC

GPIO5

RST

GPIO35

BUSY

GPIO36

Classic ESP32

Classic ESP32 Pin Correspondence Table

E-paper module pin

ESP32 GPIO

VCC

3.3V

GND

GND

DIN / MOSI

GPIO2

CLK / SCK

GPIO4

CS

GPIO5

DC

GPIO18

RST

GPIO19

BUSY

GPIO21

For classic ESP32, select EPD_BOARD_ESP32_CLASSIC instead of the default EPD_BOARD_ESP32_S3 profile in the matching LAFVIN-EPD board configuration.

../_images/switch.png

The module regulates the supply internally and level-translates the host signals. The reference driver sets the SPI frequency to 4 MHz.

Run The Demo

Download the code by clicking this link: Download Code

After downloading and extracting the files, navigate to the ESP32/EPD290_4C folder where you’ll find the example programs:

../_images/fold3.png

Arduino Example Folder

Open the EPD290_4C.ino file:

../_images/fold4.png

Opening the Example File

Select the corresponding Board and Port in the Tools menu of the Arduino IDE:

../_images/esp32s3-1.png

Esp32s3 Selecting Board and Port

../_images/esp32-1.png

Esp32 Selecting Board and Port

Finally, click upload. A successful upload will look like this (Arduino 2.3.10):

../_images/esp32s3-2.png

Successful Upload

ESP32-S3 running the LAFVIN 2.9-inch four-colour e-paper example.