Files
hw269test/README.md
DESKTOP-PUHFO60\dsx2016 0d80734c00 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>
2026-10-25 11:25:55 +08:00

34 lines
788 B
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.
# HW-269 白光灯(CYD)
触控 + LVGL 参考 `tftest`。GPIO22 PWM 控制 HW-269:开关 + 亮度。
## 硬件
| 项目 | 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`。
## 操作
- 底部按钮:开关灯
- 滑条:亮度 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
```