Files
activeBuzzerTest/README.md
DESKTOP-PUHFO60\dsx2016 ace74649ff Fix 3.5C backlight/GT911: BL=GPIO27, capacitive touch, export package.
Wrong BL=21 caused black screens; INT stays on 21 as polling input after reset.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-25 12:16:57 +08:00

46 lines
1.1 KiB
Markdown
Raw Permalink 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.
# 有源蜂鸣器(CYD)
触控 + LVGL 参考 `tftest` / `hw269test`。GPIO22 高低电平控制有源蜂鸣器:点击开 / 点击关,默认关。
## 硬件
| 项目 | 2.8"(默认 `cyd`) | 3.5C(`cyd_35r`) |
|------|-------------------|-------------------|
| 板子 | ESP32-2432S028R | ESP32-3248S035C |
| 屏 / 触控 | ILI9341 + XPT2046 SoftSPI | ST7796 + GT911 I2C |
| 背光 | GPIO21 | **GPIO27** |
| 蜂鸣器信号 | **GPIO22** | **GPIO22**(与 2.8 相同) |
接线(两板):`VCC→5V`(或模块标注电压),`GND→GND`,`I/O / S→GPIO22`。
3.5 勿把信号接到 GPIO27(背光)。
## 操作
- 大按钮:开启 / 关闭蜂鸣器(切换)
- 上电默认:**关闭**
## 构建 / 烧录
```bash
# 2.8"
pio run -e cyd -t upload
# 3.5C
pio run -e cyd_35r -t upload
```
或用预编译包:
```powershell
cd firmware\cyd # 或 firmware\cyd_35r
.\flash.ps1
# 或 .\flash.ps1 -Port COMx
```
重新导出固件包:
```powershell
.\firmware\export_from_build.ps1 # 2.8 → firmware/cyd
.\firmware\export_from_build.ps1 -Env cyd_35r # 3.5 → firmware/cyd_35r
```