Adding configurable DebounceDivThreshold
Can be specified from any .kll file DebounceDivThreshold = 0xFFFFFFFF Sets to max debounce, default is 0xFFFF. The 0xFFFFFFFF is about a 2x longer debounce The max requires more ram (as it uses 32 bit variables instead of 16). Added support for submodule capabilities files.
This commit is contained in:
parent
0ec5e6d9c2
commit
a9c5898ba5
5 changed files with 63 additions and 23 deletions
20
Scan/MatrixARM/capabilities.kll
Normal file
20
Scan/MatrixARM/capabilities.kll
Normal file
|
@ -0,0 +1,20 @@
|
|||
Name = MatrixArmCapabilities;
|
||||
Version = 0.1;
|
||||
Author = "HaaTa (Jacob Alexander) 2015";
|
||||
KLL = 0.3a;
|
||||
|
||||
# Modified Date
|
||||
Date = 2015-02-28;
|
||||
|
||||
# Defines available to the MatrixArm sub-module
|
||||
# This debounce scheme uses a rolling counter for press/unpress on each key
|
||||
# Each counter is incremented if pressed/unpressed and the opposite counter is divided by 2
|
||||
# Using the default division threshold (0xFFFF), there are approximately 13 cycles in a perfect cycle
|
||||
# If debounce is actually necessary, this will increase (better switches will debounce faster)
|
||||
#
|
||||
# The maximum threshold is 0xFFFFFFFF, which will give around ~32 -> 36 cycles per perfect cycle
|
||||
# Using a threshold higher than 0xFFFF will require 32 bit variables, and double the ram usage.
|
||||
DebounceDivThreshold => DebounceDivThreshold_define;
|
||||
DebounceDivThreshold = 0xFFFF; # Default debounce
|
||||
#DebounceDivThreshold = 0xFFFFFFFF; # Max debounce
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue