Waveshare · ESP32-S3 · 4.0" · 480×480

Waveshare ESP32-S3-Touch-LCD-4B specifications

This page collects the pinout, free GPIOs and hardware details of the ESP32-S3-Touch-LCD-4B. The board isn't in the LCD Ultra Pro™ editor yet, so there's no driver for it there.

Four inches, square, 480×480. Panels like this are popular for wall switches, and the 4B is Waveshare's take with a proper audio section added. The ST7701 runs on a 16-bit RGB bus from an ESP32-S3-WROOM-1-N16R8, while its SPI init sequence goes through a TCA9554 I/O expander rather than GPIOs.

That expander is the detail to remember. It also switches the speaker amplifier, so audio stays silent until the expander is configured. Touch is a GT911 with five points on the shared I2C bus at GPIO 47/48, and the backlight is GPIO 4.

Around it sit an AXP2101 PMIC with battery charging, an ES8311 codec, an ES7210 microphone ADC, a QMI8658 IMU and a PCF85063 clock, plus an 8 Ω / 2 W speaker header and a 2.0 mm GPIO header. The managed ESP-IDF component waveshare/esp32_s3_touch_lcd_4b brings it all up.

ESP32-S3-Touch-LCD-4B board diagram with an example screen: 4.0" 480×480, ESP32-S3
Annotated diagram of the Waveshare ESP32-S3-Touch-LCD-4B, drawn by LCD Ultra Pro™.
Screen
4.0" · 480×480
Chip
ESP32-S3
Memory
16 MB flash, 8 MB PSRAM (OPI)
Input
capacitive touch

Key features

  • 4-inch square IPS, 480×480, ST7701 RGB
  • GT911 touch, 5 points
  • ESP32-S3-WROOM-1-N16R8
  • AXP2101 PMIC with battery charging
  • ES8311 codec, ES7210 ADC, microphones
  • QMI8658 IMU, PCF85063 RTC

Specifications

Waveshare ESP32-S3-Touch-LCD-4B technical specifications
ManufacturerWaveshare
Screen size4.0"
Resolution480×480 px
Colour depth16-bit
Display controllerST7701 (RGB + SPI init via IO expander)
Display interfaceRGB565 parallel
TouchGT911 (capacitive, I2C, 5 points)
MicrocontrollerESP32-S3
ModuleESP32-S3-WROOM-1-N16R8
CPU clock240 MHz
Internal SRAM512 KB
PSRAM8 MB (OPI)
Flash16 MB
Wi-FiYes
BluetoothYes
Hardware variantTCA9554 IO expander drives the ST7701 3-wire SPI init (CS, SCL, SDA) and the speaker amplifier enable. AXP2101 PMU, ES8311 codec, ES7210 ADC with microphones, QMI8658 IMU, PCF85063 RTC, 8 Ohm / 2 W speaker header, 2.0 mm GPIO header.
Display480×480 IPS, ST7701, RGB565: PCLK 9, DE 17, HSYNC 46, VSYNC 3, backlight 4
Panel init3-wire SPI through the TCA9554 expander
TouchGT911 on I2C SDA 47, SCL 48
AudioMCLK 5, SCLK 16, LRCLK 7, DOUT 6, DIN 15; amplifier enable via expander
PowerAXP2101, USB-C, 3.7 V battery header
Expansion2.0 mm GPIO header, USB, UART

GPIO pinout

The GPIOs the board itself uses for the display, touch and on-board peripherals, as published in the manufacturer’s documentation. Pins whose function isn’t stated clearly are left out.

