Waveshare · ESP32-P4 · 4.0" · 720×720

Waveshare ESP32-P4-WIFI6-Touch-LCD-4B specifications

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

720×720 on four inches is sharp for a wall switch, and this board is built to become one. It's the display module of Waveshare's 86-box panel: the square IPS screen and an ESP32-P4 on top, with a bottom-board connector that carries Ethernet, relays and RS485 to a base board.

The panel runs over 2-lane MIPI-DSI with reset on GPIO 27 and backlight on GPIO 26. Waveshare doesn't name the panel driver IC. Touch is a GT911 with five points on the shared I2C bus, with its reset on GPIO 23. An IP101 Ethernet PHY is already on this board; the RJ45 socket lives on the 86-panel base.

Audio is an ES8311 with an NS4150B amplifier for a 2 W speaker and an ES7210 for two microphones. There's a 2-lane MIPI-CSI camera connector, a 4-bit microSD slot, an RTC battery header and a 14-pin 2.0 mm expansion header. An ESP32-C6-MINI-1U-H8 handles Wi-Fi 6. On all Waveshare P4 boards the shared pins are the same: I2C on GPIO 7 (SDA) and 8 (SCL), I2S audio on GPIO 9 to 13, the 4-bit microSD on GPIO 39 to 44 and the speaker amplifier enable on GPIO 53.

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

Key features

  • 4-inch square IPS, 720×720, MIPI-DSI
  • GT911 touch, 5 points
  • ESP32-P4: 32 MB PSRAM, 32 MB flash
  • IP101 Ethernet PHY
  • ES8311 + ES7210 audio
  • MIPI-CSI camera connector

Specifications

Waveshare ESP32-P4-WIFI6-Touch-LCD-4B technical specifications
ManufacturerWaveshare
Screen size4.0"
Resolution720×720 px
Colour depth16-bit
Display controllerMIPI-DSI panel (2 lanes)
Display interfaceMIPI-DSI
TouchGT911 (capacitive, I2C, 5 points)
MicrocontrollerESP32-P4
ModuleESP32-P4 + ESP32-C6-MINI-1U-H8 (Wi-Fi 6 / Bluetooth 5 over SDIO)
CPU clock400 MHz
Internal SRAM768 KB
PSRAM32 MB (OPI/HPI)
Flash32 MB
Wi-FiYes
BluetoothYes
Hardware variantES8311 codec with NS4150B amplifier, ES7210 dual-microphone ADC, 2-lane MIPI-CSI camera connector, IP101 Ethernet PHY (RJ45 on the 86-panel base board), RTC battery header, 4-bit microSD, 14-pin 2.0 mm header. The panel driver IC is not named by Waveshare.
Display720×720 IPS, MIPI-DSI 2 lanes, RST 27, backlight 26
TouchGT911, RST 23, I2C SDA 7 / SCL 8
AudioES8311 + NS4150B (8 Ω / 2 W), ES7210 with two mics
NetworkIP101 PHY (RMII), RJ45 on the 86-panel base board
HeadersP3 14-pin 2.0 mm, P2 bottom-board connector

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-P4-WIFI6-Touch-LCD-4B GPIO pinout
GPIOFunction
GPIO 2Header GPIO (P3)
GPIO 3Header GPIO (P3)
GPIO 4Header GPIO (P3)
GPIO 5Header GPIO (P3)
GPIO 7I2C SDA (touch, codecs)
GPIO 8I2C SCL (touch, codecs)
GPIO 9I2S data out (ES8311)
GPIO 10I2S LRCLK
GPIO 11I2S data in (ES7210)
GPIO 12I2S SCLK
GPIO 13I2S MCLK
GPIO 20Header GPIO (P3)
GPIO 21Header GPIO (P3)
GPIO 22Header GPIO (P3)
GPIO 23Touch reset
GPIO 26Backlight
GPIO 27LCD reset
GPIO 32Relay 1 (bottom board)
GPIO 37UART0 TX (P3)
GPIO 38UART0 RX (P3)
GPIO 39microSD D0
GPIO 40microSD D1
GPIO 41microSD D2
GPIO 42microSD D3
GPIO 43microSD CLK
GPIO 44microSD CMD
GPIO 46Relay 2 (bottom board)
GPIO 47RS485 TXD (bottom board)
GPIO 48RS485 RXD (bottom board)
GPIO 53Speaker amplifier enable

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-P4-WIFI6-Touch-LCD-4B
PinCapabilitiesNote
GPIO 2GPIO, PWMOn the 14-pin P3 header
GPIO 3GPIO, PWMOn the 14-pin P3 header
GPIO 4GPIO, PWMOn the 14-pin P3 header
GPIO 5GPIO, PWMOn the 14-pin P3 header
GPIO 20GPIO, PWM, ADCOn the 14-pin P3 header
GPIO 21GPIO, PWM, ADCOn the 14-pin P3 header
GPIO 22GPIO, PWM, ADCOn the 14-pin P3 header
GPIO 37GPIO, UART_TXUART0 TX on the P3 header
GPIO 38GPIO, UART_RXUART0 RX on the P3 header
  • P3 expansion header — GPIO 7, 8, 2, 3, 4, 5, 37, 38, 20, 21, 22 · 2 x 7 pin, 2.0 mm

    GPIO 7 / 8 are the on-board I2C bus; also 3.3 V, 5 V and GND

  • P2 bottom-board connector — GPIO 32, 46, 47, 48 (RELAY1, RELAY2, RS485 TX, RS485 RX) · 2 x 7 pin

    Also the Ethernet pairs and a USB port for the 86-panel base board

Good to know before you start

  • The LCD Ultra Pro editor can't target this board yet.
  • Ethernet needs the base board for the RJ45 jack.
  • The panel driver IC is not documented by Waveshare.

What it is good for

  • •86-box wall panels
  • •Wired-Ethernet smart-home controllers
  • •Intercom and camera panels

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)

BoardESP32P4 Dev Module
Upload Speed921600
Flash Frequency80MHz
Flash ModeQIO
Flash Size32MB (256Mb)
Partition Scheme32M Flash (13MB APP/6.75MB SPIFFS)
PSRAMEnabled
Chip Variantv3.00 or newer for rev3.x chips (the default); Before v3.00 only for confirmed rev1.x chips

Board package: esp32 by Espressif Systems 3.3.12

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

What is the resolution of the ESP32-P4-WIFI6-Touch-LCD-4B?

720×720 on a 4-inch IPS panel over MIPI-DSI.

Does it have Ethernet?

It carries an IP101 Ethernet PHY; the RJ45 socket is on the 86-panel base board.

Where is the touch reset?

On GPIO 23, with the GT911 on I2C GPIO 7/8.

Sources

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

More in the Waveshare ESP32-P4 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.