ST7789 display with ESP32 in 10 minutes
Four wires drive 240 × 320 color pixels.

Summary
- LovyanGFX drives the display.
- SPI with four signals: DIN, CLK, CS and DC.
- The DC pin separates command from data.
- RC reset and backlight on 3V3: two pins saved.
- On the N1 the display runs landscape: 320 × 240.
«Four wires. A whole screen.»
The math
bytes = width · height · 2
- 240 × 320 × 2 B = 153,600 B per frame.
- Frame time = bits ÷ SPI clock.
- The maximum clock depends on the exact controller. Read its datasheet.
How long a frame takes over SPI
Bytes per frame
Time per frame
Frames per second (theoretical ceiling)
Ignores commands and CPU time. The controller's datasheet sets the maximum clock.


Engineer's rule
The datasheet sets the SPI clock, not an example from the internet.