forked from kofal.net/zmk
feat(boards): Add Corne-ish zen v2
Co-authored-by: Pete Johanson <peter@peterjohanson.com>
This commit is contained in:
@@ -13,7 +13,6 @@ if ZMK_DISPLAY
|
||||
|
||||
config ZMK_DISPLAY_BLANK_ON_IDLE
|
||||
bool "Blank display on idle"
|
||||
default y
|
||||
|
||||
choice LVGL_TXT_ENC
|
||||
default LVGL_TXT_ENC_UTF8
|
||||
|
||||
@@ -73,6 +73,8 @@ static void start_display_updates() {
|
||||
k_timer_start(&display_timer, K_MSEC(TICK_MS), K_MSEC(TICK_MS));
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_ZMK_DISPLAY_BLANK_ON_IDLE)
|
||||
|
||||
static void stop_display_updates() {
|
||||
if (display == NULL) {
|
||||
return;
|
||||
@@ -83,6 +85,8 @@ static void stop_display_updates() {
|
||||
k_timer_stop(&display_timer);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
int zmk_display_is_initialized() { return initialized; }
|
||||
|
||||
void initialize_display(struct k_work *work) {
|
||||
@@ -94,6 +98,8 @@ void initialize_display(struct k_work *work) {
|
||||
return;
|
||||
}
|
||||
|
||||
initialized = true;
|
||||
|
||||
screen = zmk_display_status_screen();
|
||||
|
||||
if (screen == NULL) {
|
||||
@@ -104,8 +110,6 @@ void initialize_display(struct k_work *work) {
|
||||
lv_scr_load(screen);
|
||||
|
||||
start_display_updates();
|
||||
|
||||
initialized = true;
|
||||
}
|
||||
|
||||
K_WORK_DEFINE(init_work, initialize_display);
|
||||
|
||||
Reference in New Issue
Block a user