Skip to content
esp-labsESP32-S3 bench guide
ESP32-S3 DevKitC pinoutThis lesson uses: VCC on 3V3, BLK on 7, RES on 8, DC on 9, CS on 10, SDA on 11, SCL on 12, GND on GND.ESP32-S3WROOM-1 N16R8BOOTRSTRGBUSBCOM3V3VCC3V3RST4567BLK151617188RES3469DC10CS11SDA12SCL13145VGNDGNDGNDTX 43RX 441242414039383736350454847212019GNDGND
  • used in this lesson
  • safe GPIO
  • avoid
  • power
  • ground
  • button input
  • RC522
Between lessons
  1. Ctrl+C closes the monitor on the Mac only. The board keeps running.
  2. Unplug USB: this is what stops the program and the screen
  3. Rewire while off
  4. Check VCC is on 3V3, no loose ends
  5. Plug in, flash the next lesson

Never unplug during Writing at 0x…. Pin changing from output to input? Flash first, then wire.

Lesson 03

Display & input · lesson 1 of 2

The 1.9″ IPS screen

runs on the board

Drive the ST7789 display over SPI. Draw each frame in PSRAM, then send it in one go so nothing flickers.

You will learn

  • SPI bus
  • RGB565 colour
  • frame buffer
  • PSRAM
uv run pio run -d labs/03-display -e 03-display -t upload -t monitor
Open this lab's code on GitHubesp-labs / labs / 03-display (opens in a new tab)

Parts 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

Display pinESP32-S3Role
GNDGNDground (bottom-left pin)
VCC3V3power (top-left pin)
SCLGPIO 12SPI clock
SDAGPIO 11SPI data (MOSI)
RESGPIO 8reset
DCGPIO 9data / command
CSGPIO 10chip select
BLKGPIO 7backlight

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 pinout

Explore 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.