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.

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

Building for it

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

Toolchain
Arduino (C++)Every board, every widget and every peripheral here. The most control, and the most to set up. Start a project
MicroPythonlvgl_micropython has no build for this chip.
ESPHomeThe ESP32-P4 is only useful here with a MIPI-DSI panel, which this export does not write yet.

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.

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

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.

Next