Skip to content
Display Engineer
Driver IC · Ilitek

ILI9341: datasheet notes & setup

The ILI9341 drives 240×320 TFT panels and is the classic controller behind 2.2″–3.2″ SPI display modules and the ESP32 “Cheap Yellow Display”.

DEDisplay Engineer Applications Team · Display application engineersUpdated Oct 23, 2026
ManufacturerIlitek
TypeDisplay driver
InterfacesSPI / MCU (8080 parallel) / RGB (parallel)
Max resolution240×320

What the ILI9341 is

The Ilitek ILI9341 datasheet (V1.11) describes a single-chip driver for 240RGB×320 a-Si TFT panels with 262K colours. Its key figures:

  • GRAM: 172,800 bytes on chip, which is one full 240×320 frame at 18 bits per pixel.
  • Interfaces: 8080 MCU bus (8/9/16/18-bit), RGB, and 3-line or 4-line SPI.
  • Supplies: VDDI (logic) 1.65 V to 3.3 V and VCI (analog) 2.5 V to 3.3 V.
  • Operating temperature: −40 °C to +85 °C.

It is the controller behind many 2.2″ to 3.2″ SPI modules and many ESP32-2432S028R "Cheap Yellow Display" boards.

SPI clock: datasheet limit vs practice

The datasheet's 4-line SPI timing gives a minimum write clock cycle of 100 ns and a minimum read cycle of 150 ns. That is 10 MHz for writes and about 6.6 MHz for reads.

Many ESP32 projects drive ILI9341 modules at 40 MHz. That is well outside the datasheet, so it depends on the module and the wiring. Test at your final clock, and lower the clock for register or pixel reads.

Bring-up

  1. Hardware reset. The datasheet asks for a 5 ms wait after RESX goes high before sending commands, and no Sleep Out for 120 ms after a reset.
  2. Init table. Send it, then COLMOD (3Ah = 55h for RGB565) and MADCTL (36h) for rotation and BGR order.
  3. Sleep Out (11h), then Display On (29h).

To confirm the controller, read the ID register D3h. The ILI9341 returns 93h 41h in its last two bytes. See how to tell an ILI9341 from an ST7789.

ESPHome: move to mipi_spi

ESPHome's ili9xxx platform is deprecated. Its source says it will be removed in ESPHome 2027.5.0. The mipi_spi driver has an ILI9341 model (320×240), so for a new configuration use:

  • platform: mipi_spi with model: ILI9341, plus dc_pin, and cs_pin and reset_pin if they are wired to GPIOs.
  • An explicit data_rate, because the default is 10 MHz.
  • color_order and invert_colors set to match the panel.

Common problems

Symptom

Check

White screen

Reset not toggled, MOSI/MISO swapped, or the library is set to a different driver. Read D3h to confirm the chip.

Red and blue swapped

The BGR bit in MADCTL, or color_order in ESPHome.

Lines or artefacts on one batch but not another

Some panels need a different init table. TFT_eSPI ships an alternative ILI9341_2_DRIVER for these, from issue #1172.

Corruption at high SPI clock

Lower the clock towards the datasheet's 10 MHz, shorten the wires, then raise it again while testing.

Touch is a separate chip. Resistive modules usually use an XPT2046 on SPI, and capacitive ones use an I2C controller. See GT911 and CST816S.

ILI9341 library support

LibraryDriver / classNotes
TFT_eSPI (Arduino)ILI9341_DRIVER (or ILI9341_2_DRIVER)
LovyanGFX (Arduino / ESP-IDF)lgfx::Panel_ILI9341
ESP-IDF esp_lcdespressif/esp_lcd_ili9341
Download ILI9341 config templates

User_Setup_ILI9341.h · LGFX_ILI9341.hpp. Pins are placeholders; we email updates when we add tested configurations.

Dev boards using ILI9341

Display modules using ILI9341

Guides & comparisons

ILI9341 troubleshooting & FAQ

ILI9341 vs ST7789: which should I choose?

Both are 240×320 drivers with on-chip GRAM and wide library support. The datasheets differ on SPI speed: the ILI9341 specifies a 100 ns write cycle (10 MHz) and the ST7789V 66 ns (about 15 MHz). In practice choose by panel size, viewing angle and availability of the exact module.

Why does my ILI9341 show a white screen?

The most common causes are a missing or wrong reset, MISO/MOSI swapped, a backlight-only power path, or a library configured for a different driver. Read register 0xD3: an ILI9341 returns 0x93 0x41 in its last two bytes.

What SPI clock can ILI9341 handle?

The Ilitek datasheet gives a 100 ns minimum write cycle (10 MHz) and 150 ns for reads. Many ESP32 projects run 40 MHz, which is outside the datasheet, so test at your final clock and wiring. ESPHome's mipi_spi driver defaults to 10 MHz unless you set data_rate.

Is the ESPHome ili9xxx component being removed?

Yes. ESPHome marks ili9xxx as deprecated and its source says it will be removed in ESPHome 2027.5.0. Use platform: mipi_spi with model: ILI9341 instead.

Sources

  1. Ilitek ILI9341 datasheet V1.11 (hosted by Adafruit)
  2. ESPHome: MIPI SPI display driver
  3. ESPHome source: ili9xxx/display.py (removal in 2027.5.0)
  4. TFT_eSPI User_Setup.h (ILI9341_2_DRIVER)
  5. TFT_eSPI issue #1172

Not sure which display fits your design?

Send us your size, interface and host processor. A display engineer replies within 12 hours with 2–3 options, datasheets and init code. Samples from 1 pc.