generated from zmkfirmware/unified-zmk-config-template
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathKconfig
108 lines (83 loc) · 2.8 KB
/
Kconfig
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Color definitions to use with color settings
COLOR_BLACK := 0 # no blink
COLOR_RED := 1
COLOR_GREEN := 2
COLOR_YELLOW := 3
COLOR_BLUE := 4
COLOR_MAGENTA := 5
COLOR_CYAN := 6
COLOR_WHITE := 7
config RGBLED_WIDGET
bool "Enable RGB LED widget for showing battery and output status"
if RGBLED_WIDGET
config LED
default y
config RGBLED_WIDGET_INTERVAL_MS
int "Minimum wait duration between two blinks in ms"
default 500
# Battery level settings
config RGBLED_WIDGET_BATTERY_BLINK_MS
int "Duration of battery level blink in ms"
default 2000
config RGBLED_WIDGET_BATTERY_LEVEL_HIGH
int "High battery level percentage"
default 80
config RGBLED_WIDGET_BATTERY_LEVEL_LOW
int "Low battery level percentage"
default 20
config RGBLED_WIDGET_BATTERY_LEVEL_CRITICAL
int "Critical battery level percentage"
default 5
config RGBLED_WIDGET_BATTERY_COLOR_HIGH
int "Color for high battery level (above LEVEL_HIGH)"
range 0 7
default $(COLOR_GREEN)
config RGBLED_WIDGET_BATTERY_COLOR_MEDIUM
int "Color for medium battery level (between LEVEL_LOW and LEVEL_HIGH)"
range 0 7
default $(COLOR_YELLOW)
config RGBLED_WIDGET_BATTERY_COLOR_LOW
int "Color for low battery level (below LEVEL_LOW)"
range 0 7
default $(COLOR_RED)
config RGBLED_WIDGET_BATTERY_COLOR_CRITICAL
int "Color for critical battery level (below LEVEL_CRITICAL)"
range 0 7
default $(COLOR_RED)
# Connectivity indicator settings
config RGBLED_WIDGET_CONN_BLINK_MS
int "Duration of BLE connection status blink in ms"
default RGBLED_WIDGET_OUTPUT_BLINK_MS
config RGBLED_WIDGET_OUTPUT_BLINK_MS # DEPRECATED, do not use
int
default 1000
config RGBLED_WIDGET_CONN_COLOR_CONNECTED
int "Color for connected BLE connection status"
range 0 7
default $(COLOR_BLUE)
config RGBLED_WIDGET_CONN_COLOR_ADVERTISING
int "Color for advertising BLE connection status"
range 0 7
default $(COLOR_YELLOW)
config RGBLED_WIDGET_CONN_COLOR_DISCONNECTED
int "Color for disconnected BLE connection status"
range 0 7
default $(COLOR_RED)
# Layer indicator settings
config RGBLED_WIDGET_SHOW_LAYER_CHANGE
bool "Indicate highest active layer on each layer change with a sequence of blinks"
config RGBLED_WIDGET_LAYER_BLINK_MS
int "Blink and wait duration for layer indicator"
default 100
config RGBLED_WIDGET_LAYER_COLOR
int "Color to use for layer indicator"
range 0 7
default $(COLOR_CYAN)
config RGBLED_WIDGET_LAYER_DEBOUNCE_MS
int "Wait duration after a layer change before showing the highest active layer"
default 100
endif # RGBLED_WIDGET
DT_COMPAT_ZMK_BEHAVIOR_RGBLED_WIDGET := zmk,behavior-rgbled-widget
config ZMK_BEHAVIOR_RGBLED_WIDGET
bool
default $(dt_compat_enabled,$(DT_COMPAT_ZMK_BEHAVIOR_RGBLED_WIDGET))