mirror of
https://github.com/joeycastillo/second-movement.git
synced 2026-02-05 12:55:23 +00:00
Initial custom display SVG and display selection
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -38,10 +38,22 @@ static bool tick_state;
|
||||
static long tick_interval_id = -1;
|
||||
|
||||
watch_lcd_type_t watch_get_lcd_type(void) {
|
||||
#if defined(FORCE_CUSTOM_LCD_TYPE)
|
||||
return WATCH_LCD_TYPE_CUSTOM;
|
||||
#else
|
||||
return WATCH_LCD_TYPE_CLASSIC;
|
||||
#endif
|
||||
}
|
||||
|
||||
void watch_enable_display(void) {
|
||||
EM_ASM({
|
||||
#if defined(FORCE_CUSTOM_LCD_TYPE)
|
||||
document.getElementById("classic").style.display = "none";
|
||||
#else
|
||||
document.getElementById("custom").style.display = "none";
|
||||
#endif
|
||||
});
|
||||
|
||||
watch_clear_display();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user