Display & input · lesson 1 of 2
The 1.9″ IPS screen
Drive the ST7789 display over SPI. Draw each frame in PSRAM, then send it in one go so nothing flickers.
On the board
You will learn
- SPI bus
- RGB565 colour
- frame buffer
- PSRAM
uv run pio run -d labs/03-display -e 03-display -t upload -t monitorParts required
Parts library- ESP32-S3-DevKitC-1 + USB-C data cable
- 1.9″ ST7789 screen
How the screen is wired
Interactive wiring guide for the 1.9-inch ST7789 170x320 IPS SPI screen showing VCC (3.3 V), GND, MOSI, SCK, CS, DC, RST, and BL connections.
- Key concepts: SPI bus, RGB565 colour, frame buffer, PSRAM.
- Signals & pins: 3V3 (VCC), GPIO7 (BLK), GPIO8 (RES), GPIO9 (DC), GPIO10 (CS).
Interactive diagram loads after page initialization.
Wiring
Steps
0 of 5 ticked. Ticks are saved in this browser.
All white or black? Check BLK and RES. Colours inverted? We switch invertDisplay. Garbage? Drop SPI to 20 MHz.
Preview: what you should see
Simulated 170x320 ST7789 IPS screen previewing text rendering, colour fills, and SPI display commands.
- Key concepts: SPI bus, RGB565 colour, frame buffer, PSRAM.
- Signals & pins: 3V3 (VCC), GPIO7 (BLK), GPIO8 (RES), GPIO9 (DC), GPIO10 (CS).
Interactive diagram loads after page initialization.
ESP32-S3 peripherals used in this lab
Open interactive GPIO pinoutExplore the hardware blocks, pin rules, and registers behind this experiment.
- SPI
Fast four-wire bus for screens, card readers and flash
- UART
Three serial ports, the one you see in the serial monitor
- CPU
Two Xtensa LX7 cores at up to 240 MHz
- SRAM
512 KB of fast on-chip RAM for your code and data
- ROM
384 KB of factory code: the bootloader and download mode
- Flash and PSRAM
The module's flash holds your program; PSRAM adds megabytes of RAM
Troubleshooting & hardware gotchas
See all 17 ESP32-S3 hardware gotchas- What if it does not work or behaves unexpectedly?
- All white or black? Check BLK and RES. Colours inverted? We switch invertDisplay. Garbage? Drop SPI to 20 MHz.