feat(display): Initial widget/status screen work.

* Battery and output status widgets
* Built in status screen combining them.
* Ability to define a custom status screen factory
  function.
This commit is contained in:
Pete Johanson
2020-08-31 10:18:19 -04:00
parent d5ea426975
commit b3f3362b50
18 changed files with 362 additions and 24 deletions

32
app/src/display/Kconfig Normal file
View File

@@ -0,0 +1,32 @@
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"
default ZMK_DISPLAY_STATUS_SCREEN_BUILT_IN
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
rsource "widgets/Kconfig"
endif