Files
sgp30test/firmware/README.md
DESKTOP-PUHFO60\dsx2016 ee2ca3edfc Align 3.5C pins with CYD_PROJECT_GUIDE: TFT_BL=27, SGP30 SDA22/SCL21.
Leave 2.8 wiring unchanged; release GT911 INT after reset so SCL21 can share CN1.

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

51 lines
1.3 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.
# 预编译固件(可随时刷写)
| 目录 | 板子 | SGP30 | 背光 |
|------|------|-------|------|
| [`cyd_28r/`](cyd_28r/) | ESP32-2432S028R(ILI9341) | SDA=22 / SCL=27 | GPIO21 |
| [`cyd_35r/`](cyd_35r/) | ESP32-3248S035C(ST7796 + GT911) | SDA=22 / SCL=21 | GPIO27 |
版本信息见各目录 `VERSION.txt`。引脚约定见 [`../CYD_PROJECT_GUIDE.md`](../../CYD_PROJECT_GUIDE.md)。
## 直接刷写(无需重新编译)
1. USB 连接板子
2. 进入对应目录执行:
```powershell
cd firmware\cyd_28r # 或 cyd_35r
.\flash.ps1
# 或指定端口
.\flash.ps1 -Port COM3
```
也可双击 / 运行 `flash.bat`(若有)。
依赖其一即可:
- 已安装 PlatformIO(`pio`,自带 esptool)
- 或 `pip install esptool`
## 手动 esptool
```bash
esptool.py --chip esp32 --port COM3 --baud 921600 write_flash -z ^
--flash_mode dio --flash_freq 40m --flash_size 4MB ^
0x1000 bootloader.bin ^
0x8000 partitions.bin ^
0xe000 boot_app0.bin ^
0x10000 firmware.bin
```
## 从源码重新打包进本目录
在仓库根目录:
```powershell
.\firmware\export_from_build.ps1 # 2.8 -> cyd_28r
.\firmware\export_from_build.ps1 -Env cyd_35r # 3.5 -> cyd_35r
# 仅复制、不编译:
.\firmware\export_from_build.ps1 -SkipBuild
.\firmware\export_from_build.ps1 -Env cyd_35r -SkipBuild
```