Waveshare · ESP32-P4 · 5.0" · 720×1280
Waveshare ESP32-P4-WIFI6-Touch-LCD-5 specifications
This page collects the pinout, free GPIOs and hardware details of the ESP32-P4-WIFI6-Touch-LCD-5. The board isn't in the LCD Ultra Pro™ editor yet, so there's no driver for it there.
720×1280 on five inches is phone territory, and the ESP32-P4 is the first ESP32 that can drive it sensibly. Waveshare's 5-inch board uses an HX8394 controller over two MIPI-DSI lanes, with only reset (GPIO 27) and backlight (GPIO 26) taken from the GPIO pool.
Waveshare publishes an ESP-IDF component for the HX8394 alongside the board package, which saves you from writing an init sequence. Touch is a GT911 with five points. Memory is 32 MB of PSRAM and 32 MB of flash, and an ESP32-C6-MINI-1 provides Wi-Fi 6 and Bluetooth 5 over SDIO.
The rest matches the 4.3-inch board: ES7210 input with two microphones, ES8311 codec, an 8 Ω / 2 W speaker connector, a MIPI-CSI camera port, a 4-bit microSD slot, USB 2.0 HS OTG and a 40-pin header. 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.

- Screen
- 5.0" · 720×1280
- Chip
- ESP32-P4
- Memory
- 32 MB flash, 32 MB PSRAM (OPI/HPI)
- Input
- capacitive touch
Key features
- 5-inch IPS, 720×1280, HX8394
- 2-lane MIPI-DSI
- GT911 touch
- ESP32-P4: 32 MB PSRAM, 32 MB flash
- Audio, camera port, microSD
- 40-pin header
Specifications
| Manufacturer | Waveshare |
|---|---|
| Screen size | 5.0" |
| Resolution | 720×1280 px |
| Colour depth | 16-bit |
| Display controller | HX8394 (MIPI-DSI, 2 lanes) |
| Display interface | MIPI-DSI |
| Touch | GT911 (capacitive, I2C, 5 points) |
| Microcontroller | ESP32-P4 |
| Module | ESP32-P4NRW32 + ESP32-C6-MINI-1 (Wi-Fi 6 / Bluetooth 5 over SDIO) |
| CPU clock | 400 MHz |
| Internal SRAM | 768 KB |
| PSRAM | 32 MB (OPI/HPI) |
| Flash | 32 MB |
| Wi-Fi | Yes |
| Bluetooth | Yes |
| Hardware variant | ES7210 input with two microphones, ES8311 codec, 8 Ohm / 2 W speaker connector, 2-lane MIPI-CSI (OV5647 optional), 4-bit microSD, USB 2.0 HS OTG, 40-pin header compatible with selected Raspberry Pi HATs. |
| Display | 720×1280, HX8394, MIPI-DSI 2 lanes, RST 27, backlight 26 |
| Touch | GT911, I2C SDA 7 / SCL 8 |
| Audio | ES8311, ES7210, two mics, 8 Ω / 2 W speaker |
| Camera | 2-lane MIPI-CSI, OV5647 optional |
| Expansion | 40-pin header |
Board layout and connectors
Where each connector, button and LED sits on the Waveshare ESP32-P4-WIFI6-Touch-LCD-5, with the pin order next to each header where the manufacturer confirms it. We drew it from the manufacturer’s own photos and board documentation. The tiny parts are simplified.


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 2 | Header GPIO |
| GPIO 3 | Header GPIO |
| GPIO 4 | Header GPIO |
| GPIO 5 | Header GPIO |
| GPIO 7 | I2C SDA (touch, codecs) |
| GPIO 8 | I2C SCL (touch, codecs) |
| GPIO 9 | I2S data out (ES8311) |
| GPIO 10 | I2S LRCLK |
| GPIO 11 | I2S data in (ES7210) |
| GPIO 12 | I2S SCLK |
| GPIO 13 | I2S MCLK |
| GPIO 21 | Header GPIO |
| GPIO 22 | Header GPIO |
| GPIO 24 | Header GPIO |
| GPIO 25 | Header GPIO |
| GPIO 26 | Backlight |
| GPIO 27 | LCD reset |
| GPIO 28 | Header GPIO |
| GPIO 29 | Header GPIO |
| GPIO 30 | Header GPIO |
| GPIO 31 | Header GPIO |
| GPIO 32 | Header GPIO |
| GPIO 34 | Header GPIO |
| GPIO 35 | Header GPIO (strapping pin) |
| GPIO 37 | UART0 TX (header) |
| GPIO 38 | UART0 RX (header) |
| GPIO 39 | microSD D0 |
| GPIO 40 | microSD D1 |
| GPIO 41 | microSD D2 |
| GPIO 42 | microSD D3 |
| GPIO 43 | microSD CLK |
| GPIO 44 | microSD CMD |
| GPIO 46 | Header GPIO |
| GPIO 47 | Header GPIO |
| GPIO 48 | Header GPIO |
| GPIO 49 | Header GPIO |
| GPIO 50 | Header GPIO |
| GPIO 51 | Header GPIO |
| GPIO 52 | Header GPIO |
| GPIO 53 | Speaker amplifier enable |
Source: github.com, docs.waveshare.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 2 | GPIO, PWM | On the 40-pin header |
| GPIO 3 | GPIO, PWM | On the 40-pin header |
| GPIO 4 | GPIO, PWM | On the 40-pin header |
| GPIO 5 | GPIO, PWM | On the 40-pin header |
| GPIO 21 | GPIO, PWM, ADC | On the 40-pin header |
| GPIO 22 | GPIO, PWM, ADC | On the 40-pin header |
| GPIO 24 | GPIO, PWM | On the 40-pin header |
| GPIO 25 | GPIO, PWM | On the 40-pin header |
| GPIO 28 | GPIO, PWM | On the 40-pin header |
| GPIO 29 | GPIO, PWM | On the 40-pin header |
| GPIO 30 | GPIO, PWM | On the 40-pin header |
| GPIO 31 | GPIO, PWM | On the 40-pin header |
| GPIO 32 | GPIO, PWM | On the 40-pin header |
| GPIO 34 | GPIO, PWM | On the 40-pin header |
| GPIO 35 | GPIO, PWM | On the 40-pin header; strapping pin, keep it free at boot |
| GPIO 46 | GPIO, PWM | On the 40-pin header |
| GPIO 47 | GPIO, PWM | On the 40-pin header |
| GPIO 48 | GPIO, PWM | On the 40-pin header |
| GPIO 49 | GPIO, PWM, ADC | On the 40-pin header |
| GPIO 50 | GPIO, PWM, ADC | On the 40-pin header |
| GPIO 51 | GPIO, PWM, ADC | On the 40-pin header |
| GPIO 52 | GPIO, PWM, ADC | On the 40-pin header |
| GPIO 37 | GPIO, UART_TX | UART0 TX on the 40-pin header |
| GPIO 38 | GPIO, UART_RX | UART0 RX on the 40-pin header |
- 40-pin header — GPIO 2, 3, 4, 5, 21, 22, 24, 25, 28, 29, 30, 31, 32, 34, 35, 46, 47, 48, 49, 50, 51, 52, 37, 38, 7, 8 · 2 x 20 pin header, Raspberry Pi style
SDA / SCL are GPIO 7 / 8 (the on-board I2C bus); also USB DP / DM, 3.3 V, 5 V and GND. Selected Raspberry Pi HATs fit through an adapter
Good to know before you start
- Not in the LCD Ultra Pro editor yet.
- Large frames: use PSRAM and the P4's 2D acceleration.
- Default orientation is portrait.
What it is good for
- •Phone-sized dashboards
- •Video and camera viewers
- •Kiosk interfaces
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 | ESP32P4 Dev Module |
|---|---|
| Chip Variant | v3.00 or newer for rev3.x chips (the default); Before v3.00 only for confirmed rev1.x chips |
| PSRAM | Enabled |
| Flash Size | 32 MB |
| Flash Mode | QIO |
| Flash Frequency | 80 MHz |
| Partition Scheme | 13M APP / 7M data (32 MB) |
| Upload Mode | Default (USB-UART bridge) |
Board package: esp32 by Espressif Systems 3.3.11 (or newer 3.x)
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 controller drives the 5-inch P4 panel?
An HX8394 over 2-lane MIPI-DSI; Waveshare publishes an ESP-IDF component for it.
What is the resolution?
720×1280 pixels.
How is Wi-Fi provided?
By an ESP32-C6-MINI-1 co-processor over SDIO (Wi-Fi 6, Bluetooth 5).
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
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.