fix cyd_35r backlight/GT911 for ESP32-3248S035C (BL=27).

Wrong TFT_BL=21 caused black screens; INT is separate from backlight. Rebuild, flash COM3, and ship firmware/cyd_35r package.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-25 18:47:02 +08:00
parent d5b37d021f
commit dab8de43dc
16 changed files with 425 additions and 46 deletions

View File

@@ -4,9 +4,16 @@ GPIO22 读人体红外(PIR)模块 OUT:每次检测到运动开始,屏幕
## 硬件
| 项目 | 2.8"(默认) | 3.5" C |
|------|-------------|--------|
| 板子 | ESP32-2432S028R | ESP32-3248S035C |
| 屏 / 触控 | ILI9341 + XPT2046 SoftSPI | ST7796 + GT911 I2C |
| 背光 | GPIO21 | GPIO27 |
| PIR OUT | **GPIO22**(两板相同) | **GPIO22** |
| PlatformIO | `cyd` | `cyd_35r` |
| 项目 | 说明 |
|------|------|
| 板子 | CYD ESP32-2432S028R |
| 模块 | 三脚小型人体红外(卖家常写 mini SR501,实际多为 **HC-SR505**) |
| 供电 | **3.3V**(本工程已实测可用) |
| 输出 | **GPIO22** |
@@ -32,7 +39,7 @@ GPIO22 读人体红外(PIR)模块 OUT:每次检测到运动开始,屏幕
注意:
- 上电后约 **30~60 秒** 预热,此前可能无反应或乱跳
- OUT 接 **GPIO22**(勿接 21 背光),必须共地
- OUT 接 **GPIO22**(2.8 勿接 21 背光;3.5 勿接 27 背光),必须共地
- 小模块一般无灵敏度旋钮;检测距离大约 3m 量级
## 操作
@@ -43,14 +50,23 @@ GPIO22 读人体红外(PIR)模块 OUT:每次检测到运动开始,屏幕
## 构建 / 烧录
```bash
# 2.8"
pio run -e cyd -t upload
# 3.5" C
pio run -e cyd_35r -t upload
```
预编译包:
```powershell
# 2.8"
cd firmware\cyd
.\flash.ps1
# 3.5"
cd firmware\cyd_35r
.\flash.ps1
# 或 .\flash.ps1 -Port COMx
```
@@ -58,4 +74,5 @@ cd firmware\cyd
```powershell
.\firmware\export_from_build.ps1
.\firmware\export_from_build.ps1 -Env cyd_35r
```