tick_animation is now sleep_animation (which just displays an indicator on new LCD)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
/// @}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user