Add firmware/cyd archive for flash-without-compile.

Mirror the temperature project layout with export and one-click flash scripts.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-17 17:45:32 +08:00
parent f05c5d6fd2
commit 2a90649059
12 changed files with 256 additions and 4 deletions

View File

@@ -32,10 +32,28 @@
- Audio:当前音频状态
- 用量进度条
## 编译烧录
## 预编译固件(随时刷,不必编译)
与 `temperature` 工程相同:归档在 [`firmware/cyd/`](firmware/cyd/)(含 bootloader / partitions / app):
```powershell
cd firmware\cyd
.\flash.ps1
# 或 .\flash.ps1 -Port COM3
```
说明见 [`firmware/README.md`](firmware/README.md)。源码更新后重新打包:
```powershell
.\firmware\export_from_build.ps1
# 已编译过、只复制:
.\firmware\export_from_build.ps1 -SkipBuild
```
## 从源码编译烧录
```bash
pio run -t upload
pio run -e cyd -t upload
pio device monitor
```
@@ -44,7 +62,7 @@ pio device monitor
- TF 需 **FAT/FAT32**。
- 若触屏坐标偏移,改 `src/touch.cpp` 里 `map(...)` 校准范围。
- 若点按无反应,检查排线/旋转;可尝试交换 raw_x/raw_y 映射。
- 变更请更新 `CHANGELOG.md` 并提交本地 git。
- 变更请更新 `CHANGELOG.md`、必要时重新 `export_from_build.ps1`,并提交本地 git。
## 版本