Files
tftest/README.md
DESKTOP-PUHFO60\dsx2016 3711e37f28 Clarify 2.8 vs 3.5 pin/touch differences in README.
Point to CYD_PROJECT_GUIDE section A for side-by-side board reference.
2026-10-25 10:40:25 +08:00

44 lines
1.4 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 Pomodoro
默认板:**ESP32-2432S028R**(2.8"):LVGL 横屏番茄钟,可选内置提示音,触控喇叭播放。
可选 **3.5" C**:`pio run -e cyd_35r`。
| | 2.8" `cyd` | 3.5C `cyd_35r` |
|--|------------|----------------|
| 屏 | ILI9341 · UI 320×240 | ST7796 · UI 480×320 |
| 触控 | **XPT2046** SoftSPI | **GT911** I2C |
| 背光 | GPIO**21** | GPIO**27** |
| 外设首选 | CN1 **IO22 + IO27** | 优先 **IO22**(21=INT,27=BL) |
完整对照与避坑:[`../CYD_PROJECT_GUIDE.md`](../CYD_PROJECT_GUIDE.md) **§A**。
## 功能
- SoftSPI 触摸(2.8,已标定,勿改 `src/touch.cpp` 映射);3.5C 为 GT911 I2C
- 番茄钟:预设 1 / 3 / 5 / 10 分钟;`Set` 自定义输入;`+/-` 微调;Start / Pause / Reset
- 结束音效:内置 Beep 列表自选(默认 Alarm),点名称可试听
- 喇叭 GPIO26 + 音量滑条;TF 卡状态显示在右上角
- 基线标签:`v1.0-beep-wav`(改番茄钟前的 Beep + WAV 界面)
## 构建 / 烧录
```bash
# 2.8"
pio run -e cyd -t upload --upload-port COM3
# 3.5" 电容板
pio run -e cyd_35r -t upload --upload-port COM3
```
或 `firmware/cyd/flash.bat`(2.8 预编译包)。
浏览器刷写(推荐):在 [`../cydweb`](../cydweb) 运行 `npm run dev`,打开 http://localhost:3000 ,选择 **CYD Pomodoro**。
更新预编译包:
```powershell
.\firmware\export_from_build.ps1
# 仅复制已有构建:
.\firmware\export_from_build.ps1 -SkipBuild
```