More efficient display draw for fast_stopwatch_face

This commit is contained in:
Alessandro Genova
2025-08-26 23:37:53 -04:00
parent 5293b7983c
commit 7d0f4d1a33
2 changed files with 47 additions and 12 deletions
@@ -59,6 +59,11 @@ typedef struct {
rtc_counter_t lap_counter; // rtc counter when the stopwatch was lapped
rtc_counter_t stop_counter; // rtc counter when the stopwatch was stopped
uint8_t status; // the status the stopwatch is in (idle, running, stopped)
struct {
rtc_counter_t seconds;
rtc_counter_t minutes;
rtc_counter_t hours;
} old_display; // the digits currently being displayed on screen
} fast_stopwatch_state_t;
void fast_stopwatch_face_setup(uint8_t watch_face_index, void ** context_ptr);