-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathKconfig
More file actions
51 lines (45 loc) · 1.76 KB
/
Kconfig
File metadata and controls
51 lines (45 loc) · 1.76 KB
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
menu "Rotary encoders"
config RE_INTERVAL_US
int "Default polling interval, us"
default 10000 if IDF_TARGET_ESP8266
default 1000 if !IDF_TARGET_ESP8266
help
Default polling interval in microseconds. Can be overridden per-encoder at runtime
via rotary_encoder_config_t.polling_interval_us.
config RE_BTN_DEAD_TIME_US
int "Default button dead time, us"
default 10000
help
Default button dead time in microseconds. Can be overridden per-encoder at runtime
via rotary_encoder_config_t.btn_dead_time_us.
choice RE_BTN_PRESSED_LEVEL
prompt "Default logical level on pressed button"
help
Default GPIO level when button is pressed. Can be overridden per-encoder at runtime
via rotary_encoder_config_t.btn_pressed_level.
config RE_BTN_PRESSED_LEVEL_0
bool "0"
config RE_BTN_PRESSED_LEVEL_1
bool "1"
endchoice
config RE_BTN_LONG_PRESS_TIME_US
int "Default long press timeout, us"
default 500000
help
Default long press threshold in microseconds. Can be overridden per-encoder at runtime
via rotary_encoder_config_t.btn_long_press_time_us.
config RE_ACCELERATION_THRESHOLD
int "Default acceleration threshold (ms)"
default 200
help
Acceleration threshold in milliseconds. When the interval between rotary ticks is below
this value, acceleration is applied. Can be overridden per-encoder at runtime
via rotary_encoder_config_t.acceleration_threshold_ms.
config RE_ACCELERATION_CAP
int "Default acceleration cap (ms)"
default 4
help
Acceleration cap in milliseconds. The minimum tick interval used for acceleration
calculation, limiting the maximum acceleration effect. Can be overridden per-encoder
at runtime via rotary_encoder_config_t.acceleration_cap_ms.
endmenu