summaryrefslogtreecommitdiff
path: root/app/src/display/Kconfig
blob: 9c70911ef3c05e49cecde00c64634548130f9d03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# 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"
    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

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

rsource "widgets/Kconfig"

endif