ESP32 Tutorial: Using 2.8 Inch SPI TFT LCD Touch Display (ST7789 & ILI9341)

Published at : 23 Dec 2025

In this video, I’ll show you how to set up and use the 2.8 inch SPI TFT LCD Touch Display with two popular drivers: ST7789 and ILI9341. Whether you’re using an ESP32, this step-by-step guide will walk you through the process from wiring to code setup, including touch functionality and SD card usage.


BUY: 2.8 inch/2.4/2.2/3.2/3.5 inch TFT touch color SPI serial LCD display module
https://s.click.aliexpress.com/e/_DFETGUv

Buy: ESP32 Arduino LVGL 2.8'' Smart Display
https://s.click.aliexpress.com/e/_Dlumxih
https://s.click.aliexpress.com/e/_DCsiYHb

Buy: Gps Module Arduino Neo 6m
https://s.click.aliexpress.com/e/_DmxNinJ


How to Use 2.8 Inch SPI TFT LCD Touch Display (ST7789 & ILI9341) with ESP32 | Full Guide:

Required Components:

ESP32 development board
2.8" SPI TFT LCD Display Module (ST7789 or ILI9341)
Micro SD card (optional for image display)
TFT_eSPI library by Bodmer
JPEGDecoder Library
Jumper wires and breadboard

Start building your ESP32 display project today!

TFT Display Wiring:
TFT_VCC → ESP32 VIN / 3V3
TFT_GND → ESP32 GND
TFT_CS → ESP32 D15 / GPIO 15 (Chip Select)
TFT_RST → ESP32 D4 / GPIO 4 (Reset Pin)
TFT_DC → ESP32 D2 / GPIO 2 (Data/Command)
TFT_MOSI → ESP32 D23 / GPIO 23 (MOSI)
TFT_SCK → ESP32 D18 / GPIO 18 (Clock)
TFT_LED → ESP32 3V3 (LED Backlight)
TFT_MISO → ESP32 D19 / GPIO 19 (MISO)

Touchscreen Wiring (XPT2046):
T_CLK → ESP32 D18 / GPIO 18 (Clock, shared with TFT)
T_CS → ESP32 D21 / GPIO 21 (Touchscreen Chip Select)
T_DIN → ESP32 D23 / GPIO 23 (Data Input, shared with TFT MOSI)
T_DO → ESP32 D19 / GPIO 19 (Data Output, shared with TFT MISO)
T_IRQ → Optional: Connect to an available GPIO (e.g., GPIO 22) or leave unconnected.

SD Card Wiring:
SD_SCK → ESP32 D18 / GPIO 18 (Shared with TFT)
SD_MISO → ESP32 D19 / GPIO 19 (Shared with TFT)
SD_MOSI → ESP32 D23 / GPIO 23 (Shared with TFT)
SD_CS → ESP32 D5 / GPIO 5 (You can choose a different GPIO if needed)

pinMode(16, OUTPUT);

digitalWrite(16,false);
digitalWrite(16,false);

http://www.lcdwiki.com/2.8inch_SPI_Module_ILI9341_SKU:MSP2807

LIKE | COMMENT | SHARE | SUBSCRIBE
=== = = = = = = = == = = = == = = = == = =
== = = = = == = = = = = = = == = = = = = ==
★★ Please like and subscribe ★★
https://www.youtube.com/channel/UCNqYc-ojesF6AbXwiWdZbeg?sub_confirmation=1
=== = = = = = = = == = = = == = = = == = =

How to extend wifi range with another router wirelessly
https://www.youtube.com/watch?v=_EpCRg5ggEs
How To Program ATtiny85 Microcontroller with Arduino Uno || Programming And Burn Bootloader
https://www.youtube.com/watch?v=BL1gI4AcMOA
TP-Link To Netgear Router Wireless Internet Sharing || Router As WiFi Repeater, Range Extender - WDS
https://www.youtube.com/watch?v=9CS3xfIpK90
view ip camera easy way
https://www.youtube.com/watch?v=u0ILfIY5Bqk
How to extend wifi range with another router
https://www.youtube.com/watch?v=wkyKX2ifPFo
sokoban level 11 solution
https://www.youtube.com/watch?v=xvu6r5_4_T4

★★=== = = = = = = = ==★★
Contact us for any enquiries :
EmailForViewers@gmail.com
www.facebook.com/rubel1628
★★=== = = = = = = = ==★★
#yellowpurple
##

=== = = = = = = = == = = = == = = = == = =