You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.5 KiB
76 lines
1.5 KiB
# Copyright (c) 2020 The ZMK Contributors |
|
# SPDX-License-Identifier: MIT |
|
|
|
menuconfig ZMK_DISPLAY |
|
bool "Enable ZMK Display" |
|
default n |
|
select DISPLAY |
|
select LVGL |
|
select LVGL_THEMES |
|
select LVGL_THEME_MONO |
|
|
|
if ZMK_DISPLAY |
|
|
|
choice LVGL_TXT_ENC |
|
default LVGL_TXT_ENC_UTF8 |
|
|
|
endchoice |
|
|
|
choice ZMK_DISPLAY_STATUS_SCREEN |
|
prompt "Default status screen for displays" |
|
|
|
config ZMK_DISPLAY_STATUS_SCREEN_BUILT_IN |
|
bool "Built in status screen" |
|
select LVGL_OBJ_LABEL |
|
|
|
config ZMK_DISPLAY_STATUS_SCREEN_CUSTOM |
|
bool "Custom status screen" |
|
|
|
endchoice |
|
|
|
choice ZMK_DISPLAY_WORK_QUEUE |
|
prompt "Work queue selection for UI updates" |
|
|
|
config ZMK_DISPLAY_WORK_QUEUE_SYSTEM |
|
bool "Use default system work queue for UI updates" |
|
|
|
config ZMK_DISPLAY_WORK_QUEUE_DEDICATED |
|
bool "Use dedicated work queue for UI updates" |
|
|
|
endchoice |
|
|
|
if ZMK_DISPLAY_WORK_QUEUE_DEDICATED |
|
|
|
config ZMK_DISPLAY_DEDICATED_THREAD_STACK_SIZE |
|
int "Stack size for dedicated UI thread/queue" |
|
default 2048 |
|
|
|
config ZMK_DISPLAY_DEDICATED_THREAD_PRIORITY |
|
int "Thread priority for dedicated UI thread/queue" |
|
default 5 |
|
|
|
endif # ZMK_DISPLAY_WORK_QUEUE_DEDICATED |
|
|
|
if ZMK_DISPLAY_STATUS_SCREEN_BUILT_IN |
|
|
|
config LVGL_FONT_MONTSERRAT_16 |
|
default y |
|
|
|
choice LVGL_THEME_DEFAULT_FONT_NORMAL |
|
default LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_16 |
|
|
|
endchoice |
|
|
|
config LVGL_FONT_MONTSERRAT_12 |
|
default y |
|
|
|
choice LVGL_THEME_DEFAULT_FONT_SMALL |
|
default LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_12 |
|
|
|
endchoice |
|
|
|
endif # ZMK_DISPLAY_STATUS_SCREEN_BUILT_IN |
|
|
|
rsource "widgets/Kconfig" |
|
|
|
endif
|
|
|