Add HW-269 white LED test with SoftSPI touch and LVGL.

PWM on GPIO22 for on/off and brightness; UI layout keeps slider and power button separate.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-23 10:33:41 +08:00
commit ad4e0061f2
23 changed files with 1837 additions and 0 deletions

24
README.md Normal file
View File

@@ -0,0 +1,24 @@
# HW-269 白光灯(CYD)
触控 + LVGL 参考 `tftest`。GPIO22 PWM 控制 HW-269:开关 + 亮度。
## 硬件
| 项目 | 说明 |
|------|------|
| 板子 | CYD ESP32-2432S028R |
| 模块 | HW-269 3W 白光 LED |
| 信号 | **GPIO22**(S) |
接线:`VCC→5V`,`GND→GND`,`S→GPIO22`。
## 操作
- 底部按钮:开关灯
- 滑条:亮度 0–100%
## 构建
```bash
pio run -e cyd -t upload
```