From: joeycastillo Date: Sun, 29 Sep 2024 15:25:49 +0000 (-0400) Subject: clock SLCD frame counters from external crystal for more accurate tick/tock animation X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=38f68fd16527c0fc95eaccfe20baec8bc82943db;p=sensor-watch.git clock SLCD frame counters from external crystal for more accurate tick/tock animation --- diff --git a/gossamer b/gossamer index 78b64c0..6ff71e0 160000 --- a/gossamer +++ b/gossamer @@ -1 +1 @@ -Subproject commit 78b64c083b776e9913193d1bfcd80c85abc9cc45 +Subproject commit 6ff71e092189f4fba294ea0ffe11f9d2727750cf diff --git a/watch-library/hardware/watch/watch_slcd.c b/watch-library/hardware/watch/watch_slcd.c index 9140e8a..d253dc8 100644 --- a/watch-library/hardware/watch/watch_slcd.c +++ b/watch-library/hardware/watch/watch_slcd.c @@ -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