Commit 99efb06
committed
fix: Correct TFT pins and add I2C power for Reverse TFT board
Fixed pin definitions and display initialization for both Adafruit ESP32-S3
Feather TFT variants based on official Adafruit board definitions.
Pin Corrections (from official Arduino board definitions):
- Normal TFT (adafruit_feather_esp32s3_tft):
* TFT_CS: 7
* TFT_DC: 39
* TFT_RST: 40
* TFT_BACKLIGHT: 45
* TFT_I2C_POWER: 21 (NEW - required for display power)
- Reverse TFT (adafruit_feather_esp32s3_reversetft):
* TFT_CS: 42
* TFT_DC: 40
* TFT_RST: 41
* TFT_BACKLIGHT: 45
* TFT_I2C_POWER: 7 (NEW - required for display power)
Critical Fix:
- Added TFT_I2C_POWER pin initialization in initializeTFT()
- This pin MUST be set HIGH before initializing the display
- Without this, the display may not work or show garbled output
- Added 10ms delay after power-on for stabilization
Display Configuration:
- Rotation: 1 for normal TFT, 3 for Reverse TFT
- Dimensions: 135x240 pixels (both boards)
- Driver: Adafruit ST7789
Testing:
- Both board variants build successfully
- Normal TFT: Flash 80.5%, RAM 16.2%
- Reverse TFT: Flash 79.1%, RAM 16.2%
References:
- ~/.platformio/packages/framework-arduinoespressif32/variants/adafruit_feather_esp32s3_tft/pins_arduino.h
- ~/.platformio/packages/framework-arduinoespressif32/variants/adafruit_feather_esp32s3_reversetft/pins_arduino.h1 parent 3e75883 commit 99efb06
2 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | | - | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | | - | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
0 commit comments