Add encoder lib; Custom task, init - functional
currently handles encoder connected to pins configured in encoder.hpp and receives and logs all available events in encoder task Works as expected TODO: migrate with previous implementation of commands in button.cpp
This commit is contained in:
27
components/encoder/Kconfig
Normal file
27
components/encoder/Kconfig
Normal file
@@ -0,0 +1,27 @@
|
||||
menu "Rotary encoders"
|
||||
|
||||
config RE_MAX
|
||||
int "Maximum number of rotary encoders"
|
||||
default 1
|
||||
|
||||
config RE_INTERVAL_US
|
||||
int "Polling interval, us"
|
||||
default 1000
|
||||
|
||||
config RE_BTN_DEAD_TIME_US
|
||||
int "Button dead time, us"
|
||||
default 10000
|
||||
|
||||
choice RE_BTN_PRESSED_LEVEL
|
||||
prompt "Logical level on pressed button"
|
||||
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 "Long press timeout, us"
|
||||
default 500000
|
||||
|
||||
endmenu
|
||||
Reference in New Issue
Block a user