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
		
			
				
	
	
		
			28 lines
		
	
	
		
			508 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			508 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 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
 |