docs: 增加手环主动发射 SOS 和获取出厂固定 ID 芯片硬件 UID 规划
This commit is contained in:
@@ -56,3 +56,16 @@ void LCD_ShowStringCentered(u16 y, char *str, u16 color, u16 bg_color) {
|
||||
LCD_ShowString((135 - len * 8) / 2, y, str, color, bg_color);
|
||||
}
|
||||
```
|
||||
|
||||
### 2.5 绑定界面 ID 渲染实现
|
||||
在 `main.c` 中通过 `FormatHex` 接口将 `bracelet_factory_id` 转换为十六进制字符串,并显示在绑定界面的底部:
|
||||
```c
|
||||
void UI_ShowBindingPage(void) {
|
||||
char id_str[15];
|
||||
// 渲染背景与图标
|
||||
// ...
|
||||
// 绘制手环自身的出厂 ID
|
||||
FormatHex(bracelet_factory_id, id_str);
|
||||
LCD_ShowStringCentered(180, id_str, COLOR_GRAY, COLOR_BLACK);
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user