diff 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
line wrap: on
line diff
--- a/Scan/MatrixARM/capabilities.kll	Sun Jun 14 14:32:42 2015 -0700
+++ b/Scan/MatrixARM/capabilities.kll	Fri Jun 19 01:50:56 2015 -0700
@@ -32,3 +32,10 @@
 DebounceThrottleDiv = 0; # Default
 #DebounceThrottleDiv = 2; # /4 divider
 
+# This defines the minimum amount of time after a transition until allowing another transition
+# Generally switches require a minimum 5 ms debounce period
+# Since a decision can usually be made quite quickly, there is little latency on each press
+# However, this defines the latency at which the switch state can change
+MinDebounceTime => MinDebounceTime_define;
+MinDebounceTime = 5; # 5 ms
+