comparison Scan/MatrixARM/capabilities.kll @ 343:e464aaa4730f

Adding timing based debounce code - Uses expiry timer to decide on when to allow a state change - Initial state transitions are unaffected - Use MinDebounceTime define in kll to configure - ms granularity
author Jacob Alexander <haata@kiibohd.com>
date Fri, 19 Jun 2015 01:50:56 -0700
parents c856f826bd49
children
comparison
equal deleted inserted replaced
342:b29c291ad130 343:e464aaa4730f
30 # Increasing this value will increase switch latency 30 # Increasing this value will increase switch latency
31 DebounceThrottleDiv => DebounceThrottleDiv_define; 31 DebounceThrottleDiv => DebounceThrottleDiv_define;
32 DebounceThrottleDiv = 0; # Default 32 DebounceThrottleDiv = 0; # Default
33 #DebounceThrottleDiv = 2; # /4 divider 33 #DebounceThrottleDiv = 2; # /4 divider
34 34
35 # This defines the minimum amount of time after a transition until allowing another transition
36 # Generally switches require a minimum 5 ms debounce period
37 # Since a decision can usually be made quite quickly, there is little latency on each press
38 # However, this defines the latency at which the switch state can change
39 MinDebounceTime => MinDebounceTime_define;
40 MinDebounceTime = 5; # 5 ms
41