Files
hw069digitdisplaytest/README.md
DESKTOP-PUHFO60\dsx2016 9576c5f7d2 Add HW-069 v1.1 4-digit TM1637 test with SoftSPI touch and LVGL.
CLK on GPIO22, DIO on GPIO27; value/brightness/colon controls and flashable firmware/cyd package.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 14:08:51 +08:00

50 lines
946 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-069 四位数显(CYD)
触控 + LVGL 参考 `tftest` / `hw269test`。HW-069 v1.1(TM1637)两线驱动:调数值、亮度、冒号、开关。
## 硬件
| 项目 | 说明 |
|------|------|
| 板子 | CYD ESP32-2432S028R |
| 模块 | HW-069 v1.1 四位 0.36" 数码管(TM1637) |
| CLK | **GPIO22** |
| DIO | **GPIO27** |
接线:
| HW-069 | CYD |
|--------|-----|
| VCC | 3.3V 或 5V |
| GND | GND |
| CLK | GPIO22 |
| DIO | GPIO27 |
## 操作
- 大字:当前显示值(冒号开时显示 `mm:ss` 样式)
- **-100 / -1 / +1 / +100**:改数值(0–9999)
- 滑条:亮度 0–100%(映射 TM1637 8 档)
- **Colon**:中间冒号开关
- **Display ON/OFF**:熄灭 / 点亮数显
## 构建 / 烧录
```powershell
pio run -e cyd -t upload
```
## 预编译固件
```powershell
cd firmware\cyd
.\flash.ps1
# 或 .\flash.ps1 -Port COMx
```
重新导出:
```powershell
.\firmware\export_from_build.ps1
```