Files
ESP32-S3-LCD-1.3/.docs/PINS_VERIFIED.md
T
2026-09-21 10:28:35 +02:00

77 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ✅ 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
```cpp
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
1. ✅ Found official Waveshare demo code
2. ✅ Located `User_Setup.h` with TFT_eSPI configuration
3. ✅ Found backlight definition in example code (`LCD_BL = 20`)
4. ✅ Updated `src/display_init.cpp` with correct pins
5. ✅ Build successful
6. ✅ Upload successful
## Next Steps
The firmware has been uploaded with the correct pin configuration. The display should now:
1. **Light up** (backlight on GPIO 20 is now correct)
2. **Show SquareLine Studio UI**
3. **Display `uic_Home_LBL` label**
4. **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.h` lines 207-211
- Backlight example: `ESP32-S3-LCD-1.3-Demo/Arduino/examples/02_SD_Video/SD_Video_Prism/SD_Video_Prism.ino` line 31
---
**Verified**: 2025-11-08
**Status**: ✅ Correct pins confirmed from official Waveshare demo
**Uploaded**: Firmware with correct configuration uploaded successfully