All wiring guides

Free wiring guides

Wire the 4.2 in e-paper screen to the ESP32-S3

E-paper screen, 4.2 in, 400×300, SPI. Paper-like screen that keeps its picture with no power.

When buying: E-paper panels differ by revision. The sketch names the driver class: match it to the one printed on your panel's ribbon.

Which pin goes where

On the partOn the ESP32-S3
VCC3V3
GNDGND
DINGPIO 11
CLKGPIO 12
CSGPIO 10
DCGPIO 13
RSTGPIO 14
BUSYGPIO 4

Wire it with the USB cable unplugged. Follow the names printed on your own part: makers sometimes reorder the pins.

In 3D

Example sketch

// E-paper screen, 4.2 in, 400×300, SPI
// on the ESP32-S3-DevKitC-1 (N8R2 or N16R8)
// https://stem.manusignal.com/en/parts/e-paper-4-2-inch-esp32-s3
#include <SPI.h>
#include <GxEPD2_BW.h>
#include <Fonts/FreeSansBold24pt7b.h>

const int PIN_DIN = 11;
const int PIN_CLK = 12;
const int PIN_CS = 10;
const int PIN_DC = 13;
const int PIN_RST = 14;
const int PIN_BUSY = 4;

// The driver class must match your panel: see the GxEPD2 examples for the list.
GxEPD2_BW<GxEPD2_420_GDEY042T81, GxEPD2_420_GDEY042T81::HEIGHT> paper(GxEPD2_420_GDEY042T81(PIN_CS, PIN_DC, PIN_RST, PIN_BUSY));

void setup() {
  SPI.begin(PIN_CLK, -1, PIN_DIN, PIN_CS);
  paper.init(115200, true, 2, false);
  paper.setFullWindow();
  paper.firstPage();
  do {
    paper.fillScreen(GxEPD_WHITE);
    paper.setTextColor(GxEPD_BLACK);
    paper.setFont(&FreeSansBold24pt7b);
    paper.setCursor(40, 160);
    paper.print("It works");
  } while (paper.nextPage());
  paper.hibernate();
}

void loop() {
  delay(1000);
}
  • Tools > Board > ESP32S3 Dev Module, then Tools > Port and choose the board's port.
  • GxEPD2: install it from Sketch > Include Library > Manage Libraries.

This sketch is compiled for the board before the page is published. It has not been run on real hardware by us.

What you should see

After a few seconds of flickering, the panel shows “It works” and keeps it with the power off.

If it does not work

The e-paper never changes.
BUSY must be wired: the sketch waits on it. Then check the driver class in the sketch matches your panel.

The same part on the ESP32-C3

Build something with it

These Build Packs use this part on this board, with the same pins.

More parts on the ESP32-S3