]> git.earman.xyz Git - sensor-watch.git/commitdiff
tick_animation is now sleep_animation (which just displays an indicator on new LCD)
authorjoeycastillo <joeycastillo@utexas.edu>
Sun, 29 Sep 2024 19:24:11 +0000 (15:24 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Sun, 29 Sep 2024 19:24:43 +0000 (15:24 -0400)
36 files changed:
movement/template/template.c
movement/watch_faces/clock/close_enough_clock_face.c
movement/watch_faces/clock/day_night_percentage_face.c
movement/watch_faces/clock/french_revolutionary_face.c
movement/watch_faces/clock/mars_time_face.c
movement/watch_faces/clock/minimal_clock_face.c
movement/watch_faces/clock/minute_repeater_decimal_face.c
movement/watch_faces/clock/repetition_minute_face.c
movement/watch_faces/clock/simple_clock_bin_led_face.c
movement/watch_faces/clock/weeknumber_clock_face.c
movement/watch_faces/clock/world_clock2_face.c
movement/watch_faces/complication/activity_face.c
movement/watch_faces/complication/couch_to_5k_face.c
movement/watch_faces/complication/menstrual_cycle_face.c
movement/watch_faces/complication/moon_phase_face.c
movement/watch_faces/complication/periodic_face.c
movement/watch_faces/complication/planetary_hours_face.c
movement/watch_faces/complication/planetary_time_face.c
movement/watch_faces/complication/randonaut_face.c
movement/watch_faces/complication/stopwatch_face.c
movement/watch_faces/complication/sunrise_sunset_face.c
movement/watch_faces/complication/tachymeter_face.c
movement/watch_faces/complication/wareki_face.c
movement/watch_faces/demo/frequency_correction_face.c
movement/watch_faces/demo/voltage_face.c
movement/watch_faces/sensor/alarm_thermometer_face.c
movement/watch_faces/sensor/thermistor_readout_face.c
movement/watch_faces/settings/finetune_face.c
movement/watch_faces/settings/nanosec_face.c
watch-faces/clock/beats_face.c
watch-faces/clock/clock_face.c
watch-faces/clock/simple_clock_face.c
watch-faces/clock/world_clock_face.c
watch-library/hardware/watch/watch_slcd.c
watch-library/shared/watch/watch_slcd.h
watch-library/simulator/watch/watch_slcd.c

index 68405ec0b72d951bcc050ac593af2f32ccd9d11d..4f2e7e1b28e40d3e179311d446031b8fd216b053 100644 (file)
@@ -69,7 +69,7 @@ bool <#watch_face_name#>_face_loop(movement_event_t event, void *context) {
             // If you did not resign in EVENT_TIMEOUT, you can use this event to update the display once a minute.
             // Avoid displaying fast-updating values like seconds, since the display won't update again for 60 seconds.
             // You should also consider starting the tick animation, to show the wearer that this is sleep mode:
-            // watch_start_tick_animation(500);
+            // watch_start_sleep_animation(500);
             break;
         default:
             // Movement's default loop handler will step in for any cases you don't handle above:
index 91499af36aff65a7eefe18386565d2575d9e4d50..2f34c293e7a4e408a09d6eb726610c1f26584719 100644 (file)
@@ -72,8 +72,8 @@ void close_enough_clock_face_setup(uint8_t watch_face_index, void ** context_ptr
 void close_enough_clock_face_activate(void *context) {
     close_enough_clock_state_t *state = (close_enough_clock_state_t *)context;
 
-    if (watch_tick_animation_is_running()) {
-        watch_stop_tick_animation();
+    if (watch_sleep_animation_is_running()) {
+        watch_stop_sleep_animation();
     }
 
     if (movement_clock_mode_24h()) {
index 4dc7fc47dff8643baebf1f67b3f55e4691d82744..dfac555a2a7b121eb0b31b3e31f55e05912e1bea 100644 (file)
@@ -114,7 +114,7 @@ bool day_night_percentage_face_loop(movement_event_t event, void *context) {
                     watch_set_indicator(WATCH_INDICATOR_PM);
                 }
                 if (event.event_type == EVENT_LOW_ENERGY_UPDATE) {
-                    if (!watch_tick_animation_is_running()) watch_start_tick_animation(500);
+                    if (!watch_sleep_animation_is_running()) watch_start_sleep_animation(500);
                     sprintf(buf, "%s%2d  %02d  ", weekday, date_time.unit.day, percentage / 100);
                 } else {
                     sprintf(buf, "%s%2d  %04d", weekday, date_time.unit.day, percentage);
index 96f83f4488a12742c41b590bd101f045353e5efa..3b2e9c396293e23f2d9370365574caf04d63d162 100644 (file)
@@ -74,7 +74,7 @@ bool french_revolutionary_face_loop(movement_event_t event, void *context) {
             if (event.event_type == EVENT_LOW_ENERGY_UPDATE) {
                 buf[8] = ' ';
                 buf[9] = ' ';
-                if (!watch_tick_animation_is_running()) { watch_start_tick_animation(500); }
+                if (!watch_sleep_animation_is_running()) { watch_start_sleep_animation(500); }
             }
 
             // Update the display with our decimal time
index f16e71f479ad97494d53d52fc47fa4897d2a826a..cb49ac961bdce23123a11247f8eabca2ce5c1900 100644 (file)
@@ -144,7 +144,7 @@ bool mars_time_face_loop(movement_event_t event, void *context) {
             break;
         case EVENT_LOW_ENERGY_UPDATE:
             // TODO: low energy update
-            // watch_start_tick_animation(500);
+            // watch_start_sleep_animation(500);
             break;
         case EVENT_LIGHT_BUTTON_DOWN:
             // don't light up every time light is hit
index 2cb2bb0a3fae4afafb23cf6ee4c94f7b4093e0c6..bccd11538ace3dd5b010e18f5e2d39c937553af9 100644 (file)
@@ -85,7 +85,7 @@ bool minimal_clock_face_loop(movement_event_t event, void *context) {
             // If you did not resign in EVENT_TIMEOUT, you can use this event to update the display once a minute.
             // Avoid displaying fast-updating values like seconds, since the display won't update again for 60 seconds.
             // You should also consider starting the tick animation, to show the wearer that this is sleep mode:
-            // watch_start_tick_animation(500);
+            // watch_start_sleep_animation(500);
             _minimal_clock_face_update_display();
             break;
         default:
index 79ba61754391fe1b9991c9f2f6539eefed5ef5f7..1ce02def9149b64f364a3800c86910459965b37c 100644 (file)
@@ -80,7 +80,7 @@ void minute_repeater_decimal_face_setup(uint8_t watch_face_index, void ** contex
 void minute_repeater_decimal_face_activate(void *context) {
     minute_repeater_decimal_state_t *state = (minute_repeater_decimal_state_t *)context;
 
-    if (watch_tick_animation_is_running()) watch_stop_tick_animation();
+    if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
 
     if (movement_clock_mode_24h()) watch_set_indicator(WATCH_INDICATOR_24H);
 
@@ -149,7 +149,7 @@ bool minute_repeater_decimal_face_loop(movement_event_t event, void *context) {
                 }
                 pos = 0;
                 if (event.event_type == EVENT_LOW_ENERGY_UPDATE) {
-                    if (!watch_tick_animation_is_running()) watch_start_tick_animation(500);
+                    if (!watch_sleep_animation_is_running()) watch_start_sleep_animation(500);
                     sprintf(buf, "%s%2d%2d%02d  ", watch_utility_get_weekday(date_time), date_time.unit.day, date_time.unit.hour, date_time.unit.minute);
                 } else {
                     sprintf(buf, "%s%2d%2d%02d%02d", watch_utility_get_weekday(date_time), date_time.unit.day, date_time.unit.hour, date_time.unit.minute, date_time.unit.second);
index 48bfcdbf6683c37bf9379230dd49d6991de47184..04fa85947d04326aae6d547b615d999c255639f7 100644 (file)
@@ -65,7 +65,7 @@ void repetition_minute_face_setup(uint8_t watch_face_index, void ** context_ptr)
 void repetition_minute_face_activate(void *context) {
     repetition_minute_state_t *state = (repetition_minute_state_t *)context;
 
-    if (watch_tick_animation_is_running()) watch_stop_tick_animation();
+    if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
 
     if (movement_clock_mode_24h()) watch_set_indicator(WATCH_INDICATOR_24H);
 
@@ -134,7 +134,7 @@ bool repetition_minute_face_loop(movement_event_t event, void *context) {
                 }
                 pos = 0;
                 if (event.event_type == EVENT_LOW_ENERGY_UPDATE) {
-                    if (!watch_tick_animation_is_running()) watch_start_tick_animation(500);
+                    if (!watch_sleep_animation_is_running()) watch_start_sleep_animation(500);
                     sprintf(buf, "%s%2d%2d%02d  ", watch_utility_get_weekday(date_time), date_time.unit.day, date_time.unit.hour, date_time.unit.minute);
                 } else {
                     sprintf(buf, "%s%2d%2d%02d%02d", watch_utility_get_weekday(date_time), date_time.unit.day, date_time.unit.hour, date_time.unit.minute, date_time.unit.second);
index 3729a50c7edab7e4c36111bd58ca2202a06fc75d..5ac93dd70d30ec2b38e80d3f87d77830ff20daf7 100644 (file)
@@ -57,7 +57,7 @@ void simple_clock_bin_led_face_setup(uint8_t watch_face_index, void ** context_p
 void simple_clock_bin_led_face_activate(void *context) {
     simple_clock_bin_led_state_t *state = (simple_clock_bin_led_state_t *)context;
 
-    if (watch_tick_animation_is_running()) watch_stop_tick_animation();
+    if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
 
     if (movement_clock_mode_24h()) watch_set_indicator(WATCH_INDICATOR_24H);
 
@@ -160,7 +160,7 @@ bool simple_clock_bin_led_face_loop(movement_event_t event, void *context) {
                     }
                     pos = 0;
                     if (event.event_type == EVENT_LOW_ENERGY_UPDATE) {
-                        if (!watch_tick_animation_is_running()) watch_start_tick_animation(500);
+                        if (!watch_sleep_animation_is_running()) watch_start_sleep_animation(500);
                         sprintf(buf, "%s%2d%2d%02d  ", watch_utility_get_weekday(date_time), date_time.unit.day, date_time.unit.hour, date_time.unit.minute);
                     } else {
                         sprintf(buf, "%s%2d%2d%02d%02d", watch_utility_get_weekday(date_time), date_time.unit.day, date_time.unit.hour, date_time.unit.minute, date_time.unit.second);
index 90c909a99ab040ea80f1dc610f86848173c27a55..060191dd6556d756f213fe313ec3a47ccf03bd8b 100644 (file)
@@ -47,7 +47,7 @@ void weeknumber_clock_face_setup(uint8_t watch_face_index, void ** context_ptr)
 void weeknumber_clock_face_activate(void *context) {
     weeknumber_clock_state_t *state = (weeknumber_clock_state_t *)context;
 
-    if (watch_tick_animation_is_running()) watch_stop_tick_animation();
+    if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
 
     if (movement_clock_mode_24h()) watch_set_indicator(WATCH_INDICATOR_24H);
 
@@ -111,7 +111,7 @@ bool weeknumber_clock_face_loop(movement_event_t event, void *context) {
                 }
                 pos = 0;
                 if (event.event_type == EVENT_LOW_ENERGY_UPDATE) {
-                    if (!watch_tick_animation_is_running()) watch_start_tick_animation(500);
+                    if (!watch_sleep_animation_is_running()) watch_start_sleep_animation(500);
                     sprintf(buf, "%s%2d%2d%02d  ", watch_utility_get_weekday(date_time), date_time.unit.day, date_time.unit.hour, date_time.unit.minute);
                 } else {
                     sprintf(buf, "%s%2d%2d%02d%02d", watch_utility_get_weekday(date_time), date_time.unit.day, date_time.unit.hour, date_time.unit.minute, watch_utility_get_weeknumber(date_time.unit.year, date_time.unit.month, date_time.unit.day));
index 22ae20248f4414c28ef5efcfe02dd32ce2dadda0..5dca9267cc22ff8101a3fd65ad5d4d601042a9d9 100644 (file)
@@ -139,8 +139,8 @@ void world_clock2_face_activate(void *context)
 {
     world_clock2_state_t *state = (world_clock2_state_t *) context;
 
-    if (watch_tick_animation_is_running())
-        watch_stop_tick_animation();
+    if (watch_sleep_animation_is_running())
+        watch_stop_sleep_animation();
 
     switch (state->current_mode) {
         case WORLD_CLOCK2_MODE_DISPLAY:
@@ -210,8 +210,8 @@ static bool mode_display(movement_event_t event, world_clock2_state_t *state)
 
                pos = 0;
                if (event.event_type == EVENT_LOW_ENERGY_UPDATE) {
-                   if (!watch_tick_animation_is_running())
-                       watch_start_tick_animation(500);
+                   if (!watch_sleep_animation_is_running())
+                       watch_start_sleep_animation(500);
 
                    sprintf(buf, "%.2s%2d%2d%02d  ",
                             zone_names[state->current_zone],
index 59699c85e0bc3947528e9662efdfd20aa2ecd798..063f03b5cac152f1fa23d6af935464fa8655edf6 100644 (file)
@@ -697,7 +697,7 @@ bool activity_face_loop(movement_event_t event, void *context) {
             }
             else {
                 _activity_update_logging_screen(state);
-                watch_start_tick_animation(500);
+                watch_start_sleep_animation(500);
             }
             break;
         default:
index 10103a764e31b34e91250eaa05c980bde1cb9d2f..37efa80f7bfe12ce1cfdab6f69d81c95a95f34b1 100644 (file)
@@ -228,7 +228,7 @@ bool couch_to_5k_face_loop(movement_event_t event,
             // fast-updating values like seconds, since the display won't
             // update again for 60 seconds. You should also consider starting
             // the tick animation, to show the wearer that this is sleep mode:
-            // watch_start_tick_animation(500);
+            // watch_start_sleep_animation(500);
             break;
         default:
             // Movement's default loop handler will step in for any cases you
index 42334050c73a60d634620ed0d7cfacfc2662e74b..2ef2a89bd47d60b827d0eb10a23d17cccab552d2 100644 (file)
@@ -324,8 +324,8 @@ bool menstrual_cycle_face_loop(movement_event_t event, void *context) {
             state->current_page = current_page;
             state->days_prev_period = 0;
             watch_clear_indicator(WATCH_INDICATOR_BELL);
-            if (watch_tick_animation_is_running())
-                watch_stop_tick_animation();
+            if (watch_sleep_animation_is_running())
+                watch_stop_sleep_animation();
             break;
         case EVENT_ALARM_LONG_PRESS:
             switch (current_page) {
@@ -445,8 +445,8 @@ bool menstrual_cycle_face_loop(movement_event_t event, void *context) {
             break;
         case first_period:
             if (state->dates.reg) {
-                if (!watch_tick_animation_is_running())
-                    watch_start_tick_animation(500); // Tracking activated
+                if (!watch_sleep_animation_is_running())
+                    watch_start_sleep_animation(500); // Tracking activated
             }
             else if (event.subsecond % 5) { // blink active for 3 quarter-seconds
                 sprintf(buf, "%2d", state->days_prev_period);
index 5f99a30c69c17f75be15577e79f1ac08153d8e22..7729fed75aabe6d8eff0825c2f06dea9433af514 100644 (file)
@@ -151,7 +151,7 @@ bool moon_phase_face_loop(movement_event_t event, void *context) {
             state->offset = 0;
             // finally: clear out the last two digits and replace them with the sleep mode indicator
             watch_display_string("  ", 8);
-            if (!watch_tick_animation_is_running()) watch_start_tick_animation(1000);
+            if (!watch_sleep_animation_is_running()) watch_start_sleep_animation(1000);
             break;
         case EVENT_ALARM_BUTTON_UP:
             // Pressing the alarm adds an offset of one day to the displayed value,
index b6a10c2c112880d09fd3e99a7f8a52e32323b326..82a3442808d315329e9ccc7cf4b6a79b24c727a8 100644 (file)
@@ -483,7 +483,7 @@ bool periodic_face_loop(movement_event_t event, void *context)
     case EVENT_LOW_ENERGY_UPDATE:
         // Display static title and tick animation during LE
         watch_display_string("Pd   Table", 0);
-        watch_start_tick_animation(500);
+        watch_start_sleep_animation(500);
         break;
     default:
         return movement_default_loop_handler(event);
index 6d5d9987d933fe32d86f9883a7e0edc8bcd37112..73cf747db446484d16ce1042cdeeb061604bc4e7 100644 (file)
@@ -343,7 +343,7 @@ void planetary_hours_face_setup(uint8_t watch_face_index, void ** context_ptr) {
 }
 
 void planetary_hours_face_activate(void *context) {
-    if (watch_tick_animation_is_running()) watch_stop_tick_animation();
+    if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
 
 #if __EMSCRIPTEN__
     int16_t browser_lat = EM_ASM_INT({ return lat; });
index d7b2d611c89c471222dec7988f68988bd87f7535..d0ed3df4d3c2042b3f72e5e505a981ac518b70fd 100644 (file)
@@ -279,7 +279,7 @@ void planetary_time_face_setup(uint8_t watch_face_index, void ** context_ptr) {
 }
 
 void planetary_time_face_activate(void *context) {
-    if (watch_tick_animation_is_running()) watch_stop_tick_animation();
+    if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
 
 #if __EMSCRIPTEN__
     int16_t browser_lat = EM_ASM_INT({ return lat; });
@@ -319,7 +319,7 @@ bool planetary_time_face_loop(movement_event_t event, void *context) {
             state->day_ruler = !state->day_ruler;
             break;
         case EVENT_LOW_ENERGY_UPDATE:
-            watch_start_tick_animation(500);
+            watch_start_sleep_animation(500);
             break;
         default:
             return movement_default_loop_handler(event);
index d070555a015314223ed23dc2aa6c6aead58ff270..fd9ca5d3c64544e64de58525a5ef85703622c9d2 100644 (file)
@@ -168,7 +168,7 @@ bool randonaut_face_loop(movement_event_t event, void *context) {
             // If you did not resign in EVENT_TIMEOUT, you can use this event to update the display once a minute.
             // Avoid displaying fast-updating values like seconds, since the display won't update again for 60 seconds.
             // You should also consider starting the tick animation, to show the wearer that this is sleep mode:
-            // watch_start_tick_animation(500);
+            // watch_start_sleep_animation(500);
             break;
         default:
             // Movement's default loop handler will step in for any cases you don't handle above:
index fc9550faa05f28985c29707d7b35179c00b54ef9..ecaba0196a1107a252e652df7f1bc73aec4c5385 100644 (file)
@@ -77,7 +77,7 @@ static void _stopwatch_face_update_display(stopwatch_state_t *stopwatch_state, b
 }
 
 void stopwatch_face_activate(void *context) {
-    if (watch_tick_animation_is_running()) watch_stop_tick_animation();
+    if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
 
     stopwatch_state_t *stopwatch_state = (stopwatch_state_t *)context;
     if (stopwatch_state->running) {
@@ -143,7 +143,7 @@ bool stopwatch_face_loop(movement_event_t event, void *context) {
             // explicitly ignore the timeout event so we stay on screen
             break;
         case EVENT_LOW_ENERGY_UPDATE:
-            if (!watch_tick_animation_is_running()) watch_start_tick_animation(1000);
+            if (!watch_sleep_animation_is_running()) watch_start_sleep_animation(1000);
             if (!stopwatch_state->running) {
                 // since the tick animation is running, displaying the stopped time could be misleading,
                 // as it could imply that the stopwatch is running. instead, show a blank display to
index fa300cf9906bd004dce0f33f145182f073030104..87d822674f70d5fd127c53d6b95054c25403bf61 100644 (file)
@@ -300,7 +300,7 @@ void sunrise_sunset_face_setup(uint8_t watch_face_index, void ** context_ptr) {
 }
 
 void sunrise_sunset_face_activate(void *context) {
-    if (watch_tick_animation_is_running()) watch_stop_tick_animation();
+    if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
 
 #if __EMSCRIPTEN__
     int16_t browser_lat = EM_ASM_INT({
@@ -335,7 +335,7 @@ bool sunrise_sunset_face_loop(movement_event_t event, void *context) {
         case EVENT_TICK:
             if (state->page == 0) {
                 // if entering low energy mode, start tick animation
-                if (event.event_type == EVENT_LOW_ENERGY_UPDATE && !watch_tick_animation_is_running()) watch_start_tick_animation(1000);
+                if (event.event_type == EVENT_LOW_ENERGY_UPDATE && !watch_sleep_animation_is_running()) watch_start_sleep_animation(1000);
                 // check if we need to update the display
                 watch_date_time date_time = watch_rtc_get_date_time();
                 if (date_time.reg >= state->rise_set_expires.reg) {
index 84748b899d3f440d71a3f5679b13bba7d2c8b2c0..8ed9b6e677e64dad68a6258ebbdb98d2e7fd9062 100644 (file)
@@ -245,7 +245,7 @@ bool tachymeter_face_loop(movement_event_t event, void *context) {
             // If you did not resign in EVENT_TIMEOUT, you can use this event to update the display once a minute.
             // Avoid displaying fast-updating values like seconds, since the display won't update again for 60 seconds.
             // You should also consider starting the tick animation, to show the wearer that this is sleep mode:
-            // watch_start_tick_animation(500);
+            // watch_start_sleep_animation(500);
             break;
         case EVENT_LIGHT_BUTTON_DOWN:
             // don't light up every time light is hit
index ce9777b24b605b36690ec60977fa5d0169e09e93..79d8f63758c042d8e763af95434569df87bf0299 100644 (file)
@@ -58,7 +58,7 @@ void wareki_activate(void *context) {
 
     wareki_state_t *state = (wareki_state_t *)context;
 
-    if (watch_tick_animation_is_running()) watch_stop_tick_animation();
+    if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
 
     state->active = false;
 
@@ -198,7 +198,7 @@ bool wareki_loop(movement_event_t event, void *context) {
             // If you did not resign in EVENT_TIMEOUT, you can use this event to update the display once a minute.
             // Avoid displaying fast-updating values like seconds, since the display won't update again for 60 seconds.
             // You should also consider starting the tick animation, to show the wearer that this is sleep mode:
-            // watch_start_tick_animation(500);
+            // watch_start_sleep_animation(500);
             //break;
         default:
             // Movement's default loop handler will step in for any cases you don't handle above:
index 916f135324ee2b32bb3014ca04e4bcf7652f4b07..badd327e59f0ff061dd249dc331b120a4e1bd179 100644 (file)
@@ -117,7 +117,7 @@ bool frequency_correction_face_loop(movement_event_t event, void *context) {
         case EVENT_TIMEOUT:
             break;
         case EVENT_LOW_ENERGY_UPDATE:
-            watch_start_tick_animation(500);
+            watch_start_sleep_animation(500);
             break;
         default:
             movement_default_loop_handler(event);
index 75f4adb00b58266df790289aea9d0906c57db0a5..2d209d2da32344181f4d067d31cbad55d07c0dec 100644 (file)
@@ -66,9 +66,9 @@ bool voltage_face_loop(movement_event_t event, void *context) {
             break;
         case EVENT_LOW_ENERGY_UPDATE:
             // clear seconds area and start tick animation if necessary
-            if (!watch_tick_animation_is_running()) {
+            if (!watch_sleep_animation_is_running()) {
                 watch_display_string("  ", 8);
-                watch_start_tick_animation(1000);
+                watch_start_sleep_animation(1000);
             }
             // update once an hour
             if (date_time.unit.minute == 0) {
index 63e6a8a42c22bdef0a79d0c90988d4efe753de09..62b0c8849fe6f71759e79cf51b42bb0e7b2d9b3b 100644 (file)
@@ -128,11 +128,11 @@ bool alarm_thermometer_face_loop(movement_event_t event, void *context) {
             }
             break;
         case EVENT_LOW_ENERGY_UPDATE:
-            if (!watch_tick_animation_is_running()) {
+            if (!watch_sleep_animation_is_running()) {
                 state->mode = MODE_NORMAL;
                 watch_clear_indicator(WATCH_INDICATOR_BELL);
                 watch_clear_indicator(WATCH_INDICATOR_SIGNAL);
-                watch_start_tick_animation(1000);
+                watch_start_sleep_animation(1000);
             }
             if (watch_rtc_get_date_time().unit.minute % 5 == 0) {
                 _alarm_thermometer_face_update(movement_use_imperial_units());
index 32df0d1388ee5a0b75d88a6ccb05428677431e8d..bbd120f3d754a0619b7d43f0ffccb01883a53a9a 100644 (file)
@@ -76,9 +76,9 @@ bool thermistor_readout_face_loop(movement_event_t event, void *context) {
             break;
         case EVENT_LOW_ENERGY_UPDATE:
             // clear seconds area and start tick animation if necessary
-            if (!watch_tick_animation_is_running()) {
+            if (!watch_sleep_animation_is_running()) {
                 watch_display_string("  ", 8);
-                watch_start_tick_animation(1000);
+                watch_start_sleep_animation(1000);
             }
             // update every 5 minutes
             if (date_time.unit.minute % 5 == 0) {
index 0d225ca2bd79d7ab0784832dfb6839db3e0a46a1..da26c2f6948bc37184c731ceb61f62ec17dc8955 100644 (file)
@@ -217,7 +217,7 @@ bool finetune_face_loop(movement_event_t event, void *context) {
             // If you did not resign in EVENT_TIMEOUT, you can use this event to update the display once a minute.
             // Avoid displaying fast-updating values like seconds, since the display won't update again for 60 seconds.
             // You should also consider starting the tick animation, to show the wearer that this is sleep mode:
-            // watch_start_tick_animation(500);
+            // watch_start_sleep_animation(500);
             break;
 
         case EVENT_LIGHT_BUTTON_DOWN:
index 965fdc6bbedd8bfc41cedb98ae408d29ff2884e0..23ff104061f52ee26cec2ba168c47f3128cb5467 100644 (file)
@@ -318,7 +318,7 @@ bool nanosec_face_loop(movement_event_t event, void *context) {
             // If you did not resign in EVENT_TIMEOUT, you can use this event to update the display once a minute.
             // Avoid displaying fast-updating values like seconds, since the display won't update again for 60 seconds.
             // You should also consider starting the tick animation, to show the wearer that this is sleep mode:
-            // watch_start_tick_animation(500);
+            // watch_start_sleep_animation(500);
             break;
         case EVENT_BACKGROUND_TASK:
             // Here we measure temperature and do main frequency correction
index e6c686104a5e7cc26e46e97fe930491a28c318ab..f0e34a9864c3f8e4add4b808fc1f9ef41691188b 100644 (file)
@@ -72,7 +72,7 @@ bool beats_face_loop(movement_event_t event, void *context) {
             watch_display_text(WATCH_POSITION_BOTTOM, buf);
             break;
         case EVENT_LOW_ENERGY_UPDATE:
-            if (!watch_tick_animation_is_running()) watch_start_tick_animation(432);
+            if (!watch_sleep_animation_is_running()) watch_start_sleep_animation(432);
             date_time = watch_rtc_get_date_time();
             centibeats = clock2beats(date_time.unit.hour, date_time.unit.minute, date_time.unit.second, event.subsecond, movement_get_current_timezone_offset());
             sprintf(buf, "%4lu  ", centibeats / 100);
index 4a5b78e6b20c24c2e8e99be7b74c683ae2e2fc6a..f71a13be20ddf3055198cbd9b1ab72e8bdd82c4a 100644 (file)
@@ -199,14 +199,14 @@ static void clock_display_low_energy(watch_date_time date_time) {
 }
 
 static void clock_start_tick_tock_animation(void) {
-    if (!watch_tick_animation_is_running()) {
-        watch_start_tick_animation(500);
+    if (!watch_sleep_animation_is_running()) {
+        watch_start_sleep_animation(500);
     }
 }
 
 static void clock_stop_tick_tock_animation(void) {
-    if (watch_tick_animation_is_running()) {
-        watch_stop_tick_animation();
+    if (watch_sleep_animation_is_running()) {
+        watch_stop_sleep_animation();
     }
 }
 
index c616c64f9754580174a7efee8881cd3310a72af7..e919f52bf8e3165619376154bcc9e480d3708036 100644 (file)
@@ -48,7 +48,7 @@ void simple_clock_face_setup(uint8_t watch_face_index, void ** context_ptr) {
 void simple_clock_face_activate(void *context) {
     simple_clock_state_t *state = (simple_clock_state_t *)context;
 
-    if (watch_tick_animation_is_running()) watch_stop_tick_animation();
+    if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
 
     if (movement_clock_mode_24h()) watch_set_indicator(WATCH_INDICATOR_24H);
 
@@ -122,7 +122,7 @@ bool simple_clock_face_loop(movement_event_t event, void *context) {
                 watch_display_text(WATCH_POSITION_MINUTES, buf + 4);
                 if (event.event_type == EVENT_LOW_ENERGY_UPDATE) {
                     watch_display_character(' ', 9);
-                    if (!watch_tick_animation_is_running()) watch_start_tick_animation(500);
+                    if (!watch_sleep_animation_is_running()) watch_start_sleep_animation(500);
                 } else {
                     watch_display_text(WATCH_POSITION_SECONDS, buf + 6);
                 }
index 28adb4d5937d2cd25ee2f4813cddd8b765fd0a33..5e34fd481abee1d74ba624709e5cb15362f721c8 100644 (file)
@@ -56,7 +56,7 @@ void world_clock_face_activate(void *context) {
     state->current_screen = 0;
     _update_timezone_offset(state);
 
-    if (watch_tick_animation_is_running()) watch_stop_tick_animation();
+    if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
 }
 
 static bool world_clock_face_do_display_mode(movement_event_t event, world_clock_state_t *state) {
@@ -108,7 +108,7 @@ static bool world_clock_face_do_display_mode(movement_event_t event, world_clock
                 watch_display_text(WATCH_POSITION_HOURS, buf + 2);
                 watch_display_text(WATCH_POSITION_MINUTES, buf + 4);
                 if (event.event_type == EVENT_LOW_ENERGY_UPDATE) {
-                    if (!watch_tick_animation_is_running()) watch_start_tick_animation(500);
+                    if (!watch_sleep_animation_is_running()) watch_start_sleep_animation(500);
                 } else {
                     watch_display_text(WATCH_POSITION_SECONDS, buf + 6);
                 }
index f51d37f30ac1cac68ec224e1cbbf554f4d073a20..ad47b3a42dde5cb5a6a37017a83a1faf71808fde 100644 (file)
@@ -116,7 +116,7 @@ void watch_stop_blink(void) {
     slcd_set_blink_enabled(false);
 }
 
-void watch_start_tick_animation(uint32_t duration) {
+void watch_start_sleep_animation(uint32_t duration) {
 #ifdef USE_CUSTOM_LCD
     (void) duration;
     watch_set_indicator(WATCH_INDICATOR_SLEEP);
@@ -140,12 +140,12 @@ void watch_start_tick_animation(uint32_t duration) {
 #endif
 }
 
-bool watch_tick_animation_is_running(void) {
+bool watch_sleep_animation_is_running(void) {
     // TODO: wrap this in gossamer call
     return SLCD->CTRLD.bit.CSREN;
 }
 
-void watch_stop_tick_animation(void) {
+void watch_stop_sleep_animation(void) {
 #ifdef USE_CUSTOM_LCD
      watch_clear_indicator(WATCH_INDICATOR_SLEEP);
 #else
index 7c73652629ac0e4810134191b5be335c25ea7116..d004e06a53099174db87ff2162e7aa1f3f618014 100644 (file)
@@ -219,15 +219,15 @@ void watch_stop_blink(void);
   *          Sleep mode, since that mode turns off the LCD).
   * @param duration The duration of each frame in ms. 500 milliseconds produces a classic tick/tock.
   */
-void watch_start_tick_animation(uint32_t duration);
+void watch_start_sleep_animation(uint32_t duration);
 
 /** @brief Checks if the tick animation is currently running.
   * @return true if the animation is running; false otherwise.
   */
-bool watch_tick_animation_is_running(void);
+bool watch_sleep_animation_is_running(void);
 
 /** @brief Stops the tick/tock animation and clears all animating segments.
   * @details This will stop the animation and clear all segments in position 8.
   */
-void watch_stop_tick_animation(void);
+void watch_stop_sleep_animation(void);
 /// @}
index 5c5a936fbab7fc36f63e54c276e85cbc95348151..f8a72fdab4c9b9c38ede95f89b883023ef8f5124 100644 (file)
@@ -96,7 +96,7 @@ static void watch_invoke_tick_callback(void *userData) {
     }
 }
 
-void watch_start_tick_animation(uint32_t duration) {
+void watch_start_sleep_animation(uint32_t duration) {
     if (tick_interval_id != -1) return;
     watch_display_character(' ', 8);
 
@@ -104,11 +104,11 @@ void watch_start_tick_animation(uint32_t duration) {
     tick_interval_id = emscripten_set_interval(watch_invoke_tick_callback, (double)duration, NULL);
 }
 
-bool watch_tick_animation_is_running(void) {
+bool watch_sleep_animation_is_running(void) {
     return tick_interval_id != -1;
 }
 
-void watch_stop_tick_animation(void) {
+void watch_stop_sleep_animation(void) {
     emscripten_clear_timeout(tick_interval_id);
     tick_interval_id = -1;
     tick_state = false;