mirror of
https://github.com/joeycastillo/second-movement.git
synced 2026-02-05 14:05:26 +00:00
clock SLCD frame counters from external crystal for more accurate tick/tock animation
This commit is contained in:
2
gossamer
2
gossamer
Submodule gossamer updated: 78b64c083b...6ff71e0921
@ -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
|
||||
|
||||
Reference in New Issue
Block a user