comparison Scan/MatrixARM/capabilities.kll @ 299:c856f826bd49

Adding DebounceThrottleDiv define to slow down the debounce rate. By default: DebounceThrottleDiv = 0; This is the default infinity behaviour right now (may be changed in the future). Increasing DebounceThrottleDiv will increase the scan rate divider. DebounceThrottleDiv = 1; # Scans half as much DebounceThrottleDiv = 2; # Scans a quarter as much DebounceThrottleDiv = 3; # Scans an eigth as much etc. For ARM based uCs (like the Infinity) the maximum divider is 32.
author Jacob Alexander <haata@kiibohd.com>
date Fri, 06 Mar 2015 22:18:15 -0800
parents 57f40871c726
children e464aaa4730f
comparison
equal deleted inserted replaced
298:39f84a603350 299:c856f826bd49
16 # Using a threshold higher than 0xFFFF will require 32 bit variables, and double the ram usage. 16 # Using a threshold higher than 0xFFFF will require 32 bit variables, and double the ram usage.
17 DebounceDivThreshold => DebounceDivThreshold_define; 17 DebounceDivThreshold => DebounceDivThreshold_define;
18 DebounceDivThreshold = 0xFFFF; # Default debounce 18 DebounceDivThreshold = 0xFFFF; # Default debounce
19 #DebounceDivThreshold = 0xFFFFFFFF; # Max debounce 19 #DebounceDivThreshold = 0xFFFFFFFF; # Max debounce
20 20
21 # This defines how often the matrix is scanned
22 # By, default the key matrix is scanned once per macro processing loop
23 # For fast uCs and bouncy switches, this can be non-ideal
24 # 0 - Bit-shift of 0
25 # 1 - Bit-shift of 1 (i.e. divide by 2)
26 # 2 - Bit-shift of 2 (i.e. divide by 4)
27 # 3 - Bit-shift of 3 (i.e. divide by 8)
28 # etc.
29 # Depending on the architecture, this is either a maximum of 16 or 32
30 # Increasing this value will increase switch latency
31 DebounceThrottleDiv => DebounceThrottleDiv_define;
32 DebounceThrottleDiv = 0; # Default
33 #DebounceThrottleDiv = 2; # /4 divider
34