From 1d5d2db82371b82aed1a5565d6845c552f372aa2 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Thu, 6 Jan 2022 18:19:29 -0500 Subject: new simulated screens --- movement/watch_faces/demos/demo_face.c | 42 +++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 8 deletions(-) (limited to 'movement/watch_faces') diff --git a/movement/watch_faces/demos/demo_face.c b/movement/watch_faces/demos/demo_face.c index 44a180ab..543d41ea 100644 --- a/movement/watch_faces/demos/demo_face.c +++ b/movement/watch_faces/demos/demo_face.c @@ -4,12 +4,17 @@ #include "watch.h" typedef enum { - DEMO_FACE_HELLO = 0, - DEMO_FACE_TIME, + DEMO_FACE_TIME = 0, DEMO_FACE_WORLD_TIME, DEMO_FACE_BEATS, + DEMO_FACE_TOTP, DEMO_FACE_TEMP_F, DEMO_FACE_TEMP_C, + DEMO_FACE_TEMP_LOG_1, + DEMO_FACE_TEMP_LOG_2, + DEMO_FACE_DAY_ONE, + DEMO_FACE_STOPWATCH, + DEMO_FACE_PULSOMETER, DEMO_FACE_BATTERY_VOLTAGE, DEMO_FACE_NUM_FACES } demo_face_index_t; @@ -29,6 +34,7 @@ void demo_face_activate(movement_settings_t *settings, void *context) { movement_request_tick_frequency(0); // ensure the watch never enters low energy mode settings->bit.le_interval = 0; + settings->bit.led_duration = 3; } bool demo_face_loop(movement_event_t event, movement_settings_t *settings, void *context) { @@ -46,27 +52,47 @@ bool demo_face_loop(movement_event_t event, movement_settings_t *settings, void // fall through case EVENT_ACTIVATE: switch (*screen) { - case DEMO_FACE_HELLO: - watch_display_string(" Hello ", 0); - watch_clear_colon(); - break; case DEMO_FACE_TIME: - watch_display_string("TH 6101036", 0); + watch_display_string("TH10101036", 0); watch_set_colon(); break; case DEMO_FACE_WORLD_TIME: - watch_display_string("MT 6 81036", 0); + watch_display_string("UT10 21036", 0); + watch_set_indicator(WATCH_INDICATOR_PM); break; case DEMO_FACE_BEATS: watch_display_string("bt 64125", 0); + watch_clear_indicator(WATCH_INDICATOR_PM); watch_clear_colon(); break; + case DEMO_FACE_TOTP: + watch_display_string("2F29808494", 0); + break; case DEMO_FACE_TEMP_F: watch_display_string("TE 72.1#F", 0); break; case DEMO_FACE_TEMP_C: watch_display_string("TE 22.3#C", 0); break; + case DEMO_FACE_TEMP_LOG_1: + watch_display_string("TL 43.6#F", 0); + break; + case DEMO_FACE_TEMP_LOG_2: + watch_display_string("AT 6100000", 0); + watch_set_colon(); + break; + case DEMO_FACE_DAY_ONE: + watch_clear_colon(); + watch_display_string("DA 12879", 0); + break; + case DEMO_FACE_STOPWATCH: + watch_display_string("ST 01042 ", 0); + watch_set_colon(); + break; + case DEMO_FACE_PULSOMETER: + watch_display_string(" 68 bpn", 0); + watch_clear_colon(); + break; case DEMO_FACE_BATTERY_VOLTAGE: watch_display_string("BA 2.97 V", 0); break; -- cgit v1.2.3