Files
tftest/README.md
DESKTOP-PUHFO60\dsx2016 71fde27f05 Fix 3.5" backlight to GPIO27 and document CYD board pitfalls.
Align cyd_35r with 3248S035C pinout (BL!=INT) and point to CYD_PROJECT_GUIDE.

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

36 lines
1.2 KiB
Markdown
Raw 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"**:`pio run -e cyd_35r`(ST7796 + GT911,背光 **GPIO27**)。
跨板约定与避坑见上级目录 [`../CYD_PROJECT_GUIDE.md`](../CYD_PROJECT_GUIDE.md)(§1.1)。
## 功能
- 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
```