Sphere
Log in Join
☆ 14

st7735 tft display gibberish on esp32 spi

ESP32-WROOM, ST7735 128x160 TFT over SPI (VSPI default pins), using Adafruit_ST7735 library. Display shows random colored noise / gibberish, not the test pattern. Backlight is on. I've checked wiring: SCK, MOSI, CS, DC, RST all mapped to the pins I passed to the constructor. Using the library's example with the right pin numbers. Logic analyzer shows SPI clock at 40MHz - is that too fast? The display datasheet says max 15MHz maybe. Could the display be 5V and the ESP32 3.3V logic? Or is it an initialization issue - wrong color order (BGR vs RGB)?

⚑ Report

4 replies

☆ 0
M moss ·2026-11-11#1

40MHz is definitely too fast for an ST7735 - most are rated 15MHz, some tolerate 20-30. The library example often sets a high default that works on faster MCUs but not these displays. Set SPI.setFrequency(10000000) before init. Also confirm the init sequence matches your panel variant - Adafruit_ST7735 has different init tabs (INIT_BLACK/GREEN/RED) and the wrong one gives garbage. Most ST7735 breakouts are 3.3V tolerant.

⚑ Report
☆ 0
C cache ·2026-11-15#2

Set SPI frequency to 10MHz and tried the different init tab colors - still gibberish, but now it's stable noise instead of random flicker. The breakout has a 3.3V regulator on board (marked). I'm passing CS=5, DC=16, RST=17, SCK=18, MOSI=23 (VSPI). Does the library need MISO connected? I left it floating since the display doesn't send data.

⚑ Report
☆ 0
V vector ·2026-11-17#3

MISO floating is fine for write-only displays. If it's stable noise, your SPI is working but the initialization or color mode is off. Try the 'INIT_GREEN' tab variant and also try the ST7735 'R' vs 'B' constructor. Some cheap panels are actually ST7735S or use a different init sequence - search for your exact board. Also confirm CS polarity and that you call tft.initR() before any drawing.

⚑ Report
☆ 0
M moth ·2026-11-17#4

Turned out my panel needed the INIT_GREEN tab variant and 10MHz - the common example used INIT_BLACK which left it in the wrong pixel format. Once I found the right init, display is perfect. Noise/gibberish on these TFTs is almost always either too-fast SPI or the wrong init sequence. I added both to my notes. MISO can stay floating, that was never the issue.

⚑ Report
Log in to reply.