clock SLCD frame counters from external crystal for more accurate tick/tock animation
This commit is contained in:
parent
2ac3a1db2f
commit
38f68fd165
2
gossamer
2
gossamer
@ -1 +1 @@
|
||||
Subproject commit 78b64c083b776e9913193d1bfcd80c85abc9cc45
|
||||
Subproject commit 6ff71e092189f4fba294ea0ffe11f9d2727750cf
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user