2.2 KiB
2.2 KiB
✅ VERIFIED Pin Configuration for ESP32-S3-LCD-1.3
Official Pin Mapping (from Waveshare Demo Code)
Source: ESP32-S3-LCD-1.3-Demo/Arduino/libraries/TFT_eSPI/User_Setup.h
ST7789 Display Pins
SCLK (SPI Clock): GPIO 40
MOSI (SPI Data Out): GPIO 41
MISO (SPI Data In): GPIO -1 (not connected)
CS (Chip Select): GPIO 39
DC (Data/Command): GPIO 38
RST (Reset): GPIO 42
BL (Backlight): GPIO 20 ⭐
Updated in Code
File: src/display_init.cpp
- Lines 23-26: SPI bus pins (SCLK, MOSI, DC)
- Lines 40-41: Panel control (CS, RST)
- Line 64: Backlight (BL) - GPIO 20
Display Specifications
- Driver: ST7789VW (ST7789_DRIVER in TFT_eSPI)
- Resolution: 240×240 pixels
- Color: RGB565 (262K colors)
- Color Order: TFT_RGB (Red-Green-Blue)
- Inversion: TFT_INVERSION_ON
- SPI Frequency: 80MHz (write), 16MHz (read)
Additional Hardware
- IMU Sensor: QMI8658 (6-axis, I2C)
- SD Card: TF card slot support
- USB: CH343P USB-to-UART chip
- Power: USB-C + battery connector
Verification Steps
- ✅ Found official Waveshare demo code
- ✅ Located
User_Setup.hwith TFT_eSPI configuration - ✅ Found backlight definition in example code (
LCD_BL = 20) - ✅ Updated
src/display_init.cppwith correct pins - ✅ Build successful
- ✅ Upload successful
Next Steps
The firmware has been uploaded with the correct pin configuration. The display should now:
- Light up (backlight on GPIO 20 is now correct)
- Show SquareLine Studio UI
- Display
uic_Home_LBLlabel - Update every second with uptime and heap info
If the display still doesn't work, check:
- Power supply (5V USB)
- Physical connections
- Try pressing RESET button on board
References
- Demo code location:
ESP32-S3-LCD-1.3-Demo/Arduino/ - TFT_eSPI setup:
ESP32-S3-LCD-1.3-Demo/Arduino/libraries/TFT_eSPI/User_Setup.hlines 207-211 - Backlight example:
ESP32-S3-LCD-1.3-Demo/Arduino/examples/02_SD_Video/SD_Video_Prism/SD_Video_Prism.inoline 31
Verified: 2025-11-08 Status: ✅ Correct pins confirmed from official Waveshare demo Uploaded: Firmware with correct configuration uploaded successfully