Boards / All-in-one boards

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.

The LCDWIKI 4.0" ESP32-32E board
Photograph: LCDWIKI · vendor product image, no licence stated

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 (WROOM / WROVER)
Xtensa LX6 dual-core @ 240 MHz, 520 KB SRAM (+ up to 8 MB PSRAM on WROVER)
DisplaySitronix ST7796 / ST7796S, 320 x 480 px, SPI (4-wire serial), 16-bit colour
TouchXPTek XPT2046 (resistive, SPI)
BacklightGPIO 27, dimmable (PWM)
Memory4 MB flash, no PSRAM (N4)
Graphics libraryTFT_eSPI

Display pins

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

SignalPin
SCK / CLKGPIO 14
MOSI / SDAGPIO 13
MISO / SDOGPIO 12
CSGPIO 15
DC / RSGPIO 2
RESETnot connected
BacklightGPIO 27

Touch pins

XPT2046: 2500 kHz, shares the display bus.

SignalPin
SCKGPIO 14
MOSIGPIO 13
MISOGPIO 12
CSGPIO 33
IRQ / PENIRQGPIO 36

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 LCDWIKI's Arduino demo instructions (table 2.1) and schematic; colour order and SPI clock from the two community projects for this board. Touch shares the display's SPI bus (CS 33, IRQ 36) and calibrates on first boot. On the E32N40T choose None under Hardware > Touch. The SD card (CS 5, 18/19/23) and the I2C header (SDA 32, SCL 25) are left out of the kit: a third SPI bus on the SD pins would share a controller with the panel.

Designing for it in LCD Wizard

The parts

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

XPT2046. The classic 4-wire resistive controller. Needs calibration. Can share the display SPI bus with its own CS.

ESP32 (WROOM / WROVER). No native RGB parallel peripheral - use SPI or an 8/16-bit i80 bus.

TFT_eSPI. Fastest for SPI panels on ESP32. Configured via User_Setup.h build defines.

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.

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.ESP32-S3 · ST7796 / ST7796S 320 x 480 · FT6236 / FT6336U touchPurchase this board
WT32-SC013.5" 320x480 ST7796 over SPI with FT6336U capacitive touch.ESP32 · ST7796 / ST7796S 320 x 480 · FT6236 / FT6336U touch
LCDWIKI 2.8" ESP32-32E (E32R28T)A Cheap Yellow Display alternative: 2.8" 320x240 ILI9341V with XPT2046 resistive touch, an RGB LED, a speaker amplifier and battery charging. The LED and audio pins are not the Sunton board's.ESP32 · ILI9342 / ILI9342C 320 x 240 · XPT2046 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
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 touchPurchase this board
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

Next