Japannopnop2002/esp-idf-ili9340
SPI TFT and XPT2046 touch screen controller driver for esp-idf
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
🖥️ Wide-range SPI TFT + XPT2046 driver for ESP-IDF
Drive many SPI panels and optional XPT2046 touch directly from ESP-IDF.
This is a SPI TFT and XPT2046 touch screen controller driver for esp-idf by nopnop2002. It targets ESP32 family boards running ESP-IDF V5.0 or later and is built to drive common SPI TFT panels with configurable pins and optional image display.
✨ Highlights
- Wide display support: Tested with ILI9340/9341/9325, ST7735/7789/7796, ILI9225 across sizes from 0.96" up to 4.0".
- XPT2046 touch: Supports XPT2046 touch screen controller on compatible boards.
- Image display: Can display BMP, JPEG and PNG files, with chip-specific notes for decoding.
- Menuconfig driven: Uses CONFIG_WIDTH/HEIGHT/OFFSETX/OFFSETY and MOSI/SCLK/CS/DC/RESET/BL to fit many generic or preset boards.
- Board presets: Includes setups for M5Stack and many Shenzhen Jingcal Intelligent SPI panels.
- Chip-aware limits: Calls out ESP32-C6 needing ESP-IDF V5.1, ESP32-S2/C2 SRAM limits, need for esp_jpeg on ESP32-S2/C2, and PSRAM option for ESP32-S2.
💡 Why it matters
This project stays focused on SPI interface displays and XPT2046 touch, not parallel panels. It documents real memory constraints and workarounds for smaller SoCs instead of assuming enough RAM for every resolution. With explicit tested panels and per-chip notes, it fits direct hardware bring-up on cheap off-the-shelf SPI TFT modules under ESP-IDF.
#ESP32 #TFT #SPI #ILI9341 #XPT2046 #TiniX
Similar Projects
Discover other similar projects and AI models.
STM32 LCD drivers (currently: spi(dma), gpio, fsmc(dma), st7735, st7783, ili9325, ili9328, ili9341, ili9486, ili9488, hx8347g)
STM32 graphics LCD and Touchscreen drivers (LCD: st7735, st7781, ili9325, ili9328, ili9341, ili9488, Touch: analog resistive, xpt2046, stmpe811)
Open source, local, and self-hosted Amazon Echo/Google Home competitive Voice Assistant alternative
Advanced firmware to add native Apple HomeKit and custom configurations, compatible with any SoC based on ESP32, ESP32-S, ESP32-C and ESP8266 series. (Shelly, Sonoff, Electrodragon, Tuya...)
SPI LCD graphics library for ESP32 (ESP-IDF/ArduinoESP32) / ESP8266 (ArduinoESP8266) / SAMD51(Seeed ArduinoSAMD51)
8bit parallel TFT & 4-line resistance touch screen Driver for esp-idf using i2s paralell mode