Document BLE screen layout and refresh firmware metadata.

Describe scrollable log above buttons; sync meta.json and VERSION.txt.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-23 15:49:07 +08:00
parent 87120b81da
commit 93019ef482
4 changed files with 19 additions and 4 deletions

View File

@@ -22,6 +22,19 @@
- TX `6E400003-…`:板子 → 手机(Notify,先 Enable)
4. 默认 **Echo ON**:手机发什么,板子原样 Notify 回来;屏上 **Ping** 会发 `Hello from CYD`。
## 屏上操作
横屏 320×240:上方状态(State / Name / Addr / Peer / Echo),中间 **可滚动日志框**(不盖住按钮),底栏四键:
| 按钮 | 作用 |
|------|------|
| **Start/Stop Adv** | 未连接时开/停广播;已连接时需先在手机断开 |
| **Echo** | 开关收包自动回显 |
| **Ping** | 经 NUS TX 发 `Hello from CYD` |
| **Clear** | 清空日志 |
收发内容显示在中间日志区,过长可在框内上下滑。
## 刷写(无需每次编译)
预编译包在 [`firmware/cyd/`](firmware/cyd/):
@@ -93,7 +106,7 @@ ble_core_set_rx_cb([](const uint8_t *data, size_t len, void *) {
- `touch.*` / `pins.h` — CYD 硬件(与 tftest 同校准)
- `ble_core.*` — NimBLE、NUS、广播、收发、断线重广播
- `ble_ui.*` — LVGL 状态页 + Adv / Echo / Ping
- `ble_ui.*` — LVGL 状态页 + 中间滚动日志 + Adv / Echo / Ping / Clear
- `main.cpp` — 演示入口
## 与 WiFi 的关系