Boards / Common wiring

Waveshare ESP32-S3-Pico + 2" Capacitive Touch LCD + PCM5102A DAC

Waveshare's ESP32-S3-Pico wired to their 2" 240x320 ST7789T3 touch screen (CST816D) and a PCM5102A I2S DAC: a small HiFi player. Screen pins as Waveshare's own ESP32-S3 table.

Waveshare ESP32-S3-Pico + 2" Capacitive Touch LCD + PCM5102A DAC: a 240 by 320 panel, drawn from the preset
Drawn from the preset - no vendor photograph of this board was published.

Building for it

A project is made for one toolchain, picked when you start it. All four can drive this board:

Toolchain
Arduino (C++)Every board, every widget and every peripheral here. The most control, and the most to set up. Start a project
MicroPythonChange a screen by editing a file on the board. No compiler once it is flashed. Start a project
ESPHomeNo compiler to install, and the panel can join Home Assistant as real entities. Start a project
ESP-IDF (C)Espressif's own framework: esp_lcd, the component registry and idf.py, with nothing of Arduino in it. Start a project

At a glance

PartDetail
MakerWaveshare
MCUESP32-S3
Xtensa LX7 dual-core @ 240 MHz, 512 KB SRAM (+ 2-16 MB PSRAM on most modules)
DisplaySitronix ST7789, 240 x 320 px, SPI (4-wire serial), 16-bit colour
TouchHynitron CST816S (capacitive, I2C)
BacklightGPIO 6, dimmable (PWM)
Memory16 MB flash, 2 MB quad PSRAM (N16R2)
Graphics libraryGFX Library for Arduino

Display pins

ST7789 on SPI (4-wire serial): SPI clock 40 MHz, host SPI2_HOST, RGB colour order, inversion on.

SignalPin
SCK / CLKGPIO 1
MOSI / SDAGPIO 2
MISO / SDOGPIO 42
CSGPIO 39
DC / RSGPIO 41
RESETGPIO 40
BacklightGPIO 6

Touch pins

CST816S: I2C address 0x15, 400 kHz.

SignalPin
SDAGPIO 15
SCLGPIO 7
INT / IRQGPIO 17
RESETGPIO 16

Also on the board

The preset adds these to the Hardware tab with the board, so a sensor can go straight onto the connector.

Check your revision. Three parts you wire yourself. Screen (Waveshare 2inch Capacitive Touch LCD, 3V3 to 3V3, VCC left unconnected): SCLK 1, MOSI 2, MISO 42, LCD_CS 39, LCD_DC 41, LCD_RST 40, LCD_BL 6, TP_SDA 15, TP_SCL 7, TP_INT 17, TP_RST 16, SD_CS 38 - Waveshare's own ESP32-S3 table. PCM5102A: BCK 4, LRCK (LCK) 5, DIN 8, VIN 3V3 or 5V as the breakout takes it, GND; its SCK to GND (most breakouts have a pad for it) and XSMT high, or it stays muted. The panel and touch start as Waveshare's demo starts them: IPS (inverted), RGB, 40 MHz, SPI mode 3, touch at 0x15 polled. Compiled, not yet run on a board: if colours come out negative turn Invert off; if red and blue swap, change the colour order. The ESP32-S3-Pico is the R2 (2 MB quad PSRAM, 16 MB flash). The TF card shares the screen's SPI lines, so playing music files from it with the decoder on its own task is warned about.

Designing for it in LCD Wizard

The parts

ST7789. Excellent colour and tolerates 80 MHz SPI. Many modules have no CS pin - tie it low and set CS to -1.

CST816S. Single touch plus gestures. Standard on 1.28" round GC9A01 modules. Needs RST wired.

ESP32-S3. The only common Arduino target with a hardware RGB565 LCD peripheral. PSRAM is effectively required for RGB panels.

GFX Library for Arduino. Moshi Liu's library. Best QSPI/AMOLED and RGB coverage. Configured in code.

The pinout on one page

Every pin above, laid out to print and keep beside the bench. Generated from this preset, so it says exactly what the designer writes into lcd_pins.h.

Download the pinout (PNG)Open it as SVG

The same pins as data - board.json and pins.csv - are in the open pinout dataset on GitHub, free to reuse under CC BY 4.0.

Designs for this board

Nobody has published a design for this board yet. Publish yours from the designer and it appears here and in the gallery.

Waveshare ESP32-S3-GEEK1.14" 135x240 IPS LCD (ST7789, SPI), TF card.ESP32-S3 · ST7789 135 x 240 · no touchPurchase this board
Waveshare ESP32-S3-LCD-1.31.3" 240x240 IPS LCD (ST7789VW, SPI), TF card, QMI8658.ESP32-S3 · ST7789 240 x 240 · no touchPurchase this board
Waveshare ESP32-S3-LCD-1.471.47" 172x320 IPS LCD (ST7789 (ST7789T per the IDF driver name), SPI), TF card.ESP32-S3 · ST7789 172 x 320 · no touchPurchase this board
Waveshare ESP32-S3-LCD-1.47B1.47" 172x320 IPS LCD (ST7789, SPI), TF card, QMI8658.ESP32-S3 · ST7789 172 x 320 · no touchPurchase this board
Waveshare ESP32-S3-LCD-1.541.54" 240x240 IPS LCD (ST7789, SPI), ES8311 audio, TF card, QMI8658.ESP32-S3 · ST7789 240 x 240 · no touchPurchase this board
Waveshare ESP32-S3-LCD-1.91.9" 170x320 IPS LCD (ST7789V2, SPI), TF card, QMI8658.ESP32-S3 · ST7789 170 x 320 · no touchPurchase this board

Next