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:
jonny_jr9
2023-08-31 12:22:13 +02:00
parent 7df5bcaa2a
commit 881f0827d2
11 changed files with 593 additions and 5 deletions

View 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