annotate Scan/MatrixARM/capabilities.kll @ 293:57f40871c726

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.
author Jacob Alexander <haata@kiibohd.com>
date Sat, 28 Feb 2015 22:13:17 -0800
parents
children c856f826bd49
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
293
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
1 Name = MatrixArmCapabilities;
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
2 Version = 0.1;
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
3 Author = "HaaTa (Jacob Alexander) 2015";
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
4 KLL = 0.3a;
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
5
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
6 # Modified Date
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
7 Date = 2015-02-28;
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
8
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
9 # Defines available to the MatrixArm sub-module
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
10 # This debounce scheme uses a rolling counter for press/unpress on each key
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
11 # Each counter is incremented if pressed/unpressed and the opposite counter is divided by 2
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
12 # Using the default division threshold (0xFFFF), there are approximately 13 cycles in a perfect cycle
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
13 # If debounce is actually necessary, this will increase (better switches will debounce faster)
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
14 #
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
15 # The maximum threshold is 0xFFFFFFFF, which will give around ~32 -> 36 cycles per perfect cycle
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
16 # Using a threshold higher than 0xFFFF will require 32 bit variables, and double the ram usage.
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
17 DebounceDivThreshold => DebounceDivThreshold_define;
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
18 DebounceDivThreshold = 0xFFFF; # Default debounce
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
19 #DebounceDivThreshold = 0xFFFFFFFF; # Max debounce
57f40871c726 Adding configurable DebounceDivThreshold
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
20