
Read the symptom first
What you see | Most likely cause | Go to check |
|---|---|---|
Uniform white, backlight on (TN panel) | Controller not initialised | 1 to 7 |
Uniform black, backlight on (IPS panel) | Controller not initialised | 1 to 7 |
Random noise or stripes | Wrong driver, wrong colour depth or SPI errors | 5, 6, 8 |
Image shows, colours wrong | Inversion or RGB/BGR order | 8 |
Works once, fails after reset | Reset timing or power sequencing | 2 |
Nothing at all, backlight off | Backlight supply or enable pin | 9 |
Why white on one panel and black on another? TN panels are "normally white": with no drive voltage the pixels pass light. IPS panels are "normally black". The fault is the same; only its appearance differs.
The 9 checks, in order
1. Supply and logic voltage
Measure VCC and the logic high level at the module. Many modules accept 5 V on VCC through a regulator but still expect 3.3 V logic on their signal pins. If the module has no level shifting, do not drive it from a 5 V microcontroller.
2. Reset timing
The ILI9341 and ST7789V datasheets both specify a reset pulse of at least 10 µs and a reset-cancel time of 5 ms before the first command, rising to 120 ms if the reset happens in Sleep Out mode. After Sleep Out (0x11), give the panel time before Display On (0x29); most drivers wait 120 ms. A reset pin left floating or tied to a slow RC can leave the controller in an undefined state.
3. CS and DC wiring
Swapped CS and DC is the most common wiring mistake. The controller then treats every data byte as a command or ignores the bus entirely. Check against the module's pinout, not a similar board's.
4. SCK and MOSI
Confirm the clock and data reach the panel with a logic analyzer or oscilloscope. Look for clean edges at the module's connector, not at the microcontroller pin.
5. The driver selected in your library
ILI9341, ST7789, ILI9488 and GC9A01 init sequences are not interchangeable. A driver for the wrong chip usually produces a white screen. Boards sold under one name can ship with different controllers; see how to tell ILI9341 from ST7789.
6. SPI mode and clock
Most panels use SPI mode 0. Some 240×240 ST7789 modules without a CS pin need mode 3. The datasheet write-clock limits are conservative (the ILI9341 serial write cycle is specified at 100 ns, about 10 MHz), and libraries often run far faster. If the screen stays white, drop to 10 MHz and try both modes before changing anything else. Long jumper wires are a frequent cause of failures at higher clocks.
7. The panel-specific init table
Controllers with programmable gamma and power settings, such as the GC9A01 and ST7701S, need the init table that matches the exact glass. Use the sequence from the module supplier, not from a different panel with the same controller.
8. Colour depth and pixel format
The ILI9488 accepts only 18-bit colour over 3/4-wire SPI, so a library sending RGB565 shows noise or nothing. If an image appears but colours look negative or red and blue are swapped, change inversion (INVON/INVOFF) or the RGB/BGR bit in MADCTL.
9. Backlight and the FPC
Some modules power the backlight from a separate pin or need a PWM enable. If the backlight works but nothing else does, reseat the FPC, check that the connector latch is closed, confirm pin 1 orientation, and inspect the FPC for creases near the bend.
If the panel RESET is tied to the board reset
On many breakouts the panel's RESET pin is wired to the microcontroller's EN/RST line, so one reset clears both chips. That wiring is fine. What breaks is telling the library to drive a reset GPIO that is not connected to the panel. The library toggles that pin, the panel never sees the pulse, and the init sequence goes into a controller that was never reset.
- TFT_eSPI: the comments in
User_Setup.hsay to setTFT_RSTto -1 if the display RESET is connected to the ESP32 board RST (or to 3.3 V). - ESPHome
mipi_spi:reset_pinis optional, and only needed if the board wires RESET to a GPIO. If RESET is tied to EN, leavereset_pinout.
If the panel only comes up after you press the board's reset button, check this first.
The opposite case also happens. On ESP32-S3 RGB boards the panel RESET often sits on an I2C expander, and it must be driven through the expander. ST7701S panels that stay black after a reboot are the common example; see the ST7701S page.
A ten-minute bench test
- Load the simplest example from your library with your exact pins and driver.
- Lower the SPI clock to 10 MHz.
- Toggle display inversion in a loop. If the screen changes, the controller is alive and the problem is in your init or drawing code.
- If the module connects MISO, read the controller ID. An ILI9341 returns 0x93 0x41 to Read ID4 (0xD3).
- If nothing responds, check reset and power with a scope during start-up.
Still stuck? Send a photo of the module, your wiring and your code through Ask an Engineer.
Frequently asked questions
Why is my TFT white after uploading code?
The controller is powered but not initialised. Make sure the library is set to your exact driver IC and pins, and that reset is toggled with enough delay before the init sequence.
Can a wrong SPI mode cause a white screen?
Yes. Most TFT controllers use SPI mode 0, but some 240×240 ST7789 modules without a CS pin need mode 3. Lower the clock to 10 MHz and test both.
Why is the screen black instead of white?
IPS panels are normally black, so an uninitialised IPS panel looks black with the backlight on. Work through the same checks as for a white screen.
How do I know the panel itself is not broken?
If the controller answers an ID read or reacts to an inversion command, the panel and FPC are working and the fault is in configuration. Physical damage usually shows as lines, partial images or a cracked edge.
Why does my TFT only work after I press the reset button?
The panel's RESET is probably tied to the board's EN/RST line while the firmware drives a reset GPIO that is not connected. In TFT_eSPI set TFT_RST to -1 in that case, as the comments in User_Setup.h say; in ESPHome mipi_spi leave reset_pin out.


