]> git.earman.xyz Git - sensor-watch.git/commitdiff
clock SLCD frame counters from external crystal for more accurate tick/tock animation
authorjoeycastillo <joeycastillo@utexas.edu>
Sun, 29 Sep 2024 15:25:49 +0000 (11:25 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Sun, 29 Sep 2024 15:25:49 +0000 (11:25 -0400)
gossamer
watch-library/hardware/watch/watch_slcd.c

index 78b64c083b776e9913193d1bfcd80c85abc9cc45..6ff71e092189f4fba294ea0ffe11f9d2727750cf 160000 (submodule)
--- a/gossamer
+++ b/gossamer
@@ -1 +1 @@
-Subproject commit 78b64c083b776e9913193d1bfcd80c85abc9cc45
+Subproject commit 6ff71e092189f4fba294ea0ffe11f9d2727750cf
index 9140e8a8b7336149909d94fa95c3d5a0828fd039..d253dc80549ac09b0f16e3676c82ed066efe323c 100644 (file)
@@ -64,12 +64,12 @@ void watch_enable_display(void) {
 
 #ifdef USE_CUSTOM_LCD
     // Original famous Casio LCD: 1/3 bias, 1/4 duty with a frame rate of 32 Hz
-    slcd_init(LCD_PIN_ENABLE, SLCD_BIAS_THIRD, SLCD_DUTY_4_COMMON, SLCD_PRESCALER_DIV64, SLCD_CLOCKDIV_4);
+    slcd_init(LCD_PIN_ENABLE, SLCD_BIAS_THIRD, SLCD_DUTY_4_COMMON, SLCD_CLOCKSOURCE_XOSC, SLCD_PRESCALER_DIV64, SLCD_CLOCKDIV_4);
     // exact frame rate is: 32768 / (4 * 64 * 4) ≈ 32 Hz
     _slcd_framerate = 32;
 #else
     // Original famous Casio LCD: 1/3 bias, 1/3 duty with a frame rate of ~34 Hz
-    slcd_init(LCD_PIN_ENABLE, SLCD_BIAS_THIRD, SLCD_DUTY_3_COMMON, SLCD_PRESCALER_DIV64, SLCD_CLOCKDIV_5);
+    slcd_init(LCD_PIN_ENABLE, SLCD_BIAS_THIRD, SLCD_DUTY_3_COMMON, SLCD_CLOCKSOURCE_XOSC, SLCD_PRESCALER_DIV64, SLCD_CLOCKDIV_5);
     // exact frame rate is: 32768 / (3 * 64 * 5) ≈ 34.13 Hz
     _slcd_framerate = 34;
 #endif