ESP32-S3 + ILI9341 SPI
ESP32-S3 DevKitC wired to a 2.8" ILI9341 with XPT2046 touch.
At a glance
| Maker | Generic |
| MCU | ESP32-S3 Xtensa LX7 dual-core @ 240 MHz, 512 KB SRAM (+ up to 8 MB PSRAM) |
| Display | Ilitek ILI9341, 240 x 320 px, SPI (4-wire serial), 16-bit colour |
| Touch | XPTek XPT2046 (resistive, SPI) |
| Backlight | GPIO 47, dimmable (PWM) |
| PSRAM | Yes |
| Graphics library | LovyanGFX |
Display pins
ILI9341 on SPI (4-wire serial): SPI clock 40 MHz, host SPI2_HOST, BGR colour order, inversion off.
| Signal | Pin |
|---|---|
| SCK / CLK | GPIO 12 |
| MOSI / SDA | GPIO 11 |
| MISO / SDO | GPIO 13 |
| CS | GPIO 10 |
| DC / RS | GPIO 14 |
| RESET | GPIO 21 |
| Backlight | GPIO 47 |
Touch pins
XPT2046: 2500 kHz, shares the display bus.
| Signal | Pin |
|---|---|
| SCK | GPIO 12 |
| MOSI | GPIO 11 |
| MISO | GPIO 13 |
| CS | GPIO 9 |
| IRQ / PENIRQ | GPIO 8 |
Check your revision. Wiring template - change the pins to match your build.
Designing for it in LCD Wizard
- Choose ESP32-S3 + ILI9341 SPI on the Hardware tab (or use the button above) and every pin on this page is filled in. The export writes the sketch,
lcd_pins.h, the LovyanGFX configuration,lv_conf.handplatformio.ini- a project that builds for this board as it comes. - The XPT2046 is resistive, so the firmware calibrates it on the device: touch the crosses on the first boot after an upload and the result is saved. The screen says whether it worked.
- The backlight is dimmable: give a slider or a button a Set backlight action.
- With PSRAM the LVGL memory pool can live there, leaving internal RAM for everything else.
- Screens are designed for 240 x 320 px in either orientation, with LVGL 9 or LVGL 8.
The parts
ILI9341. The most common hobby TFT. 2.2"-2.8" modules, usually with an XPT2046 resistive panel.
XPT2046. The classic 4-wire resistive controller. Needs calibration. Can share the display SPI bus with its own CS.
ESP32-S3. The only common Arduino target with a hardware RGB565 LCD peripheral. PSRAM is effectively required for RGB panels.
LovyanGFX. Widest panel and bus coverage, DMA on ESP32. Configured with a C++ config class.
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.
Similar boards
Next
- Quick start - from an empty screen to firmware on the board
- Boards and displays - presets, controllers, pins and touch in the designer
- Flashing and configuration - PlatformIO, the Arduino IDE and first-boot checks
- Troubleshooting - a white screen, mirrored image or touch that misses