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.

- 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
| Manufacturer | Waveshare |
|---|---|
| Screen size | 4.0" |
| Resolution | 480×480 px |
| Colour depth | 16-bit |
| Display controller | ST7701 (RGB + SPI init via IO expander) |
| Display interface | RGB565 parallel |
| Touch | GT911 (capacitive, I2C, 5 points) |
| Microcontroller | ESP32-S3 |
| Module | ESP32-S3-WROOM-1-N16R8 |
| CPU clock | 240 MHz |
| Internal SRAM | 512 KB |
| PSRAM | 8 MB (OPI) |
| Flash | 16 MB |
| Wi-Fi | Yes |
| Bluetooth | Yes |
| Hardware variant | TCA9554 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. |
| Display | 480×480 IPS, ST7701, RGB565: PCLK 9, DE 17, HSYNC 46, VSYNC 3, backlight 4 |
| Panel init | 3-wire SPI through the TCA9554 expander |
| Touch | GT911 on I2C SDA 47, SCL 48 |
| Audio | MCLK 5, SCLK 16, LRCLK 7, DOUT 6, DIN 15; amplifier enable via expander |
| Power | AXP2101, USB-C, 3.7 V battery header |
| Expansion | 2.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.
| GPIO | Function |
|---|---|
| GPIO 0 | BOOT button (header) |
| GPIO 1 | LCD data 4 |
| GPIO 2 | LCD data 3 |
| GPIO 3 | LCD VSYNC |
| GPIO 4 | Backlight |
| GPIO 5 | I2S MCLK |
| GPIO 6 | I2S data out (ES8311) |
| GPIO 7 | I2S LRCLK |
| GPIO 8 | LCD data 6 |
| GPIO 9 | LCD PCLK |
| GPIO 10 | LCD data 11 |
| GPIO 11 | LCD data 12 |
| GPIO 12 | LCD data 13 |
| GPIO 13 | LCD data 14 |
| GPIO 14 | LCD data 15 |
| GPIO 15 | I2S data in (ES7210) |
| GPIO 16 | I2S SCLK |
| GPIO 17 | LCD DE |
| GPIO 18 | LCD data 7 |
| GPIO 19 | Header GPIO / USB D- |
| GPIO 20 | Header GPIO / USB D+ |
| GPIO 21 | LCD data 5 |
| GPIO 38 | LCD data 9 |
| GPIO 39 | LCD data 10 |
| GPIO 40 | LCD data 0 |
| GPIO 41 | LCD data 1 |
| GPIO 42 | LCD data 2 |
| GPIO 43 | UART0 TX (header) |
| GPIO 44 | UART0 RX (header) |
| GPIO 45 | LCD data 8 |
| GPIO 46 | LCD HSYNC |
| GPIO 47 | I2C SDA (touch, PMU, IO expander, codecs, RTC, IMU) |
| GPIO 48 | I2C 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.
| Pin | Capabilities | Note |
|---|---|---|
| GPIO 19 | GPIO, PWM, ADC | On the 2.0 mm header; also native USB D- |
| GPIO 20 | GPIO, PWM, ADC | On the 2.0 mm header; also native USB D+ |
| GPIO 43 | GPIO, PWM, UART_TX | UART0 TX on the 2.0 mm header |
| GPIO 44 | GPIO, PWM, UART_RX | UART0 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)
| Board | ESP32S3 Dev Module |
|---|---|
| USB Mode | Hardware CDC and JTAG |
| USB CDC On Boot | Enabled |
| Flash Size | 16MB (128Mb) |
| Partition Scheme | 16M Flash (3MB APP/9.9MB FATFS) |
| PSRAM | OPI 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):
- https://github.com/waveshareteam/ESP32-S3-Touch-LCD-4B
- https://github.com/waveshareteam/Waveshare-ESP32-components
- https://www.waveshare.com/esp32-s3-touch-lcd-4b.htm
- https://docs.waveshare.com/ESP32-S3-Touch-LCD-4B
- https://github.com/waveshareteam/ESP32-S3-Touch-LCD-4B/blob/main/hardware/schematics/ESP32-S3-Touch-LCD-4B.pdf
- https://github.com/waveshareteam/ESP32-S3-Touch-LCD-4B/blob/main/examples/arduino/README.md
More in the Waveshare ESP32-S3 LCD family
- Waveshare ESP32-S3-LCD-0.85
- Waveshare ESP32-S3 LCD 1.3"
- Waveshare ESP32-S3 LCD 1.47" Type B
- Waveshare ESP32-S3 Touch LCD 1.47"
- Waveshare ESP32-S3-Touch-LCD-1.54
- Waveshare ESP32-S3-Touch-LCD-1.69
- Waveshare ESP32-S3-Touch-LCD-1.83
- Waveshare ESP32-S3-LCD-1.9
- Waveshare ESP32-S3 Touch LCD 2.0"
- Waveshare ESP32-S3 Touch LCD 2.8"
- Waveshare ESP32-S3 Touch LCD 2.8" Type B
- Waveshare ESP32-S3-Touch-LCD-2.8D
- Waveshare ESP32-S3 LCD 3.16"
- Waveshare ESP32-S3-Touch-LCD-3.49
- Waveshare ESP32-S3 Touch LCD 3.5"
- Waveshare ESP32-S3 Touch LCD 3.5" Type B
- Waveshare ESP32-S3 Touch LCD 4.0"
- Waveshare ESP32-S3-RLCD-4.2
- Waveshare ESP32-S3 Touch LCD 4.3"
- Waveshare ESP32-S3 Touch LCD 4.3" Type B
- Waveshare ESP32-S3 Touch LCD 4.3" Type C
- Waveshare ESP32-S3 Touch LCD 5.0"
- Waveshare ESP32-S3 Touch LCD 7.0"
- Waveshare ESP32-S3-Touch-LCD-7B
- Waveshare ESP32-S3-Touch-LCD-7C
Tools for this board
Connect sensors and parts
- 28BYJ-48 stepper
- A4988 stepper driver
- ACS712 current sensor
- ADS1115 ADC
- ADXL345 accelerometer
- AHT20
- AS5600 magnetic encoder
- BH1750
- BME280
- BME680
- BMP280
- BTS7960 motor driver
- CAN bus (SN65HVD230)
- Capacitive soil moisture
- DFPlayer Mini
- DHT22 / AM2302
- DS18B20
- DS3231 RTC
- EC11 rotary encoder
- ENS160
- HC-SR04
- HC-SR501 PIR
- HX711 load cell
- INA219
- INA226
- INMP441 microphone
- IRLZ44N MOSFET
- KY-023 joystick
- 4x4 matrix keypad
- LD2410 radar
- LDR photoresistor
- MAX31855 thermocouple
- MAX7219 LED matrix
- MAX98357A I2S amp
- MCP23017 GPIO expander
- microSD card
- MLX90614 IR thermometer
- MPU6050
- MQ-2 gas sensor
- NEO-6M GPS
- NTC thermistor 10k
- PCA9685 PWM driver
- Piezo buzzer
- Push button
- PZEM-004T
- RC522 RFID
- 5 V relay module
- RS-485 (MAX3485)
- SCD40
- SG90 servo
- SHT31 / SHT3x
- SIM800L GSM
- SSD1306 OLED
- SSR-40DA relay
- LoRa SX1276
- TB6612FNG motor driver
- TCS34725 colour sensor
- TP4056 battery charger
- TTP223 touch button
- VL53L0X
- WS2812B LED strip
- YF-S201 flow sensor
Last updated:
Adding I2C sensors to this board?See which addresses its own chips already use, and what would clash.Open the checkerSomething wrong on this page?
Tell me what you found. I check every report and fix the page.