Boards / All-in-one boards

LCDWIKI 4.0" ESP32-S3 (ES3C40P)

4.0" 320x480 IPS ST7796S over SPI with FT6336U capacitive touch, an ES8311 codec with microphone and speaker output, a WS2812 LED, a 4-bit SD slot and battery charging.

The LCDWIKI 4.0" ESP32-S3 board
Photograph: LCDWIKI · vendor product image, no licence stated
Design a UI for this boardTest my boardPurchase this boardRead the quick start

As an Amazon Associate, LCD Wizard earns from qualifying purchases.

Building for it

A project is made for one toolchain, picked when you start it. All four can drive this board:

Toolchain
Arduino (C++)Every board, every widget and every peripheral here. The most control, and the most to set up. Start a project
MicroPythonChange a screen by editing a file on the board. No compiler once it is flashed. Start a project
ESPHomeNo compiler to install, and the panel can join Home Assistant as real entities. Start a project
ESP-IDF (C)Espressif's own framework: esp_lcd, the component registry and idf.py, with nothing of Arduino in it. Start a project

At a glance

PartDetail
MakerLCDWIKI
MCUESP32-S3
Xtensa LX7 dual-core @ 240 MHz, 512 KB SRAM (+ 2-16 MB PSRAM on most modules)
DisplaySitronix ST7796 / ST7796S, 320 x 480 px, SPI (4-wire serial), 16-bit colour
TouchFocalTech FT6236 / FT6336U (capacitive, I2C)
BacklightGPIO 45, dimmable (PWM)
Memory16 MB flash, 8 MB octal PSRAM (N16R8)
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 12
MOSI / SDAGPIO 11
MISO / SDOGPIO 13
CSGPIO 10
DC / RSGPIO 46
RESETnot connected
BacklightGPIO 45

Touch pins

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

SignalPin
SDAGPIO 16
SCLGPIO 15
INT / IRQGPIO 17
RESETGPIO 18

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. Run on a board (2026-10-22): the picture, touch (FT6336U at 0x38), the ES8311 answering at 0x18 and the 4-bit SD card (it mounted and read a 128 GB card) were seen working. Not reported yet: sound from the speaker, the microphone, the RGB LED and the battery reading. Pins are from LCDWIKI's page, Arduino demo instructions and schematic (their demo source is not published). The panel is set as LCDWIKI's ST7796_Init.txt has it - inversion on, BGR - with its power, VCOM and gamma sent as Panel tuning (the first build without them looked a little washed out); if colours come out negative turn Invert off, if red and blue are swapped change the colour order. The SPI clock is 80 MHz, sent to GFX Library for Arduino (which otherwise starts at 40 MHz); if the picture is noisy or garbled, set the SPI clock back to 40 MHz. Its reset is the board's RESET button, not a GPIO; DC (46) and the backlight (45) are strapping pins used as outputs once running. Touch, the ES8311 and the IIC header share I2C on GPIO 16/15. The speaker amplifier is enabled by pulling GPIO1 low; sound goes out on GPIO8 and the microphone comes in on GPIO6 (the page's I2S_DO/I2S_DI names are the other way round to the schematic) - switch it on under Hardware > Audio. Battery: two 100K resistors halve the cell on GPIO9. For smoother screen changes raise the draw buffer in Project settings (120 lines, double buffered, in PSRAM). Left free on the expansion header: GPIO 2, 3, 14 and 21, and UART0 on 43/44. USB-C goes straight to the S3, so the serial log needs USB CDC On Boot (the export sets it).

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-S3. The only common Arduino target with a hardware RGB565 LCD peripheral. PSRAM is effectively required for RGB panels.

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

Clone any of them into the designer, or see every design for this board in the gallery.

LCDWIKI 4.0" ESP32-32E (E32R40T / E32N40T)4.0" 320x480 ST7796S with XPT2046 resistive touch on the display's own SPI bus, an RGB LED, a speaker amplifier and battery charging. Sold rebadged as the Hosyond 4-inch; the E32N40T is the same board without touch.ESP32 · ST7796 / ST7796S 320 x 480 · XPT2046 touch
LCDWIKI 2.8" ESP32-S3 (ES3C28P)2.8" 240x320 IPS ILI9341V over SPI with FT6336G capacitive touch, an ES8311 codec with microphone and speaker output, a WS2812 LED, a 4-bit SD slot and battery charging.ESP32-S3 · ILI9341 240 x 320 · FT6236 / FT6336U touch
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
LCDWIKI 3.5" ESP32-S3 (ES3C35P)3.5" 320x480 ST77922 over QSPI with touch in the same chip, an ES8311 codec with microphone and speaker output, a WS2812 LED, a 4-bit SD slot and battery charging.ESP32-S3 · ST77922 320 x 480 · ST77922 (touch half) touchPurchase this board
WT32-SC01 Plus3.5" 320x480 ST7796 on an 8-bit i80 bus with FT6336U touch. Much faster than the SPI original.ESP32-S3 · ST7796 / ST7796S 320 x 480 · FT6236 / FT6336U touch
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 touch

Next