Commit Graph

13 Commits

Author SHA1 Message Date
edisondeng
6baf93c550 feat(ui): show real weekday/day/month on HOME screen instead of placeholder
UI_ShowClockPage()/UI_ShowSetTimePage() now take weekday/day/month(/year)
and build the date bar dynamically via Build_DateString() instead of
the fixed placeholder string. app_home.c reads the full date from RTC
via PCF8563_ReadDateTime() and recalculates weekday since the RTC's
stored date may differ from the software clock's. config.h exposes
current_day/month/year/weekday alongside the existing time fields so
main.c's debug commands don't need a separate include.
2026-07-31 19:43:43 +08:00
edisondeng
2a83079007 refactor(event): replace global 60s inactivity timer with per-second tick event
Adds KEY_EVENT_SECOND_TICK, generated once per real second from
Clock_IncMS() via a new second_tick_flag and pushed through the normal
event queue, so every foreground App's onEvent() receives it and
decides independently whether to act. Removes the old global
inactivity_timer (60s sleep from anywhere) entirely. HomeApp now
accumulates its own idle-second counter and sleeps after 10s idle
specifically while on the home screen; MenuApp's existing 10s
auto-close is converted from onRun() polling to the same tick+reset
pattern for consistency. Any non-tick key event resets each app's own
counter to 0.
2026-07-31 18:49:03 +08:00
edisondeng
56b92a8ede refactor(app): App-per-screen navigation, remove menu_level entirely
Splits the ad-hoc menu_level state machine into standalone Apps with a
uniform parent/child exit convention (long-press CONFIRM -> parent):
clock_app renamed to home_app (boot-default), new set_clock_app
extracted from home_app's time-edit mode, new ipc_bind_app extracted
from menu_app's old level-2 screen, and the sensor-type selection step
merged into pair_app as its new initial state. menu_app now only holds
the 4-item top-level list (language toggle inline). Also makes both
menu_app and pair_app's up/down navigation cyclic (wraps at both ends).
2026-07-31 18:05:23 +08:00
edisondeng
a7a2cc9465 暂存 2026-07-31 13:57:06 +08:00
d01121e3ae feat: 校准电池电压与ADC2充电检测,重构RGB为Bitbang翻转驱动,并修复RTC晶振起振问题 2026-07-28 18:08:40 +08:00
Antigravity IDE
47bcd252b2 修正1.14寸屏幕垂直偏置并添加自动清屏以清除开机噪声;修正新硬件射频收发引脚对调,低功耗唤醒中断重定向至P3.6中断16;添加一键串口收发诊断测试指令,并临时屏蔽SOS物理按键 2026-07-17 19:43:02 +08:00
Antigravity IDE
790583781f 修复编译报错:清理 config.h 中的 WristbandApp 重复定义并同步参数声明类型 2026-07-17 09:25:04 +08:00
Antigravity IDE
c0d1fe74f5 重构手环软件架构:实现动态挂载前后台 App 框架,解耦拆分源文件,并引入统一日志宏 xtell.h 2026-07-17 09:08:53 +08:00
Antigravity IDE
731115e09a docs: 为所有代码源文件添加详细中文注释,并在设计文档中纠正GPIO物理引脚映射表 2026-07-16 17:53:44 +08:00
Antigravity IDE
7292fd0fcb Fix RF noise wake-up bug by sleeping with EA=0 and checking flags directly 2026-07-15 17:16:56 +08:00
Antigravity IDE
601e01e954 Implement low power RF wake-up and filter mechanism 2026-07-15 17:05:22 +08:00
Antigravity IDE
7ebe802410 Modularize main.c into rgb, event, database, ui, system, and app_manager modules 2026-07-15 16:14:30 +08:00
Antigravity IDE
30a2e1680b Initialize repository and implement low-power sleep wakeup 2026-07-15 15:57:37 +08:00