]> git.earman.xyz Git - sensor-watch.git/commitdiff
bugfix: need definition of colon as indicator for blinking on custom LCD
authorJoey Castillo <joeycastillo@utexas.edu>
Wed, 21 May 2025 03:42:22 +0000 (23:42 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Wed, 21 May 2025 03:42:22 +0000 (23:42 -0400)
watch-library/shared/watch/watch_common_display.c

index 003f2705bb05db38c3714c799d2eab2e39b65c62..a06c9dbfd2f90cf04ceead6bdd1163eca3566d06 100644 (file)
@@ -29,7 +29,7 @@
 #include <stdlib.h>
 #include <math.h>
 
-uint32_t IndicatorSegments[7] = {
+uint32_t IndicatorSegments[8] = {
     SLCD_SEGID(0, 17), // WATCH_INDICATOR_SIGNAL
     SLCD_SEGID(0, 16), // WATCH_INDICATOR_BELL
     SLCD_SEGID(2, 17), // WATCH_INDICATOR_PM
@@ -38,7 +38,8 @@ uint32_t IndicatorSegments[7] = {
 
     // Placeholders for indicators unavailable on the original F-91W LCD
     SLCD_SEGID(4, 0),  // WATCH_INDICATOR_ARROWS (does not exist, will set in SDATAL4 which is harmless)
-    SLCD_SEGID(4, 0)   // WATCH_INDICATOR_SLEEP (does not exist, will set in SDATAL4 which is harmless)
+    SLCD_SEGID(4, 0),  // WATCH_INDICATOR_SLEEP (does not exist, will set in SDATAL4 which is harmless)
+    SLCD_SEGID(4, 0)   // WATCH_INDICATOR_COLON (does not exist, will set in SDATAL4 which is harmless)
 };
 
 void watch_display_character(uint8_t character, uint8_t position) {
@@ -387,5 +388,6 @@ void _watch_update_indicator_segments(void) {
         IndicatorSegments[4] = SLCD_SEGID(1,  0); // WATCH_INDICATOR_LAP
         IndicatorSegments[5] = SLCD_SEGID(2,  0); // WATCH_INDICATOR_ARROWS
         IndicatorSegments[6] = SLCD_SEGID(3,  0); // WATCH_INDICATOR_SLEEP
+        IndicatorSegments[7] = SLCD_SEGID(4,  0); // WATCH_INDICATOR_SLEEP
     }
 }