Waveshare ESP32-S3-Touch-LCD-4B GPIO pinout
GPIOFunction
GPIO 0BOOT button (header)
GPIO 1LCD data 4
GPIO 2LCD data 3
GPIO 3LCD VSYNC
GPIO 4Backlight
GPIO 5I2S MCLK
GPIO 6I2S data out (ES8311)
GPIO 7I2S LRCLK
GPIO 8LCD data 6
GPIO 9LCD PCLK
GPIO 10LCD data 11
GPIO 11LCD data 12
GPIO 12LCD data 13
GPIO 13LCD data 14
GPIO 14LCD data 15
GPIO 15I2S data in (ES7210)
GPIO 16I2S SCLK
GPIO 17LCD DE
GPIO 18LCD data 7
GPIO 19Header GPIO / USB D-
GPIO 20Header GPIO / USB D+
GPIO 21LCD data 5
GPIO 38LCD data 9
GPIO 39LCD data 10
GPIO 40LCD data 0
GPIO 41LCD data 1
GPIO 42LCD data 2
GPIO 43UART0 TX (header)
GPIO 44UART0 RX (header)
GPIO 45LCD data 8
GPIO 46LCD HSYNC
GPIO 47I2C SDA (touch, PMU, IO expander, codecs, RTC, IMU)
GPIO 48I2C SCL (touch, PMU, IO expander, codecs, RTC, IMU)

Source: github.com, docs.waveshare.com, github.com, github.com. Always check against your board revision before wiring.

Free GPIOs and connectors

These GPIOs are not used by the display, touch or on-board peripherals, so you can wire your own sensors, buttons or relays to them.

Free GPIO pins of the Waveshare ESP32-S3-Touch-LCD-4B
PinCapabilitiesNote
GPIO 19GPIO, PWM, ADCOn the 2.0 mm header; also native USB D-
GPIO 20GPIO, PWM, ADCOn the 2.0 mm header; also native USB D+
GPIO 43GPIO, PWM, UART_TXUART0 TX on the 2.0 mm header
GPIO 44GPIO, PWM, UART_RXUART0 RX on the 2.0 mm header
  • 2.0 mm GPIO header (H3) — GPIO 47, 48, 43, 44, 20, 19, 0, 4 · 2 x 10 pin, 2.0 mm

    AUDIO_SDA / SCL (GPIO 47 / 48, the on-board I2C bus), TXD, RXD, IO20, IO19, IO0, backlight, plus EXIO0-7 of the TCA9554 expander, 5 V in and 3.3 V out

Good to know before you start

  • Not in the LCD Ultra Pro editor yet, so treat this as a reference page.
  • No init over GPIO: the ST7701 needs the expander driver first.
  • The RGB bus uses most GPIOs; use I2C for sensors.

What it is good for

  • •Square wall panels and smart switches
  • •Voice-enabled room controllers
  • •Dashboards with round gauges in a square frame

LVGL support in LCD Ultra Pro™

This board is documented in the wiki, but it is not in the LCD Ultra Pro™ editor yet, so you can’t pick it there or export a project for it. The specs, pins and connectors on this page come from the manufacturer’s own material and are there to help you wire and configure it. See the board list for boards the editor supports today.

Arduino IDE settings

From the manufacturer's documentation (not tested by us yet)

BoardESP32S3 Dev Module
USB ModeHardware CDC and JTAG
USB CDC On BootEnabled
Flash Size16MB (128Mb)
Partition Scheme16M Flash (3MB APP/9.9MB FATFS)
PSRAMOPI PSRAM

Board package: esp32 by Espressif Systems 3.3.11

Menu items the manufacturer doesn't mention are left at their defaults. We haven't compiled a driver for this board ourselves yet. Manufacturer's source

Frequently asked questions

Which display controller does the ESP32-S3-Touch-LCD-4B use?

An ST7701 with a 16-bit RGB data bus. Its 3-wire SPI init lines come from a TCA9554 I/O expander.

Does it support battery operation?

Yes. An AXP2101 PMIC handles charging from USB-C and a 3.7 V lithium battery header.

Where is the speaker amplifier enabled?

On pin 3 of the TCA9554 I/O expander, not on an ESP32 GPIO.

Sources

Specifications cross-checked against the manufacturer’s documentation (last checked 2026-11-04):

More in the Waveshare ESP32-S3 LCD family

Tools for this board

All free tools →

Connect sensors and parts

All sensors and parts →

Last updated:

Adding I2C sensors to this board?See which addresses its own chips already use, and what would clash.

Something wrong on this page?

Tell me what you found. I check every report and fix the page.