Boards / All-in-one boards

Waveshare ESP32-P4-WIFI6-Touch-LCD-3.5

3.5" 320x480 IPS LCD (ST7796, SPI), FT6336 touch, ES8311 audio, TF card, AXP2101, Wi-Fi through its ESP32-C6.

The Waveshare ESP32-P4-WIFI6-Touch-LCD-3.5 board
Photograph: Waveshare (product photo for the ESP32-P4-WIFI6-Touch-LCD-3.5) · vendor product photo, no licence stated
Design a UI for this boardTest my boardUpdate my C6Purchase this boardRead the quick start

Affiliate link: LCD Wizard may earn a commission if you buy through it.

Building for it

A project is made for one toolchain, picked when you start it. For this board you can use two of the four:

Toolchain
Arduino (C++)Every board, every widget and every peripheral here. The most control, and the most to set up. Start a project
MicroPythonThe MicroPython export has not been built for this chip yet. It is written for the ESP32, S2, S3, C3 and C6.
ESPHomeThe ESP32-P4 is only useful here with a MIPI-DSI panel, which this export does not write yet.
ESP-IDF (C)Espressif's own framework: esp_lcd, the component registry and idf.py, with nothing of Arduino in it. Start a project

Wi-Fi: the ESP32-C6 beside the P4

The ESP32-P4 has no radio. This board’s Wi-Fi is an ESP32-C6 on the P4’s SDIO lines running Espressif’s ESP-Hosted, which has to be the release the ESP32 core was built with (2.12.11 for the core LCD Wizard exports for). A C6 as it leaves the factory may run an older one: the serial port then says ESP-Hosted of an unknown version, and Wi-Fi can fail or freeze the board as it starts. Update my C6 writes 2.12.11 to it from the browser, with no Wi-Fi and no password. Why, and how to update the C6.

At a glance

PartDetail
MakerWaveshare
MCUESP32-P4
RISC-V dual-core @ 400 MHz, 768 KB SRAM (+ PSRAM)
DisplaySitronix ST7796 / ST7796S, 320 x 480 px, SPI (4-wire serial), 16-bit colour
TouchFocalTech FT6236 / FT6336U (capacitive, I2C)
BacklightGPIO 28, dimmable (PWM)
Memory16 MB flash, 32 MB PSRAM (N16R32)
Graphics libraryGFX Library for Arduino

Display pins

ST7796 / ST7796S on SPI (4-wire serial): SPI clock 80 MHz, host SPI2_HOST, BGR colour order, inversion on.

SignalPin
SCK / CLKGPIO 21
MOSI / SDAGPIO 20
CSGPIO 23
DC / RSGPIO 26
RESETGPIO 27
BacklightGPIO 28

Touch pins

FT6236 / FT6336U: I2C address 0x38, 400 kHz, shares the display bus.

SignalPin
SDAGPIO 7
SCLGPIO 8
INT / IRQGPIO 50
RESETGPIO 29

Also on the board

The preset adds these to the Hardware tab with the board, so a sensor can go straight onto the connector.

Check your revision. Pins from Waveshare's demo code and schematic (https://github.com/waveshareteam/ESP32-P4-WIFI6-Touch-LCD-3.5). BSP comment says touch reset is 'Shared with LCD reset' but its own define and the schematic give TP_RST = GPIO29, separate from LCD_RST GPIO27; chose 29. Sound: the ES8311 at 0x18 on I2C 7/8, I2S MCLK 13, BCLK 12, WS 10, data to the codec 9 and the microphone back on 11, speaker amplifier on GPIO 53 (on when high), from Waveshare's lcd35_board.h and the BSP header (pa_reverted false). Compiled; not heard on a board. Wi-Fi is the ESP32-C6 (a bare ESP32-C6FH8) beside the P4, in the kit as the Wi-Fi co-processor on the ESP32 core's own SDIO lines (CLK 18, CMD 19, D0-D3 14-17, reset 54): Waveshare publish no pins for it and their own Arduino Wi-Fi example uses those defaults; the schematic, read for this preset, puts the C6's SDIO among GPIO 14-19 and its CHIP_PU on GPIO 54 through a 0 ohm link, and the order of the six lines is the defaults' by inference. It has to run ESP-Hosted of the core's release, which the board prints at start (see the README). Wi-Fi through it compiles and has not been on a board. Not driven: the C6's Bluetooth; ESP-NOW does not go through the C6. A design on this preset starts on revision 3 of the ESP32-P4, which Waveshare's own Arduino examples for their P4 boards build for; for a chip before revision 3 (the upload says "revision v1.x"), choose that under Hardware > Board > Chip revision.

