Waveshare · ESP32-P4 · 3.5" · 320×480
Waveshare ESP32-P4-WIFI6-Touch-LCD-3.5 specifications
This page collects the pinout, free GPIOs and hardware details of the ESP32-P4-WIFI6-Touch-LCD-3.5. The board isn't in the LCD Ultra Pro™ editor yet, so there's no driver for it there.
The smallest Waveshare P4 board doesn't use MIPI-DSI at all. Its 3.5-inch 320×480 IPS panel has an ST7796 on plain SPI (MOSI 20, clock 21, CS 23, DC 26, reset 27, backlight 28), so the P4's display hardware sits idle while the camera interface does the heavy lifting.
That camera is the reason to pick it. A 5 MP OV5647 connects over MIPI-CSI, and the ESP32-P4 has the PSRAM (32 MB in the package) and the processing power to do something with the frames. An ESP32-C6FH8 adds Wi-Fi 6 and Bluetooth 5 over SDIO.
Touch is an FT6336 with reset on GPIO 29 and interrupt on 50. An AXP2101 manages a lithium battery, and audio is an ES8311 with a microphone and an 8 Ω / 2 W speaker. 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
- 3.5" · 320×480
- Chip
- ESP32-P4
- Memory
- 16 MB flash, 32 MB PSRAM (OPI/HPI)
- Input
- capacitive touch
Key features
- 3.5-inch IPS, 320×480, ST7796 (SPI)
- FT6336 capacitive touch
- ESP32-P4: 32 MB PSRAM, 16 MB flash
- OV5647 5 MP camera (MIPI-CSI)
- AXP2101 battery management
- ESP32-C6 for Wi-Fi 6
Specifications
| Manufacturer | Waveshare |
|---|---|
| Screen size | 3.5" |
| Resolution | 320×480 px |
| Colour depth | 16-bit |
| Display controller | ST7796 (SPI) |
| Display interface | SPI |
| Touch | FT6336 (capacitive, I2C) |
| Microcontroller | ESP32-P4 |
| Module | ESP32-P4NRW32 + ESP32-C6FH8 (Wi-Fi 6 / Bluetooth 5 over SDIO) |
| CPU clock | 400 MHz |
| Internal SRAM | 768 KB |
| PSRAM | 32 MB (OPI/HPI) |
| Flash | 16 MB |
| Wi-Fi | Yes |
| Bluetooth | Yes |
| Hardware variant | OV5647 5 MP camera on MIPI-CSI, ES8311 codec with microphone and 8 Ohm / 2 W speaker, AXP2101 PMU with battery connector, 4-bit microSD, USB-UART and USB 2.0 HS OTG ports. |
| Display | 320×480 IPS, ST7796: MOSI 20, CLK 21, CS 23, DC 26, RST 27, backlight 28 |
| Touch | FT6336, RST 29, INT 50, I2C SDA 7 / SCL 8 |
| Camera | OV5647 5 MP, MIPI-CSI |
| Audio | ES8311, microphone, 8 Ω / 2 W speaker, amplifier 53 |
| USB | USB-UART Type-C and USB 2.0 HS OTG Type-C |
Board layout and connectors
Where each connector, button and LED sits on the Waveshare ESP32-P4-WIFI6-Touch-LCD-3.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 20 | LCD SPI MOSI |
| GPIO 21 | LCD SPI clock |
| GPIO 23 | LCD SPI CS |
| GPIO 24 | USB 1.1 D- (header) |
| GPIO 25 | USB 1.1 D+ (header) |
| GPIO 26 | LCD DC |
| GPIO 27 | LCD reset |
| GPIO 28 | Backlight |
| GPIO 29 | Touch reset |
| GPIO 30 | Header GPIO |
| GPIO 31 | Header GPIO |
| GPIO 32 | Header GPIO |
| GPIO 33 | Header GPIO |
| GPIO 34 | Header GPIO |
| GPIO 35 | Header GPIO |
| GPIO 36 | Header GPIO |
| 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 50 | Touch interrupt |
| GPIO 51 | Header GPIO |
| GPIO 52 | Header GPIO |
| GPIO 53 | Speaker 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.
| Pin | Capabilities | Note |
|---|---|---|
| GPIO 2 | GPIO, PWM | On the 2 x 16 header |
| GPIO 3 | GPIO, PWM | On the 2 x 16 header |
| GPIO 4 | GPIO, PWM | On the 2 x 16 header |
| GPIO 5 | GPIO, PWM | On the 2 x 16 header |
| GPIO 30 | GPIO, PWM | On the 2 x 16 header |
| GPIO 31 | GPIO, PWM | On the 2 x 16 header |
| GPIO 32 | GPIO, PWM | On the 2 x 16 header |
| GPIO 33 | GPIO, PWM | On the 2 x 16 header |
| GPIO 34 | GPIO, PWM | On the 2 x 16 header; strapping pin |
| GPIO 35 | GPIO, PWM | On the 2 x 16 header; strapping pin |
| GPIO 36 | GPIO, PWM | On the 2 x 16 header; strapping pin |
| GPIO 46 | GPIO, PWM | On the 2 x 16 header |
| GPIO 47 | GPIO, PWM | On the 2 x 16 header |
| GPIO 48 | GPIO, PWM | On the 2 x 16 header |
| GPIO 51 | GPIO, PWM, ADC | On the 2 x 16 header |
| GPIO 52 | GPIO, PWM, ADC | On the 2 x 16 header |
- Expansion header (J6) — GPIO 7, 8, 2, 3, 4, 5, 30, 31, 32, 33, 34, 35, 36, 46, 47, 48, 51, 52, 24, 25 · 2 x 16 pin header
GPIO 7 / 8 are the on-board I2C bus; also 3.3 V, 5 V, VBAT, GND and the ESP32-C6 UART and IO9
Good to know before you start
- It's a wiki entry for now; the LCD Ultra Pro editor doesn't support P4 boards from Waveshare yet.
- SPI limits the frame rate; full-screen video will not be smooth.
- Wi-Fi runs on the ESP32-C6 and needs its hosted firmware.
What it is good for
- •Camera and vision projects
- •Battery-powered handhelds
- •Learning the ESP32-P4
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 | ESP32-P4 (the manufacturer names the chip, not a menu item) |
|---|---|
| Chip Variant | v3.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.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
Does the ESP32-P4-WIFI6-Touch-LCD-3.5 use MIPI-DSI?
No. Its ST7796 panel is driven over SPI; the camera uses MIPI-CSI.
Which camera is supported?
A 5 MP OV5647 on the MIPI-CSI connector.
How much memory is there?
32 MB of PSRAM in the ESP32-P4 package and 16 MB of flash.
Sources
Specifications cross-checked against the manufacturer’s documentation (last checked 2026-11-04):
- https://github.com/waveshareteam/ESP32-P4-WIFI6-Touch-LCD-3.5
- https://docs.waveshare.com/ESP32-P4-WIFI6-Touch-LCD-3.5
- https://www.waveshare.com/esp32-p4-wifi6-touch-lcd-3.5.htm
- https://github.com/waveshareteam/ESP32-P4-WIFI6-Touch-LCD-3.5/blob/main/schematic/ESP32-P4-WIFI6-Touch-LCD-3.5-schematic.pdf
- https://github.com/waveshareteam/ESP32-P4-WIFI6-Touch-LCD-3.5/blob/main/examples/arduino/README.md
More in the Waveshare ESP32-P4 family
Tools for this board
- ESP32-P4-WIFI6-Touch-LCD-3.5 Arduino IDE settings
- ESP32-P4-WIFI6-Touch-LCD-3.5 pin planner
- ESP32-P4-WIFI6-Touch-LCD-3.5 side-by-side comparison
- ESP32-P4-WIFI6-Touch-LCD-3.5 LVGL memory estimate
- ESP32-P4-WIFI6-Touch-LCD-3.5 I2C address check
- Other ESP32 boards with the ST7796
- Find similar ESP32 display boards
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.