9 Commits

Author SHA1 Message Date
Konrad Rieck
50cff54833 move to deadline face on alarm 2024-09-07 19:59:04 -03:00
Konrad Rieck
e2ec468754 Alarm handled using background task.
The alarm for deadlines is now handled via a background task. Instead of a scheduled task that prevents sleep mode, the face checks in the background every minute whether an deadline is due. If this is the case, the face wakes up from sleep mode and starts a scheduled task for the remaining seconds.
2024-09-07 19:59:04 -03:00
Konrad Rieck
27ab799e85 Fixed bugs and improved watchface
- A background task is only scheduled if the alarm option is activated. If the option is enabled, an alarm sounds when the next deadline is reached. If the option is disabled, no alarm sounds and the watch can enter low energy sleep.

- Fixed tick frequency error. During running mode, the clock ticks at 1Hz. This is set in the init function `_running_init` and thus ensures that we do not run too fast when returning from the setting mode.

- Minor corrections to comments and indentations.
2024-09-07 19:59:04 -03:00
Konrad Rieck
c89316b3ec removed higher frequency in first loop run. 2024-09-07 19:59:04 -03:00
Konrad Rieck
fab8c94428 moved tick_freq to deadline_state_t structure. 2024-09-07 19:59:04 -03:00
Konrad Rieck
c102a10165 beep on button 2024-09-07 19:59:04 -03:00
Konrad Rieck
4cb00ebb4e support for alarm 2024-09-07 19:59:04 -03:00
Konrad Rieck
fea60e615c display closest deadline on activation 2024-09-07 19:59:04 -03:00
Konrad Rieck
43e94ca0f2 Watch face for tracking deadlines.
You can enter and monitor up to four different deadlines by providing their respective date and time. The watch face displays the remaining time at matching granularity, ranging from years to seconds.
2023-08-20 22:34:50 +02:00