Designing for it in LCD Wizard

The parts

ST7796 / ST7796S. The usual 4.0" 320x480 controller. Faster than ILI9488 over SPI (true RGB565).

FT6236 / FT6336U. Register-compatible with the FT6206. Very common on 2.8"-3.5" capacitive TFTs.

ESP32-P4. Has a MIPI-DSI host and a 2D graphics accelerator (PPA). Arduino core support is newer - verify your core version.

GFX Library for Arduino. Moshi Liu's library. Best QSPI/AMOLED and RGB coverage. Configured in code.

The pinout on one page

Every pin above, laid out to print and keep beside the bench. Generated from this preset, so it says exactly what the designer writes into lcd_pins.h.

Download the pinout (PNG)Open it as SVG

The same pins as data - board.json and pins.csv - are in the open pinout dataset on GitHub, free to reuse under CC BY 4.0.

From the people who made it

The board’s own documentation. Pinouts on vendor pages do sometimes disagree with the hardware in front of you - where this page and that one differ, trust your board and tell us.

Designs for this board

Nobody has published a design for this board yet. Publish yours from the designer and it appears here and in the gallery.

From the blog

Waveshare ESP32-C5-Touch-LCD-3.53.5" 320x480 IPS LCD (ST7796, SPI), FT6336 touch, ES8311 speaker and microphone, TF card, AXP2101, QMI8658, PCF85063.ESP32-C5 · ST7796 / ST7796S 320 x 480 · FT6236 / FT6336U touchPurchase this board
Waveshare ESP32-S3-Touch-LCD-3.53.5" 320x480 IPS LCD (ST7796, SPI), FT6336 touch, ES8311 audio, TF card, AXP2101, PCF85063, QMI8658.ESP32-S3 · ST7796 / ST7796S 320 x 480 · FT6236 / FT6336U touchPurchase this board
Waveshare ESP32-Touch-LCD-3.53.5" 320x480 IPS LCD (ST7796S, SPI), FT6336U touch, ES8311 audio, TF card, AXP2101, PCF85063.ESP32 · ST7796 / ST7796S 320 x 480 · FT6236 / FT6336U touchPurchase this board
Waveshare ESP32-P4-WIFI6-Touch-LCD-3.4C3.4" 800x800 round IPS panel (JD9365) on MIPI-DSI with GT9271 touch on an ESP32-P4, an ES8311 speaker codec, a TF card, a camera connector and Wi-Fi through its ESP32-C6. Compiled, not yet seen on a board.ESP32-P4 · JD9365 800 x 800 · GT911 touch
Waveshare ESP32-P4-WIFI6-Touch-LCD-4.34.3" 480x800 MIPI-DSI panel (ST7701) with GT911 touch on an ESP32-P4, an ES8311 speaker codec, a TF card, a camera connector and Wi-Fi through its ESP32-C6. Compiled, not yet seen on a board.ESP32-P4 · ST7701 (MIPI-DSI) 480 x 800 · GT911 touchPurchase this board
Waveshare ESP32-P4-NANO + 8-DSI-TOUCH-AWaveshare's 8" 800x1280 MIPI-DSI screen (JD9365) with GT911 touch on their ESP32-P4-NANO, whose backlight is a register on I2C. With the NANO's ES8311 codec, TF card, Ethernet and Wi-Fi through its ESP32-C6. Compiled, not yet seen on a boarESP32-P4 · JD9365 800 x 1280 · GT911 touchPurchase this board

Next