Fix 3.5 CYD backlight and GT911 reset for cyd_35r.

Use GPIO27 for BL (not 21/INT), leave INT as INPUT after address select, and ship exported firmware/cyd_35r package.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-25 11:25:55 +08:00
parent bb5258f05c
commit 0d80734c00
16 changed files with 410 additions and 53 deletions

View File

@@ -4,11 +4,12 @@
## 硬件
| 项目 | 说明 |
|------|------|
| 板子 | CYD ESP32-2432S028R |
| 模块 | HW-269 3W 白光 LED |
| 信号 | **GPIO22**(S) |
| 项目 | 2.8" · 2432S028R | 3.5" C · 3248S035C |
|------|------------------|---------------------|
| 屏 / 触控 | ILI9341 + XPT2046 SoftSPI | ST7796 + GT911 I2C |
| 背光 | GPIO21 | GPIO27 |
| HW-269 信号 | **GPIO22**(第一脚,两板相同) | **GPIO22** |
| PlatformIO | `cyd` | `cyd_35r` |
接线:`VCC→5V`,`GND→GND`,`S→GPIO22`。
@@ -17,8 +18,16 @@
- 底部按钮:开关灯
- 滑条:亮度 0–100%
## 构建
## 构建 / 刷写
```bash
# 2.8"
pio run -e cyd -t upload
.\firmware\export_from_build.ps1
cd firmware\cyd; .\flash.ps1
# 3.5"
pio run -e cyd_35r -t upload
.\firmware\export_from_build.ps1 -Env cyd_35r
cd firmware\cyd_35r; .\flash.ps1
```