diff options
author | Drashna Jaelre <drashna@live.com> | 2019-06-06 12:09:56 -0700 |
---|---|---|
committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-06-06 12:09:56 -0700 |
commit | faaaa134fd436be400aa2c7841b38907899d49a6 (patch) | |
tree | 9deaea82d250f349b314ec89d369f068ddd75489 | |
parent | fe6b8edd581c334a92a97c15faced95a12d5e882 (diff) | |
download | qmk_firmware-faaaa134fd436be400aa2c7841b38907899d49a6.tar.gz qmk_firmware-faaaa134fd436be400aa2c7841b38907899d49a6.zip |
Replace DEBOUNCING_DELAY (deprecated) with DEBOUNCE (#5997)
448 files changed, 594 insertions, 627 deletions
diff --git a/docs/config_options.md b/docs/config_options.md index cab3c0747..f4035809a 100644 --- a/docs/config_options.md +++ b/docs/config_options.md | |||
@@ -83,7 +83,7 @@ This is a C header file that is one of the first things included, and will persi | |||
83 | * enables backlight breathing (only works with backlight pins B5, B6 and B7) | 83 | * enables backlight breathing (only works with backlight pins B5, B6 and B7) |
84 | * `#define BREATHING_PERIOD 6` | 84 | * `#define BREATHING_PERIOD 6` |
85 | * the length of one backlight "breath" in seconds | 85 | * the length of one backlight "breath" in seconds |
86 | * `#define DEBOUNCING_DELAY 5` | 86 | * `#define DEBOUNCE 5` |
87 | * the delay when reading the value of the pin (5 is default) | 87 | * the delay when reading the value of the pin (5 is default) |
88 | * `#define LOCKING_SUPPORT_ENABLE` | 88 | * `#define LOCKING_SUPPORT_ENABLE` |
89 | * mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap | 89 | * mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap |
diff --git a/docs/feature_bootmagic.md b/docs/feature_bootmagic.md index 39e4e47f4..225189ccb 100644 --- a/docs/feature_bootmagic.md +++ b/docs/feature_bootmagic.md | |||
@@ -140,7 +140,7 @@ To replace the function, all you need to do is add something like this to your c | |||
140 | ```c | 140 | ```c |
141 | void bootmagic_lite(void) { | 141 | void bootmagic_lite(void) { |
142 | matrix_scan(); | 142 | matrix_scan(); |
143 | wait_ms(DEBOUNCING_DELAY * 2); | 143 | wait_ms(DEBOUNCE * 2); |
144 | matrix_scan(); | 144 | matrix_scan(); |
145 | 145 | ||
146 | if (matrix_get_row(BOOTMAGIC_LITE_ROW) & (1 << BOOTMAGIC_LITE_COLUMN)) { | 146 | if (matrix_get_row(BOOTMAGIC_LITE_ROW) & (1 << BOOTMAGIC_LITE_COLUMN)) { |
diff --git a/keyboards/1upkeyboards/1up60hse/config.h b/keyboards/1upkeyboards/1up60hse/config.h index 188603622..3781d7bcf 100644 --- a/keyboards/1upkeyboards/1up60hse/config.h +++ b/keyboards/1upkeyboards/1up60hse/config.h | |||
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
65 | #define DEBOUNCING_DELAY 5 | 65 | #define DEBOUNCE 5 |
66 | 66 | ||
67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
68 | //#define MATRIX_HAS_GHOST | 68 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/1upkeyboards/1up60hte/config.h b/keyboards/1upkeyboards/1up60hte/config.h index 892a8b9fe..bcf6329f7 100644 --- a/keyboards/1upkeyboards/1up60hte/config.h +++ b/keyboards/1upkeyboards/1up60hte/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
53 | #define LOCKING_SUPPORT_ENABLE | 53 | #define LOCKING_SUPPORT_ENABLE |
@@ -62,4 +62,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | #define RGBLIGHT_HUE_STEP 8 | 62 | #define RGBLIGHT_HUE_STEP 8 |
63 | #define RGBLIGHT_SAT_STEP 8 | 63 | #define RGBLIGHT_SAT_STEP 8 |
64 | #define RGBLIGHT_VAL_STEP 8 | 64 | #define RGBLIGHT_VAL_STEP 8 |
65 | #endif \ No newline at end of file | 65 | #endif |
diff --git a/keyboards/1upkeyboards/1up60rgb/config.h b/keyboards/1upkeyboards/1up60rgb/config.h index fbafe0c44..6cf5b6904 100644 --- a/keyboards/1upkeyboards/1up60rgb/config.h +++ b/keyboards/1upkeyboards/1up60rgb/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/1upkeyboards/super16/config.h b/keyboards/1upkeyboards/super16/config.h index 4af4dda63..a50821637 100644 --- a/keyboards/1upkeyboards/super16/config.h +++ b/keyboards/1upkeyboards/super16/config.h | |||
@@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
80 | #endif | 80 | #endif |
81 | 81 | ||
82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
83 | #define DEBOUNCING_DELAY 5 | 83 | #define DEBOUNCE 5 |
84 | 84 | ||
85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
86 | //#define MATRIX_HAS_GHOST | 86 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/1upkeyboards/sweet16/config.h b/keyboards/1upkeyboards/sweet16/config.h index b05b57740..23b590c2c 100644 --- a/keyboards/1upkeyboards/sweet16/config.h +++ b/keyboards/1upkeyboards/sweet16/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
@@ -45,4 +45,3 @@ | |||
45 | #define RGBLIGHT_SAT_STEP 8 | 45 | #define RGBLIGHT_SAT_STEP 8 |
46 | #define RGBLIGHT_VAL_STEP 8 | 46 | #define RGBLIGHT_VAL_STEP 8 |
47 | #endif | 47 | #endif |
48 | |||
diff --git a/keyboards/40percentclub/25/config.h b/keyboards/40percentclub/25/config.h index 7381a76d9..c9c02b47e 100644 --- a/keyboards/40percentclub/25/config.h +++ b/keyboards/40percentclub/25/config.h | |||
@@ -71,7 +71,7 @@ | |||
71 | // #endif | 71 | // #endif |
72 | 72 | ||
73 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 73 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
74 | #define DEBOUNCING_DELAY 5 | 74 | #define DEBOUNCE 5 |
75 | 75 | ||
76 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 76 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
77 | //#define MATRIX_HAS_GHOST | 77 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/40percentclub/4x4/config.h b/keyboards/40percentclub/4x4/config.h index 3b41e501d..09ec5a4ec 100644 --- a/keyboards/40percentclub/4x4/config.h +++ b/keyboards/40percentclub/4x4/config.h | |||
@@ -38,7 +38,7 @@ | |||
38 | // #define BACKLIGHT_LEVELS 3 | 38 | // #define BACKLIGHT_LEVELS 3 |
39 | 39 | ||
40 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 40 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
41 | #define DEBOUNCING_DELAY 5 | 41 | #define DEBOUNCE 5 |
42 | 42 | ||
43 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 43 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
44 | //#define MATRIX_HAS_GHOST | 44 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/40percentclub/5x5/config.h b/keyboards/40percentclub/5x5/config.h index f1c348a48..a9d294bc9 100644 --- a/keyboards/40percentclub/5x5/config.h +++ b/keyboards/40percentclub/5x5/config.h | |||
@@ -47,7 +47,7 @@ | |||
47 | // #endif | 47 | // #endif |
48 | 48 | ||
49 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 49 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 52 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
53 | //#define MATRIX_HAS_GHOST | 53 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/40percentclub/6lit/config.h b/keyboards/40percentclub/6lit/config.h index c6beafa41..110362a62 100644 --- a/keyboards/40percentclub/6lit/config.h +++ b/keyboards/40percentclub/6lit/config.h | |||
@@ -72,7 +72,7 @@ | |||
72 | // #endif | 72 | // #endif |
73 | 73 | ||
74 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 74 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
75 | #define DEBOUNCING_DELAY 5 | 75 | #define DEBOUNCE 5 |
76 | 76 | ||
77 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 77 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
78 | //#define MATRIX_HAS_GHOST | 78 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/40percentclub/foobar/config.h b/keyboards/40percentclub/foobar/config.h index 1443c1ca1..15af4ad5b 100644 --- a/keyboards/40percentclub/foobar/config.h +++ b/keyboards/40percentclub/foobar/config.h | |||
@@ -72,7 +72,7 @@ | |||
72 | // #endif | 72 | // #endif |
73 | 73 | ||
74 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 74 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
75 | #define DEBOUNCING_DELAY 5 | 75 | #define DEBOUNCE 5 |
76 | 76 | ||
77 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 77 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
78 | //#define MATRIX_HAS_GHOST | 78 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/40percentclub/gherkin/config.h b/keyboards/40percentclub/gherkin/config.h index d0c2be35b..4dc794e34 100644 --- a/keyboards/40percentclub/gherkin/config.h +++ b/keyboards/40percentclub/gherkin/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/40percentclub/half_n_half/config.h b/keyboards/40percentclub/half_n_half/config.h index c74fcacbb..cd7515f0b 100644 --- a/keyboards/40percentclub/half_n_half/config.h +++ b/keyboards/40percentclub/half_n_half/config.h | |||
@@ -81,7 +81,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
81 | // #endif | 81 | // #endif |
82 | 82 | ||
83 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 83 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
84 | #define DEBOUNCING_DELAY 5 | 84 | #define DEBOUNCE 5 |
85 | 85 | ||
86 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 86 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
87 | //#define MATRIX_HAS_GHOST | 87 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/40percentclub/i75/config.h b/keyboards/40percentclub/i75/config.h index 611ae62b3..f9b5d57dd 100644 --- a/keyboards/40percentclub/i75/config.h +++ b/keyboards/40percentclub/i75/config.h | |||
@@ -27,7 +27,7 @@ | |||
27 | #define DESCRIPTION i75 15x5 ortholinear keyboard | 27 | #define DESCRIPTION i75 15x5 ortholinear keyboard |
28 | 28 | ||
29 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 29 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
30 | #define DEBOUNCING_DELAY 5 | 30 | #define DEBOUNCE 5 |
31 | 31 | ||
32 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 32 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
33 | //#define MATRIX_HAS_GHOST | 33 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/40percentclub/luddite/config.h b/keyboards/40percentclub/luddite/config.h index 5a6f2c799..36bda0614 100644 --- a/keyboards/40percentclub/luddite/config.h +++ b/keyboards/40percentclub/luddite/config.h | |||
@@ -26,7 +26,7 @@ | |||
26 | #endif | 26 | #endif |
27 | 27 | ||
28 | /* Set 0 if debouncing isn't needed */ | 28 | /* Set 0 if debouncing isn't needed */ |
29 | #define DEBOUNCING_DELAY 5 | 29 | #define DEBOUNCE 5 |
30 | 30 | ||
31 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 31 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
32 | #define LOCKING_SUPPORT_ENABLE | 32 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/40percentclub/mf68/config.h b/keyboards/40percentclub/mf68/config.h index 25252d160..5bda9bb78 100644 --- a/keyboards/40percentclub/mf68/config.h +++ b/keyboards/40percentclub/mf68/config.h | |||
@@ -75,7 +75,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
75 | // #endif | 75 | // #endif |
76 | 76 | ||
77 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 77 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
78 | #define DEBOUNCING_DELAY 5 | 78 | #define DEBOUNCE 5 |
79 | 79 | ||
80 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 80 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
81 | //#define MATRIX_HAS_GHOST | 81 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/40percentclub/nein/config.h b/keyboards/40percentclub/nein/config.h index 05fd93d24..da1bc91dd 100644 --- a/keyboards/40percentclub/nein/config.h +++ b/keyboards/40percentclub/nein/config.h | |||
@@ -76,7 +76,7 @@ | |||
76 | // #endif | 76 | // #endif |
77 | 77 | ||
78 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 78 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
79 | #define DEBOUNCING_DELAY 5 | 79 | #define DEBOUNCE 5 |
80 | 80 | ||
81 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 81 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
82 | //#define MATRIX_HAS_GHOST | 82 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/40percentclub/nori/config.h b/keyboards/40percentclub/nori/config.h index a3366de62..ecaa68ada 100644 --- a/keyboards/40percentclub/nori/config.h +++ b/keyboards/40percentclub/nori/config.h | |||
@@ -60,7 +60,7 @@ | |||
60 | #define RGBLIGHT_VAL_STEP 8 | 60 | #define RGBLIGHT_VAL_STEP 8 |
61 | 61 | ||
62 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 62 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
63 | #define DEBOUNCING_DELAY 5 | 63 | #define DEBOUNCE 5 |
64 | 64 | ||
65 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 65 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
66 | //#define MATRIX_HAS_GHOST | 66 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/40percentclub/tomato/config.h b/keyboards/40percentclub/tomato/config.h index db90d8042..e131ce5c2 100644 --- a/keyboards/40percentclub/tomato/config.h +++ b/keyboards/40percentclub/tomato/config.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #define DIODE_DIRECTION COL2ROW | 23 | #define DIODE_DIRECTION COL2ROW |
24 | 24 | ||
25 | /* Set 0 if debouncing isn't needed */ | 25 | /* Set 0 if debouncing isn't needed */ |
26 | #define DEBOUNCING_DELAY 5 | 26 | #define DEBOUNCE 5 |
27 | 27 | ||
28 | /* Locking resynchronize hack */ | 28 | /* Locking resynchronize hack */ |
29 | #define LOCKING_RESYNC_ENABLE | 29 | #define LOCKING_RESYNC_ENABLE |
diff --git a/keyboards/40percentclub/ut47/config.h b/keyboards/40percentclub/ut47/config.h index 87f2bedd7..25ef4271f 100644 --- a/keyboards/40percentclub/ut47/config.h +++ b/keyboards/40percentclub/ut47/config.h | |||
@@ -43,7 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
43 | // #define BACKLIGHT_LEVELS 3 | 43 | // #define BACKLIGHT_LEVELS 3 |
44 | 44 | ||
45 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 45 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
46 | #define DEBOUNCING_DELAY 5 | 46 | #define DEBOUNCE 5 |
47 | 47 | ||
48 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 48 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
49 | //#define MATRIX_HAS_GHOST | 49 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/abstract/ellipse/rev1/config.h b/keyboards/abstract/ellipse/rev1/config.h index 4fcf96eb3..a56bfba2f 100644 --- a/keyboards/abstract/ellipse/rev1/config.h +++ b/keyboards/abstract/ellipse/rev1/config.h | |||
@@ -75,7 +75,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
75 | #endif | 75 | #endif |
76 | 76 | ||
77 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 77 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
78 | #define DEBOUNCING_DELAY 5 | 78 | #define DEBOUNCE 5 |
79 | 79 | ||
80 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 80 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
81 | //#define MATRIX_HAS_GHOST | 81 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/acr60/config.h b/keyboards/acr60/config.h index ab5a1932b..9b2b2a2f0 100644 --- a/keyboards/acr60/config.h +++ b/keyboards/acr60/config.h | |||
@@ -28,7 +28,7 @@ | |||
28 | #define BACKLIGHT_LEVELS 5 | 28 | #define BACKLIGHT_LEVELS 5 |
29 | 29 | ||
30 | /* Set 0 if debouncing isn't needed */ | 30 | /* Set 0 if debouncing isn't needed */ |
31 | #define DEBOUNCING_DELAY 5 | 31 | #define DEBOUNCE 5 |
32 | 32 | ||
33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
34 | #define LOCKING_SUPPORT_ENABLE | 34 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/adkb96/rev1/config.h b/keyboards/adkb96/rev1/config.h index 8bdacb4cb..cff135c26 100644 --- a/keyboards/adkb96/rev1/config.h +++ b/keyboards/adkb96/rev1/config.h | |||
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
22 | #define DEVICE_VER 0x0001 | 22 | #define DEVICE_VER 0x0001 |
23 | #define MANUFACTURER Bit Trade One | 23 | #define MANUFACTURER Bit Trade One |
24 | #define PRODUCT ADKB96 | 24 | #define PRODUCT ADKB96 |
25 | #define DESCRIPTION | 25 | #define DESCRIPTION |
26 | 26 | ||
27 | /* key matrix size */ | 27 | /* key matrix size */ |
28 | // Rows are doubled-up | 28 | // Rows are doubled-up |
@@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
45 | // #define BACKLIGHT_LEVELS 3 | 45 | // #define BACKLIGHT_LEVELS 3 |
46 | 46 | ||
47 | /* Set 0 if debouncing isn't needed */ | 47 | /* Set 0 if debouncing isn't needed */ |
48 | #define DEBOUNCING_DELAY 5 | 48 | #define DEBOUNCE 5 |
49 | 49 | ||
50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
51 | #define LOCKING_SUPPORT_ENABLE | 51 | #define LOCKING_SUPPORT_ENABLE |
@@ -75,4 +75,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
75 | //#define NO_ACTION_ONESHOT | 75 | //#define NO_ACTION_ONESHOT |
76 | //#define NO_ACTION_MACRO | 76 | //#define NO_ACTION_MACRO |
77 | //#define NO_ACTION_FUNCTION | 77 | //#define NO_ACTION_FUNCTION |
78 | |||
diff --git a/keyboards/aeboards/aegis/config.h b/keyboards/aeboards/aegis/config.h index 787c0f485..8db31b254 100644 --- a/keyboards/aeboards/aegis/config.h +++ b/keyboards/aeboards/aegis/config.h | |||
@@ -39,7 +39,7 @@ | |||
39 | #define DIODE_DIRECTION COL2ROW | 39 | #define DIODE_DIRECTION COL2ROW |
40 | 40 | ||
41 | /* Set 0 if debouncing isn't needed */ | 41 | /* Set 0 if debouncing isn't needed */ |
42 | #define DEBOUNCING_DELAY 5 | 42 | #define DEBOUNCE 5 |
43 | 43 | ||
44 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 44 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
45 | #define LOCKING_SUPPORT_ENABLE | 45 | #define LOCKING_SUPPORT_ENABLE |
@@ -68,4 +68,3 @@ | |||
68 | #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 899 | 68 | #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 899 |
69 | #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 125 | 69 | #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 125 |
70 | #define DYNAMIC_KEYMAP_MACRO_COUNT 16 | 70 | #define DYNAMIC_KEYMAP_MACRO_COUNT 16 |
71 | |||
diff --git a/keyboards/ai03/lunar/config.h b/keyboards/ai03/lunar/config.h index 2fe66d4bc..a9d192554 100644 --- a/keyboards/ai03/lunar/config.h +++ b/keyboards/ai03/lunar/config.h | |||
@@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
80 | // #endif | 80 | // #endif |
81 | 81 | ||
82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
83 | #define DEBOUNCING_DELAY 5 | 83 | #define DEBOUNCE 5 |
84 | 84 | ||
85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
86 | //#define MATRIX_HAS_GHOST | 86 | //#define MATRIX_HAS_GHOST |
@@ -262,5 +262,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
262 | // DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR = DYNAMIC_KEYMAP_EEPROM_ADDR + (DYNAMIC_KEYMAP_LAYER_COUNT * MATRIX_ROWS * MATRIX_COLS * 2) | 262 | // DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR = DYNAMIC_KEYMAP_EEPROM_ADDR + (DYNAMIC_KEYMAP_LAYER_COUNT * MATRIX_ROWS * MATRIX_COLS * 2) |
263 | #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 635 | 263 | #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 635 |
264 | // DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE = 1024 - DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR | 264 | // DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE = 1024 - DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR |
265 | #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 389 | 265 | #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 389 |
266 | #define DYNAMIC_KEYMAP_MACRO_COUNT 16 | 266 | #define DYNAMIC_KEYMAP_MACRO_COUNT 16 |
diff --git a/keyboards/ai03/orbit/config.h b/keyboards/ai03/orbit/config.h index f4dc4fd63..00945ac79 100644 --- a/keyboards/ai03/orbit/config.h +++ b/keyboards/ai03/orbit/config.h | |||
@@ -89,7 +89,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
89 | // #endif | 89 | // #endif |
90 | 90 | ||
91 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 91 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
92 | #define DEBOUNCING_DELAY 5 | 92 | #define DEBOUNCE 5 |
93 | 93 | ||
94 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 94 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
95 | //#define MATRIX_HAS_GHOST | 95 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/al1/config.h b/keyboards/al1/config.h index 838d56963..f4ded4346 100644 --- a/keyboards/al1/config.h +++ b/keyboards/al1/config.h | |||
@@ -51,7 +51,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
51 | #define BACKLIGHT_LEVELS 3 | 51 | #define BACKLIGHT_LEVELS 3 |
52 | 52 | ||
53 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 53 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
54 | #define DEBOUNCING_DELAY 5 | 54 | #define DEBOUNCE 5 |
55 | 55 | ||
56 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 56 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
57 | //#define MATRIX_HAS_GHOST | 57 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/al1/matrix.c b/keyboards/al1/matrix.c index 0b7ec2c8a..f6e951087 100644 --- a/keyboards/al1/matrix.c +++ b/keyboards/al1/matrix.c | |||
@@ -7,10 +7,10 @@ | |||
7 | #include "util.h" | 7 | #include "util.h" |
8 | #include "matrix.h" | 8 | #include "matrix.h" |
9 | 9 | ||
10 | #ifndef DEBOUNCING_DELAY | 10 | #ifndef DEBOUNCE |
11 | # define DEBOUNCING_DELAY 5 | 11 | # define DEBOUNCE 5 |
12 | #endif | 12 | #endif |
13 | static uint8_t debouncing = DEBOUNCING_DELAY; | 13 | static uint8_t debouncing = DEBOUNCE; |
14 | 14 | ||
15 | static matrix_row_t matrix[MATRIX_ROWS]; | 15 | static matrix_row_t matrix[MATRIX_ROWS]; |
16 | static matrix_row_t matrix_debouncing[MATRIX_ROWS]; | 16 | static matrix_row_t matrix_debouncing[MATRIX_ROWS]; |
@@ -69,7 +69,7 @@ uint8_t matrix_scan(void) { | |||
69 | bool curr_bit = rows & (1<<row); | 69 | bool curr_bit = rows & (1<<row); |
70 | if (prev_bit != curr_bit) { | 70 | if (prev_bit != curr_bit) { |
71 | matrix_debouncing[row] ^= ((matrix_row_t)1<<col); | 71 | matrix_debouncing[row] ^= ((matrix_row_t)1<<col); |
72 | debouncing = DEBOUNCING_DELAY; | 72 | debouncing = DEBOUNCE; |
73 | } | 73 | } |
74 | } | 74 | } |
75 | unselect_cols(); | 75 | unselect_cols(); |
diff --git a/keyboards/alf/dc60/config.h b/keyboards/alf/dc60/config.h index f551a3e3d..bbdac062c 100644 --- a/keyboards/alf/dc60/config.h +++ b/keyboards/alf/dc60/config.h | |||
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
65 | #define DEBOUNCING_DELAY 5 | 65 | #define DEBOUNCE 5 |
66 | 66 | ||
67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
68 | //#define MATRIX_HAS_GHOST | 68 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/alf/x11/config.h b/keyboards/alf/x11/config.h index 14c97247b..587e97cd8 100644 --- a/keyboards/alf/x11/config.h +++ b/keyboards/alf/x11/config.h | |||
@@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
80 | #endif | 80 | #endif |
81 | 81 | ||
82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
83 | #define DEBOUNCING_DELAY 5 | 83 | #define DEBOUNCE 5 |
84 | 84 | ||
85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
86 | //#define MATRIX_HAS_GHOST | 86 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/alf/x2/config.h b/keyboards/alf/x2/config.h index 21d919983..205fa358f 100644 --- a/keyboards/alf/x2/config.h +++ b/keyboards/alf/x2/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | 34 | ||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
36 | #define LOCKING_SUPPORT_ENABLE | 36 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/alpha/config.h b/keyboards/alpha/config.h index b177c8a4b..b7348bef1 100755 --- a/keyboards/alpha/config.h +++ b/keyboards/alpha/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | 34 | ||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
36 | #define LOCKING_SUPPORT_ENABLE | 36 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/alu84/config.h b/keyboards/alu84/config.h index 257c22e53..130e2f1b4 100755 --- a/keyboards/alu84/config.h +++ b/keyboards/alu84/config.h | |||
@@ -46,7 +46,7 @@ | |||
46 | #endif | 46 | #endif |
47 | 47 | ||
48 | /* Set 0 if debouncing isn't needed */ | 48 | /* Set 0 if debouncing isn't needed */ |
49 | #define DEBOUNCING_DELAY 5 | 49 | #define DEBOUNCE 5 |
50 | 50 | ||
51 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 51 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
52 | #define LOCKING_SUPPORT_ENABLE | 52 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/amj40/config.h b/keyboards/amj40/config.h index 4d5e4889c..f9a3c1ac6 100755 --- a/keyboards/amj40/config.h +++ b/keyboards/amj40/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | //#define MATRIX_HAS_GHOST | 47 | //#define MATRIX_HAS_GHOST |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
53 | #define LOCKING_SUPPORT_ENABLE | 53 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/amj60/config.h b/keyboards/amj60/config.h index 165f20cd4..81b70111b 100644 --- a/keyboards/amj60/config.h +++ b/keyboards/amj60/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | //#define MATRIX_HAS_GHOST | 47 | //#define MATRIX_HAS_GHOST |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
53 | #define LOCKING_SUPPORT_ENABLE | 53 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/amj96/config.h b/keyboards/amj96/config.h index 866bcd526..1f1be03ce 100644 --- a/keyboards/amj96/config.h +++ b/keyboards/amj96/config.h | |||
@@ -64,7 +64,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
64 | #define BACKLIGHT_CUSTOM | 64 | #define BACKLIGHT_CUSTOM |
65 | 65 | ||
66 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 66 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
67 | #define DEBOUNCING_DELAY 5 | 67 | #define DEBOUNCE 5 |
68 | 68 | ||
69 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 69 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
70 | //#define MATRIX_HAS_GHOST | 70 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/amjpad/config.h b/keyboards/amjpad/config.h index f568d82f0..bbb48624f 100644 --- a/keyboards/amjpad/config.h +++ b/keyboards/amjpad/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | //#define MATRIX_HAS_GHOST | 47 | //#define MATRIX_HAS_GHOST |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
53 | #define LOCKING_SUPPORT_ENABLE | 53 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/ares/config.h b/keyboards/ares/config.h index f278c6fdc..cca26aab3 100644 --- a/keyboards/ares/config.h +++ b/keyboards/ares/config.h | |||
@@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
34 | #define UNUSED_PINS {} | 34 | #define UNUSED_PINS {} |
35 | 35 | ||
36 | #define DIODE_DIRECTION COL2ROW | 36 | #define DIODE_DIRECTION COL2ROW |
37 | #define DEBOUNCING_DELAY 5 | 37 | #define DEBOUNCE 5 |
38 | 38 | ||
39 | #define NO_BACKLIGHT_CLOCK | 39 | #define NO_BACKLIGHT_CLOCK |
40 | #define BACKLIGHT_LEVELS 1 | 40 | #define BACKLIGHT_LEVELS 1 |
@@ -48,4 +48,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
48 | 48 | ||
49 | /* Bootmagic Lite key configuration */ | 49 | /* Bootmagic Lite key configuration */ |
50 | // #define BOOTMAGIC_LITE_ROW 0 | 50 | // #define BOOTMAGIC_LITE_ROW 0 |
51 | // #define BOOTMAGIC_LITE_COLUMN 0 \ No newline at end of file | 51 | // #define BOOTMAGIC_LITE_COLUMN 0 |
diff --git a/keyboards/at101_blackheart/config.h b/keyboards/at101_blackheart/config.h index af4be3d71..83814c648 100644 --- a/keyboards/at101_blackheart/config.h +++ b/keyboards/at101_blackheart/config.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #define DIODE_DIRECTION COL2ROW | 23 | #define DIODE_DIRECTION COL2ROW |
24 | 24 | ||
25 | /* Set 0 if debouncing isn't needed */ | 25 | /* Set 0 if debouncing isn't needed */ |
26 | #define DEBOUNCING_DELAY 5 | 26 | #define DEBOUNCE 5 |
27 | 27 | ||
28 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 28 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
29 | #define LOCKING_SUPPORT_ENABLE | 29 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/atom47/rev2/config.h b/keyboards/atom47/rev2/config.h index 7a044620b..c38cd450e 100644 --- a/keyboards/atom47/rev2/config.h +++ b/keyboards/atom47/rev2/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | //#define MATRIX_HAS_GHOST | 47 | //#define MATRIX_HAS_GHOST |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
53 | #define LOCKING_SUPPORT_ENABLE | 53 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/atom47/rev3/config.h b/keyboards/atom47/rev3/config.h index e14800b0f..5a302abff 100644 --- a/keyboards/atom47/rev3/config.h +++ b/keyboards/atom47/rev3/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | //#define MATRIX_HAS_GHOST | 47 | //#define MATRIX_HAS_GHOST |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* Backlight configuration | 52 | /* Backlight configuration |
53 | */ | 53 | */ |
diff --git a/keyboards/atomic/config.h b/keyboards/atomic/config.h index 8af23ffeb..045f86727 100644 --- a/keyboards/atomic/config.h +++ b/keyboards/atomic/config.h | |||
@@ -52,7 +52,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
52 | #define DIODE_DIRECTION COL2ROW | 52 | #define DIODE_DIRECTION COL2ROW |
53 | 53 | ||
54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
55 | #define DEBOUNCING_DELAY 5 | 55 | #define DEBOUNCE 5 |
56 | 56 | ||
57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
58 | //#define MATRIX_HAS_GHOST | 58 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/atomic/keymaps/pvc/config.h b/keyboards/atomic/keymaps/pvc/config.h index 50afa7688..3803a2ccd 100644 --- a/keyboards/atomic/keymaps/pvc/config.h +++ b/keyboards/atomic/keymaps/pvc/config.h | |||
@@ -37,7 +37,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
37 | #define DIODE_DIRECTION COL2ROW | 37 | #define DIODE_DIRECTION COL2ROW |
38 | 38 | ||
39 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 39 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
40 | #define DEBOUNCING_DELAY 5 | 40 | #define DEBOUNCE 5 |
41 | 41 | ||
42 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 42 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
43 | //#define MATRIX_HAS_GHOST | 43 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/atreus/config.h b/keyboards/atreus/config.h index 18c66c4e2..b1559a29d 100644 --- a/keyboards/atreus/config.h +++ b/keyboards/atreus/config.h | |||
@@ -59,7 +59,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
59 | //#define BACKLIGHT_LEVELS 3 | 59 | //#define BACKLIGHT_LEVELS 3 |
60 | 60 | ||
61 | /* Set 0 if debouncing isn't needed */ | 61 | /* Set 0 if debouncing isn't needed */ |
62 | #define DEBOUNCING_DELAY 5 | 62 | #define DEBOUNCE 5 |
63 | 63 | ||
64 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 64 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
65 | #define LOCKING_SUPPORT_ENABLE | 65 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/atreus/keymaps/alphadox/config.h b/keyboards/atreus/keymaps/alphadox/config.h index e81029a03..e998e5edc 100644 --- a/keyboards/atreus/keymaps/alphadox/config.h +++ b/keyboards/atreus/keymaps/alphadox/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | //#define BACKLIGHT_LEVELS 3 | 47 | //#define BACKLIGHT_LEVELS 3 |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
53 | #define LOCKING_SUPPORT_ENABLE | 53 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/atreus/keymaps/dvorak_42_key/config.h b/keyboards/atreus/keymaps/dvorak_42_key/config.h index 953178ee4..12a221d7f 100644 --- a/keyboards/atreus/keymaps/dvorak_42_key/config.h +++ b/keyboards/atreus/keymaps/dvorak_42_key/config.h | |||
@@ -71,7 +71,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
71 | //#define BACKLIGHT_LEVELS 3 | 71 | //#define BACKLIGHT_LEVELS 3 |
72 | 72 | ||
73 | /* Set 0 if debouncing isn't needed */ | 73 | /* Set 0 if debouncing isn't needed */ |
74 | #define DEBOUNCING_DELAY 5 | 74 | #define DEBOUNCE 5 |
75 | 75 | ||
76 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 76 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
77 | #define LOCKING_SUPPORT_ENABLE | 77 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/atreus/keymaps/erlandsona/config.h b/keyboards/atreus/keymaps/erlandsona/config.h index 5af7e6e6c..4a7ade96a 100644 --- a/keyboards/atreus/keymaps/erlandsona/config.h +++ b/keyboards/atreus/keymaps/erlandsona/config.h | |||
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | //#define BACKLIGHT_LEVELS 3 | 62 | //#define BACKLIGHT_LEVELS 3 |
63 | 63 | ||
64 | /* Set 0 if debouncing isn't needed */ | 64 | /* Set 0 if debouncing isn't needed */ |
65 | #define DEBOUNCING_DELAY 5 | 65 | #define DEBOUNCE 5 |
66 | 66 | ||
67 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 67 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
68 | #define LOCKING_SUPPORT_ENABLE | 68 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/atreus62/config.h b/keyboards/atreus62/config.h index 67b5f9cb2..a7fe5f354 100644 --- a/keyboards/atreus62/config.h +++ b/keyboards/atreus62/config.h | |||
@@ -48,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
48 | // #define BACKLIGHT_LEVELS 3 | 48 | // #define BACKLIGHT_LEVELS 3 |
49 | 49 | ||
50 | /* Set 0 if debouncing isn't needed */ | 50 | /* Set 0 if debouncing isn't needed */ |
51 | #define DEBOUNCING_DELAY 5 | 51 | #define DEBOUNCE 5 |
52 | 52 | ||
53 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 53 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
54 | #define LOCKING_SUPPORT_ENABLE | 54 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/baguette/baguette.c b/keyboards/baguette/baguette.c index 6a8df873a..751a31725 100644 --- a/keyboards/baguette/baguette.c +++ b/keyboards/baguette/baguette.c | |||
@@ -23,7 +23,7 @@ void bootmagic_lite(void) | |||
23 | 23 | ||
24 | // We need multiple scans because debouncing can't be turned off. | 24 | // We need multiple scans because debouncing can't be turned off. |
25 | matrix_scan(); | 25 | matrix_scan(); |
26 | wait_ms(DEBOUNCING_DELAY); | 26 | wait_ms(DEBOUNCE); |
27 | matrix_scan(); | 27 | matrix_scan(); |
28 | 28 | ||
29 | // If the Esc and space bar are held down on power up, | 29 | // If the Esc and space bar are held down on power up, |
diff --git a/keyboards/baguette/config.h b/keyboards/baguette/config.h index 1259d7055..9aa525cfd 100644 --- a/keyboards/baguette/config.h +++ b/keyboards/baguette/config.h | |||
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | // #endif | 62 | // #endif |
63 | 63 | ||
64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
65 | #define DEBOUNCING_DELAY 5 | 65 | #define DEBOUNCE 5 |
66 | 66 | ||
67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
68 | //#define MATRIX_HAS_GHOST | 68 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/bantam44/config.h b/keyboards/bantam44/config.h index 323852850..5b1885d83 100644 --- a/keyboards/bantam44/config.h +++ b/keyboards/bantam44/config.h | |||
@@ -49,7 +49,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
49 | #define BACKLIGHT_LEVELS 3 | 49 | #define BACKLIGHT_LEVELS 3 |
50 | 50 | ||
51 | /* Set 0 if debouncing isn't needed */ | 51 | /* Set 0 if debouncing isn't needed */ |
52 | #define DEBOUNCING_DELAY 5 | 52 | #define DEBOUNCE 5 |
53 | 53 | ||
54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
55 | #define LOCKING_SUPPORT_ENABLE | 55 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/bfake/config.h b/keyboards/bfake/config.h index 01fd4dff3..235181d09 100644 --- a/keyboards/bfake/config.h +++ b/keyboards/bfake/config.h | |||
@@ -35,7 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
35 | #define UNUSED_PINS | 35 | #define UNUSED_PINS |
36 | 36 | ||
37 | #define DIODE_DIRECTION COL2ROW | 37 | #define DIODE_DIRECTION COL2ROW |
38 | #define DEBOUNCING_DELAY 5 | 38 | #define DEBOUNCE 5 |
39 | 39 | ||
40 | #define NO_BACKLIGHT_CLOCK | 40 | #define NO_BACKLIGHT_CLOCK |
41 | #define BACKLIGHT_LEVELS 1 | 41 | #define BACKLIGHT_LEVELS 1 |
diff --git a/keyboards/bigseries/1key/config.h b/keyboards/bigseries/1key/config.h index 966f2062c..66a012472 100755 --- a/keyboards/bigseries/1key/config.h +++ b/keyboards/bigseries/1key/config.h | |||
@@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
40 | #define DIODE_DIRECTION ROW2COL | 40 | #define DIODE_DIRECTION ROW2COL |
41 | 41 | ||
42 | /* Set 0 if debouncing isn't needed */ | 42 | /* Set 0 if debouncing isn't needed */ |
43 | #define DEBOUNCING_DELAY 50 | 43 | #define DEBOUNCE 50 |
44 | 44 | ||
45 | /* key combination for command */ | 45 | /* key combination for command */ |
46 | #define IS_COMMAND() ( \ | 46 | #define IS_COMMAND() ( \ |
diff --git a/keyboards/bigseries/2key/config.h b/keyboards/bigseries/2key/config.h index 79b9ed378..535be27e7 100755 --- a/keyboards/bigseries/2key/config.h +++ b/keyboards/bigseries/2key/config.h | |||
@@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
40 | #define DIODE_DIRECTION ROW2COL | 40 | #define DIODE_DIRECTION ROW2COL |
41 | 41 | ||
42 | /* Set 0 if debouncing isn't needed */ | 42 | /* Set 0 if debouncing isn't needed */ |
43 | #define DEBOUNCING_DELAY 50 | 43 | #define DEBOUNCE 50 |
44 | 44 | ||
45 | /* key combination for command */ | 45 | /* key combination for command */ |
46 | #define IS_COMMAND() ( \ | 46 | #define IS_COMMAND() ( \ |
diff --git a/keyboards/bigseries/3key/config.h b/keyboards/bigseries/3key/config.h index 9963a8219..faf166725 100755 --- a/keyboards/bigseries/3key/config.h +++ b/keyboards/bigseries/3key/config.h | |||
@@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
40 | #define DIODE_DIRECTION ROW2COL | 40 | #define DIODE_DIRECTION ROW2COL |
41 | 41 | ||
42 | /* Set 0 if debouncing isn't needed */ | 42 | /* Set 0 if debouncing isn't needed */ |
43 | #define DEBOUNCING_DELAY 50 | 43 | #define DEBOUNCE 50 |
44 | 44 | ||
45 | /* key combination for command */ | 45 | /* key combination for command */ |
46 | #define IS_COMMAND() ( \ | 46 | #define IS_COMMAND() ( \ |
diff --git a/keyboards/bigseries/4key/config.h b/keyboards/bigseries/4key/config.h index a222512d3..79fdeb6ed 100755 --- a/keyboards/bigseries/4key/config.h +++ b/keyboards/bigseries/4key/config.h | |||
@@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
40 | #define DIODE_DIRECTION ROW2COL | 40 | #define DIODE_DIRECTION ROW2COL |
41 | 41 | ||
42 | /* Set 0 if debouncing isn't needed */ | 42 | /* Set 0 if debouncing isn't needed */ |
43 | #define DEBOUNCING_DELAY 50 | 43 | #define DEBOUNCE 50 |
44 | 44 | ||
45 | /* key combination for command */ | 45 | /* key combination for command */ |
46 | #define IS_COMMAND() ( \ | 46 | #define IS_COMMAND() ( \ |
diff --git a/keyboards/bigswitch/config.h b/keyboards/bigswitch/config.h index a0ef6b555..220f2591b 100755 --- a/keyboards/bigswitch/config.h +++ b/keyboards/bigswitch/config.h | |||
@@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
40 | #define DIODE_DIRECTION ROW2COL | 40 | #define DIODE_DIRECTION ROW2COL |
41 | 41 | ||
42 | /* Set 0 if debouncing isn't needed */ | 42 | /* Set 0 if debouncing isn't needed */ |
43 | #define DEBOUNCING_DELAY 50 | 43 | #define DEBOUNCE 50 |
44 | 44 | ||
45 | /* key combination for command */ | 45 | /* key combination for command */ |
46 | #define IS_COMMAND() ( \ | 46 | #define IS_COMMAND() ( \ |
diff --git a/keyboards/bigswitch/keymaps/wanleg/config.h b/keyboards/bigswitch/keymaps/wanleg/config.h index 0c6790618..54abb9a6c 100644 --- a/keyboards/bigswitch/keymaps/wanleg/config.h +++ b/keyboards/bigswitch/keymaps/wanleg/config.h | |||
@@ -32,8 +32,8 @@ | |||
32 | #define BREATHING_PERIOD 5 | 32 | #define BREATHING_PERIOD 5 |
33 | 33 | ||
34 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 34 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
35 | #undef DEBOUNCING_DELAY | 35 | #undef DEBOUNCE |
36 | #define DEBOUNCING_DELAY 5 | 36 | #define DEBOUNCE 5 |
37 | 37 | ||
38 | // set flashing LED with QMK DFU | 38 | // set flashing LED with QMK DFU |
39 | #define QMK_LED B0 | 39 | #define QMK_LED B0 |
diff --git a/keyboards/blockey/config.h b/keyboards/blockey/config.h index 9bf64ef00..8934fd63a 100644 --- a/keyboards/blockey/config.h +++ b/keyboards/blockey/config.h | |||
@@ -59,7 +59,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
59 | #define RGBLIGHT_ANIMATIONS | 59 | #define RGBLIGHT_ANIMATIONS |
60 | 60 | ||
61 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 61 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
62 | #define DEBOUNCING_DELAY 5 | 62 | #define DEBOUNCE 5 |
63 | 63 | ||
64 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 64 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
65 | //#define MATRIX_HAS_GHOST | 65 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/bm16a/config.h b/keyboards/bm16a/config.h index c6b460a11..fc0405475 100644 --- a/keyboards/bm16a/config.h +++ b/keyboards/bm16a/config.h | |||
@@ -81,7 +81,7 @@ | |||
81 | // #endif | 81 | // #endif |
82 | 82 | ||
83 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 83 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
84 | #define DEBOUNCING_DELAY 5 | 84 | #define DEBOUNCE 5 |
85 | 85 | ||
86 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 86 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
87 | //#define MATRIX_HAS_GHOST | 87 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/bm16s/config.h b/keyboards/bm16s/config.h index 568e80b39..379e59bd9 100755 --- a/keyboards/bm16s/config.h +++ b/keyboards/bm16s/config.h | |||
@@ -28,7 +28,7 @@ | |||
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | /* Set 0 if debouncing isn't needed */ | 30 | /* Set 0 if debouncing isn't needed */ |
31 | #define DEBOUNCING_DELAY 5 | 31 | #define DEBOUNCE 5 |
32 | 32 | ||
33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
34 | #define LOCKING_SUPPORT_ENABLE | 34 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/boardwalk/config.h b/keyboards/boardwalk/config.h index 67352b80d..774750208 100644 --- a/keyboards/boardwalk/config.h +++ b/keyboards/boardwalk/config.h | |||
@@ -50,7 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
50 | // #define BACKLIGHT_LEVELS 6 | 50 | // #define BACKLIGHT_LEVELS 6 |
51 | 51 | ||
52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
53 | #define DEBOUNCING_DELAY 5 | 53 | #define DEBOUNCE 5 |
54 | 54 | ||
55 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 55 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
56 | #define LOCKING_SUPPORT_ENABLE | 56 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/bpiphany/frosty_flake/config.h b/keyboards/bpiphany/frosty_flake/config.h index a797fef42..250a1b775 100644 --- a/keyboards/bpiphany/frosty_flake/config.h +++ b/keyboards/bpiphany/frosty_flake/config.h | |||
@@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
45 | #define UNUSED_PINS { B0, C4, D3 } | 45 | #define UNUSED_PINS { B0, C4, D3 } |
46 | 46 | ||
47 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 47 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
48 | #define DEBOUNCING_DELAY 5 | 48 | #define DEBOUNCE 5 |
49 | 49 | ||
50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
51 | #define LOCKING_SUPPORT_ENABLE | 51 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/bpiphany/frosty_flake/matrix.c b/keyboards/bpiphany/frosty_flake/matrix.c index 480e3455b..3c49e9c00 100644 --- a/keyboards/bpiphany/frosty_flake/matrix.c +++ b/keyboards/bpiphany/frosty_flake/matrix.c | |||
@@ -24,10 +24,10 @@ | |||
24 | #include "util.h" | 24 | #include "util.h" |
25 | #include "matrix.h" | 25 | #include "matrix.h" |
26 | 26 | ||
27 | #ifndef DEBOUNCING_DELAY | 27 | #ifndef DEBOUNCE |
28 | # define DEBOUNCING_DELAY 5 | 28 | # define DEBOUNCE 5 |
29 | #endif | 29 | #endif |
30 | static uint8_t debouncing = DEBOUNCING_DELAY; | 30 | static uint8_t debouncing = DEBOUNCE; |
31 | 31 | ||
32 | static matrix_row_t matrix[MATRIX_ROWS]; | 32 | static matrix_row_t matrix[MATRIX_ROWS]; |
33 | static matrix_row_t matrix_debouncing[MATRIX_ROWS]; | 33 | static matrix_row_t matrix_debouncing[MATRIX_ROWS]; |
@@ -111,7 +111,7 @@ uint8_t matrix_scan(void) { | |||
111 | bool curr_bit = col_scan & (1<<row); | 111 | bool curr_bit = col_scan & (1<<row); |
112 | if (prev_bit != curr_bit) { | 112 | if (prev_bit != curr_bit) { |
113 | matrix_debouncing[row] ^= ((matrix_row_t)1<<col); | 113 | matrix_debouncing[row] ^= ((matrix_row_t)1<<col); |
114 | debouncing = DEBOUNCING_DELAY; | 114 | debouncing = DEBOUNCE; |
115 | } | 115 | } |
116 | } | 116 | } |
117 | } | 117 | } |
diff --git a/keyboards/bpiphany/kitten_paw/config.h b/keyboards/bpiphany/kitten_paw/config.h index 5ecf6d8dd..89f104cfe 100644 --- a/keyboards/bpiphany/kitten_paw/config.h +++ b/keyboards/bpiphany/kitten_paw/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | // #define BACKLIGHT_LEVELS 3 | 53 | // #define BACKLIGHT_LEVELS 3 |
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 5 | 56 | #define DEBOUNCE 5 |
57 | 57 | ||
58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
59 | //#define MATRIX_HAS_GHOST | 59 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/bpiphany/kitten_paw/matrix.c b/keyboards/bpiphany/kitten_paw/matrix.c index 6fdbfffd6..b59089cdf 100644 --- a/keyboards/bpiphany/kitten_paw/matrix.c +++ b/keyboards/bpiphany/kitten_paw/matrix.c | |||
@@ -24,10 +24,10 @@ | |||
24 | #include "util.h" | 24 | #include "util.h" |
25 | #include "matrix.h" | 25 | #include "matrix.h" |
26 | 26 | ||
27 | #ifndef DEBOUNCING_DELAY | 27 | #ifndef DEBOUNCE |
28 | # define DEBOUNCING_DELAY 5 | 28 | # define DEBOUNCE 5 |
29 | #endif | 29 | #endif |
30 | static uint8_t debouncing = DEBOUNCING_DELAY; | 30 | static uint8_t debouncing = DEBOUNCE; |
31 | 31 | ||
32 | static matrix_row_t matrix[MATRIX_ROWS]; | 32 | static matrix_row_t matrix[MATRIX_ROWS]; |
33 | static matrix_row_t matrix_debouncing[MATRIX_ROWS]; | 33 | static matrix_row_t matrix_debouncing[MATRIX_ROWS]; |
@@ -98,7 +98,7 @@ uint8_t matrix_scan(void) { | |||
98 | bool curr_bit = rows & (1<<row); | 98 | bool curr_bit = rows & (1<<row); |
99 | if (prev_bit != curr_bit) { | 99 | if (prev_bit != curr_bit) { |
100 | matrix_debouncing[row] ^= ((matrix_row_t)1<<col); | 100 | matrix_debouncing[row] ^= ((matrix_row_t)1<<col); |
101 | debouncing = DEBOUNCING_DELAY; | 101 | debouncing = DEBOUNCE; |
102 | } | 102 | } |
103 | } | 103 | } |
104 | } | 104 | } |
diff --git a/keyboards/bpiphany/pegasushoof/config.h b/keyboards/bpiphany/pegasushoof/config.h index 885afaa90..cd89b7582 100644 --- a/keyboards/bpiphany/pegasushoof/config.h +++ b/keyboards/bpiphany/pegasushoof/config.h | |||
@@ -36,6 +36,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | #define DIODE_DIRECTION COL2ROW | 36 | #define DIODE_DIRECTION COL2ROW |
37 | 37 | ||
38 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 38 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
39 | #define DEBOUNCING_DELAY 5 | 39 | #define DEBOUNCE 5 |
40 | 40 | ||
41 | #endif | 41 | #endif |
diff --git a/keyboards/bpiphany/pegasushoof/matrix.c b/keyboards/bpiphany/pegasushoof/matrix.c index 127433875..a670d5382 100644 --- a/keyboards/bpiphany/pegasushoof/matrix.c +++ b/keyboards/bpiphany/pegasushoof/matrix.c | |||
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
26 | #include "util.h" | 26 | #include "util.h" |
27 | #include "matrix.h" | 27 | #include "matrix.h" |
28 | 28 | ||
29 | static uint8_t debouncing = DEBOUNCING_DELAY; | 29 | static uint8_t debouncing = DEBOUNCE; |
30 | static matrix_row_t matrix[MATRIX_ROWS]; | 30 | static matrix_row_t matrix[MATRIX_ROWS]; |
31 | static matrix_row_t matrix_debouncing[MATRIX_ROWS]; | 31 | static matrix_row_t matrix_debouncing[MATRIX_ROWS]; |
32 | 32 | ||
@@ -90,7 +90,7 @@ uint8_t matrix_scan(void) | |||
90 | bool curr_bit = rows & (1<<row); | 90 | bool curr_bit = rows & (1<<row); |
91 | if (prev_bit != curr_bit) { | 91 | if (prev_bit != curr_bit) { |
92 | matrix_debouncing[row] ^= (matrix_row_t) 1 << col; | 92 | matrix_debouncing[row] ^= (matrix_row_t) 1 << col; |
93 | debouncing = DEBOUNCING_DELAY; | 93 | debouncing = DEBOUNCE; |
94 | } | 94 | } |
95 | } | 95 | } |
96 | } | 96 | } |
diff --git a/keyboards/bpiphany/sixshooter/config.h b/keyboards/bpiphany/sixshooter/config.h index ed890d3c9..ade95cc19 100644 --- a/keyboards/bpiphany/sixshooter/config.h +++ b/keyboards/bpiphany/sixshooter/config.h | |||
@@ -32,7 +32,7 @@ | |||
32 | #define DIODE_DIRECTION COL2ROW | 32 | #define DIODE_DIRECTION COL2ROW |
33 | 33 | ||
34 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 34 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
35 | #define DEBOUNCING_DELAY 5 | 35 | #define DEBOUNCE 5 |
36 | 36 | ||
37 | /* | 37 | /* |
38 | * Force NKRO | 38 | * Force NKRO |
diff --git a/keyboards/bpiphany/tiger_lily/config.h b/keyboards/bpiphany/tiger_lily/config.h index de1d90127..1ab352ccb 100644 --- a/keyboards/bpiphany/tiger_lily/config.h +++ b/keyboards/bpiphany/tiger_lily/config.h | |||
@@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
45 | #define UNUSED_PINS { B0, C4, D3 } | 45 | #define UNUSED_PINS { B0, C4, D3 } |
46 | 46 | ||
47 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 47 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
48 | #define DEBOUNCING_DELAY 5 | 48 | #define DEBOUNCE 5 |
49 | 49 | ||
50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
51 | #define LOCKING_SUPPORT_ENABLE | 51 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/bpiphany/tiger_lily/matrix.c b/keyboards/bpiphany/tiger_lily/matrix.c index 3b48f6b36..47a92268c 100644 --- a/keyboards/bpiphany/tiger_lily/matrix.c +++ b/keyboards/bpiphany/tiger_lily/matrix.c | |||
@@ -24,10 +24,10 @@ | |||
24 | #include "util.h" | 24 | #include "util.h" |
25 | #include "matrix.h" | 25 | #include "matrix.h" |
26 | 26 | ||
27 | #ifndef DEBOUNCING_DELAY | 27 | #ifndef DEBOUNCE |
28 | # define DEBOUNCING_DELAY 5 | 28 | # define DEBOUNCE 5 |
29 | #endif | 29 | #endif |
30 | static uint8_t debouncing = DEBOUNCING_DELAY; | 30 | static uint8_t debouncing = DEBOUNCE; |
31 | 31 | ||
32 | static matrix_row_t matrix[MATRIX_ROWS]; | 32 | static matrix_row_t matrix[MATRIX_ROWS]; |
33 | static matrix_row_t matrix_debouncing[MATRIX_ROWS]; | 33 | static matrix_row_t matrix_debouncing[MATRIX_ROWS]; |
@@ -111,7 +111,7 @@ uint8_t matrix_scan(void) { | |||
111 | bool curr_bit = col_scan & (1<<row); | 111 | bool curr_bit = col_scan & (1<<row); |
112 | if (prev_bit != curr_bit) { | 112 | if (prev_bit != curr_bit) { |
113 | matrix_debouncing[row] ^= ((matrix_row_t)1<<col); | 113 | matrix_debouncing[row] ^= ((matrix_row_t)1<<col); |
114 | debouncing = DEBOUNCING_DELAY; | 114 | debouncing = DEBOUNCE; |
115 | } | 115 | } |
116 | } | 116 | } |
117 | } | 117 | } |
diff --git a/keyboards/bpiphany/unloved_bastard/config.h b/keyboards/bpiphany/unloved_bastard/config.h index fc5090e64..029cdb59e 100644 --- a/keyboards/bpiphany/unloved_bastard/config.h +++ b/keyboards/bpiphany/unloved_bastard/config.h | |||
@@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
33 | #define MATRIX_COLS 18 | 33 | #define MATRIX_COLS 18 |
34 | 34 | ||
35 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 35 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
36 | #define DEBOUNCING_DELAY 5 | 36 | #define DEBOUNCE 5 |
37 | 37 | ||
38 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 38 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
39 | //#define MATRIX_HAS_GHOST | 39 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/bpiphany/unloved_bastard/matrix.c b/keyboards/bpiphany/unloved_bastard/matrix.c index bb6de8613..328d9015c 100644 --- a/keyboards/bpiphany/unloved_bastard/matrix.c +++ b/keyboards/bpiphany/unloved_bastard/matrix.c | |||
@@ -43,10 +43,10 @@ __attribute__ ((weak)) | |||
43 | void matrix_scan_user(void) { | 43 | void matrix_scan_user(void) { |
44 | } | 44 | } |
45 | 45 | ||
46 | #ifndef DEBOUNCING_DELAY | 46 | #ifndef DEBOUNCE |
47 | # define DEBOUNCING_DELAY 5 | 47 | # define DEBOUNCE 5 |
48 | #endif | 48 | #endif |
49 | static uint8_t debouncing = DEBOUNCING_DELAY; | 49 | static uint8_t debouncing = DEBOUNCE; |
50 | 50 | ||
51 | static matrix_row_t matrix[MATRIX_ROWS]; | 51 | static matrix_row_t matrix[MATRIX_ROWS]; |
52 | static matrix_row_t matrix_debouncing[MATRIX_ROWS]; | 52 | static matrix_row_t matrix_debouncing[MATRIX_ROWS]; |
@@ -112,7 +112,7 @@ uint8_t matrix_scan(void) { | |||
112 | bool curr_bit = col_scan & (1<<row); | 112 | bool curr_bit = col_scan & (1<<row); |
113 | if (prev_bit != curr_bit) { | 113 | if (prev_bit != curr_bit) { |
114 | matrix_debouncing[row] ^= ((matrix_row_t)1<<col); | 114 | matrix_debouncing[row] ^= ((matrix_row_t)1<<col); |
115 | debouncing = DEBOUNCING_DELAY; | 115 | debouncing = DEBOUNCE; |
116 | } | 116 | } |
117 | } | 117 | } |
118 | } | 118 | } |
diff --git a/keyboards/bthlabs/geekpad/config.h b/keyboards/bthlabs/geekpad/config.h index 017bee184..c2b3dd303 100644 --- a/keyboards/bthlabs/geekpad/config.h +++ b/keyboards/bthlabs/geekpad/config.h | |||
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | // #endif | 62 | // #endif |
63 | 63 | ||
64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
65 | #define DEBOUNCING_DELAY 5 | 65 | #define DEBOUNCE 5 |
66 | 66 | ||
67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
68 | //#define MATRIX_HAS_GHOST | 68 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/butterstick/config.h b/keyboards/butterstick/config.h index 4c104deb2..90875d2ee 100644 --- a/keyboards/butterstick/config.h +++ b/keyboards/butterstick/config.h | |||
@@ -11,7 +11,7 @@ | |||
11 | #define DESCRIPTION Its a stick of butter | 11 | #define DESCRIPTION Its a stick of butter |
12 | #define VERSION "Paula Deen" | 12 | #define VERSION "Paula Deen" |
13 | 13 | ||
14 | #define DEBOUNCING_DELAY 5 | 14 | #define DEBOUNCE 5 |
15 | #define FORCE_NKRO | 15 | #define FORCE_NKRO |
16 | 16 | ||
17 | /* key matrix size */ | 17 | /* key matrix size */ |
@@ -23,4 +23,3 @@ | |||
23 | 23 | ||
24 | /* COL2ROW, ROW2COL*/ | 24 | /* COL2ROW, ROW2COL*/ |
25 | #define DIODE_DIRECTION ROW2COL | 25 | #define DIODE_DIRECTION ROW2COL |
26 | |||
diff --git a/keyboards/canoe/config.h b/keyboards/canoe/config.h index d552fee5b..cddb749dc 100644 --- a/keyboards/canoe/config.h +++ b/keyboards/canoe/config.h | |||
@@ -35,7 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
35 | #define UNUSED_PINS | 35 | #define UNUSED_PINS |
36 | 36 | ||
37 | #define DIODE_DIRECTION COL2ROW | 37 | #define DIODE_DIRECTION COL2ROW |
38 | #define DEBOUNCING_DELAY 5 | 38 | #define DEBOUNCE 5 |
39 | 39 | ||
40 | #define NO_BACKLIGHT_CLOCK | 40 | #define NO_BACKLIGHT_CLOCK |
41 | #define BACKLIGHT_LEVELS 1 | 41 | #define BACKLIGHT_LEVELS 1 |
diff --git a/keyboards/catch22/config.h b/keyboards/catch22/config.h index c5cf8233d..05c336a3f 100644 --- a/keyboards/catch22/config.h +++ b/keyboards/catch22/config.h | |||
@@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
39 | #define DIODE_DIRECTION COL2ROW | 39 | #define DIODE_DIRECTION COL2ROW |
40 | 40 | ||
41 | /* Set 0 if debouncing isn't needed */ | 41 | /* Set 0 if debouncing isn't needed */ |
42 | // #define DEBOUNCING_DELAY 0 | 42 | // #define DEBOUNCE 0 |
43 | 43 | ||
44 | /* key combination for command */ | 44 | /* key combination for command */ |
45 | #define IS_COMMAND() ( \ | 45 | #define IS_COMMAND() ( \ |
diff --git a/keyboards/christmas_tree/config.h b/keyboards/christmas_tree/config.h index 769a9e98b..66fccebdb 100644 --- a/keyboards/christmas_tree/config.h +++ b/keyboards/christmas_tree/config.h | |||
@@ -48,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
48 | #define BACKLIGHT_LEVELS 3 | 48 | #define BACKLIGHT_LEVELS 3 |
49 | 49 | ||
50 | /* Set 0 if debouncing isn't needed */ | 50 | /* Set 0 if debouncing isn't needed */ |
51 | #define DEBOUNCING_DELAY 5 | 51 | #define DEBOUNCE 5 |
52 | 52 | ||
53 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 53 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
54 | #define LOCKING_SUPPORT_ENABLE | 54 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/ckeys/handwire_101/config.h b/keyboards/ckeys/handwire_101/config.h index 40faec066..3dc99319e 100755 --- a/keyboards/ckeys/handwire_101/config.h +++ b/keyboards/ckeys/handwire_101/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | 53 | ||
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 5 | 56 | #define DEBOUNCE 5 |
57 | 57 | ||
58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
59 | //#define MATRIX_HAS_GHOST | 59 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/ckeys/nakey/config.h b/keyboards/ckeys/nakey/config.h index cd8b1aa32..add3a3522 100644 --- a/keyboards/ckeys/nakey/config.h +++ b/keyboards/ckeys/nakey/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/ckeys/obelus/config.h b/keyboards/ckeys/obelus/config.h index 8d3bfa3b6..4d7afc4f5 100644 --- a/keyboards/ckeys/obelus/config.h +++ b/keyboards/ckeys/obelus/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | #define BACKLIGHT_LEVELS 3 | 54 | #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/claw44/rev1/config.h b/keyboards/claw44/rev1/config.h index ba2ed4559..f3406fee5 100644 --- a/keyboards/claw44/rev1/config.h +++ b/keyboards/claw44/rev1/config.h | |||
@@ -43,7 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
43 | // #define BACKLIGHT_LEVELS 3 | 43 | // #define BACKLIGHT_LEVELS 3 |
44 | 44 | ||
45 | /* Set 0 if debouncing isn't needed */ | 45 | /* Set 0 if debouncing isn't needed */ |
46 | #define DEBOUNCING_DELAY 5 | 46 | #define DEBOUNCE 5 |
47 | 47 | ||
48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
49 | //#define LOCKING_SUPPORT_ENABLE | 49 | //#define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/clueboard/17/config.h b/keyboards/clueboard/17/config.h index 21728348d..b7e28cbb9 100644 --- a/keyboards/clueboard/17/config.h +++ b/keyboards/clueboard/17/config.h | |||
@@ -52,7 +52,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
52 | //#define MATRIX_HAS_GHOST | 52 | //#define MATRIX_HAS_GHOST |
53 | 53 | ||
54 | /* Set 0 if debouncing isn't needed */ | 54 | /* Set 0 if debouncing isn't needed */ |
55 | #define DEBOUNCING_DELAY 5 | 55 | #define DEBOUNCE 5 |
56 | 56 | ||
57 | /* Number of backlighting levels */ | 57 | /* Number of backlighting levels */ |
58 | #define BACKLIGHT_LEVELS 3 | 58 | #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/clueboard/2x1800/config.h b/keyboards/clueboard/2x1800/config.h index 62821f766..e343011f9 100644 --- a/keyboards/clueboard/2x1800/config.h +++ b/keyboards/clueboard/2x1800/config.h | |||
@@ -50,7 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
50 | #define DIODE_DIRECTION ROW2COL | 50 | #define DIODE_DIRECTION ROW2COL |
51 | 51 | ||
52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
53 | #define DEBOUNCING_DELAY 5 | 53 | #define DEBOUNCE 5 |
54 | 54 | ||
55 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 55 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
56 | //#define MATRIX_HAS_GHOST | 56 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/clueboard/66/rev1/config.h b/keyboards/clueboard/66/rev1/config.h index f8fb4bd35..9db64fbd4 100644 --- a/keyboards/clueboard/66/rev1/config.h +++ b/keyboards/clueboard/66/rev1/config.h | |||
@@ -25,7 +25,7 @@ | |||
25 | #define DIODE_DIRECTION COL2ROW | 25 | #define DIODE_DIRECTION COL2ROW |
26 | 26 | ||
27 | /* Set 0 if debouncing isn't needed */ | 27 | /* Set 0 if debouncing isn't needed */ |
28 | #define DEBOUNCING_DELAY 5 | 28 | #define DEBOUNCE 5 |
29 | 29 | ||
30 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 30 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
31 | #define LOCKING_SUPPORT_ENABLE | 31 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/clueboard/66/rev2/config.h b/keyboards/clueboard/66/rev2/config.h index 9227cd2df..f11cfe82f 100644 --- a/keyboards/clueboard/66/rev2/config.h +++ b/keyboards/clueboard/66/rev2/config.h | |||
@@ -24,7 +24,7 @@ | |||
24 | #define DIODE_DIRECTION COL2ROW | 24 | #define DIODE_DIRECTION COL2ROW |
25 | 25 | ||
26 | /* Set 0 if debouncing isn't needed */ | 26 | /* Set 0 if debouncing isn't needed */ |
27 | #define DEBOUNCING_DELAY 5 | 27 | #define DEBOUNCE 5 |
28 | 28 | ||
29 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 29 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
30 | #define LOCKING_SUPPORT_ENABLE | 30 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/clueboard/66/rev3/config.h b/keyboards/clueboard/66/rev3/config.h index ba646f157..bbbd82a1c 100644 --- a/keyboards/clueboard/66/rev3/config.h +++ b/keyboards/clueboard/66/rev3/config.h | |||
@@ -24,7 +24,7 @@ | |||
24 | #define DIODE_DIRECTION COL2ROW | 24 | #define DIODE_DIRECTION COL2ROW |
25 | 25 | ||
26 | /* Set 0 if debouncing isn't needed */ | 26 | /* Set 0 if debouncing isn't needed */ |
27 | #define DEBOUNCING_DELAY 5 | 27 | #define DEBOUNCE 5 |
28 | 28 | ||
29 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 29 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
30 | #define LOCKING_SUPPORT_ENABLE | 30 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/clueboard/66/rev4/config.h b/keyboards/clueboard/66/rev4/config.h index 540b38722..8ed140478 100644 --- a/keyboards/clueboard/66/rev4/config.h +++ b/keyboards/clueboard/66/rev4/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #define DIODE_DIRECTION COL2ROW | 30 | #define DIODE_DIRECTION COL2ROW |
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | 34 | ||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
36 | #define LOCKING_SUPPORT_ENABLE | 36 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/clueboard/66_hotswap/config.h b/keyboards/clueboard/66_hotswap/config.h index 2c265c947..b25686fa1 100644 --- a/keyboards/clueboard/66_hotswap/config.h +++ b/keyboards/clueboard/66_hotswap/config.h | |||
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
28 | #define DIODE_DIRECTION COL2ROW | 28 | #define DIODE_DIRECTION COL2ROW |
29 | 29 | ||
30 | /* Set 0 if debouncing isn't needed */ | 30 | /* Set 0 if debouncing isn't needed */ |
31 | #define DEBOUNCING_DELAY 5 | 31 | #define DEBOUNCE 5 |
32 | 32 | ||
33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
34 | #define LOCKING_SUPPORT_ENABLE | 34 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/clueboard/card/config.h b/keyboards/clueboard/card/config.h index 9520c31a6..9bf07f578 100644 --- a/keyboards/clueboard/card/config.h +++ b/keyboards/clueboard/card/config.h | |||
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
41 | #define DIODE_DIRECTION ROW2COL | 41 | #define DIODE_DIRECTION ROW2COL |
42 | 42 | ||
43 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 43 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
44 | #define DEBOUNCING_DELAY 20 | 44 | #define DEBOUNCE 20 |
45 | 45 | ||
46 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 46 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
47 | //#define MATRIX_HAS_GHOST | 47 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/contra/config.h b/keyboards/contra/config.h index 8e1369f12..b32d86865 100755 --- a/keyboards/contra/config.h +++ b/keyboards/contra/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | 34 | ||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
36 | #define LOCKING_SUPPORT_ENABLE | 36 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/converter/hp_46010a/config.h b/keyboards/converter/hp_46010a/config.h index f77ed4115..b7297ab88 100644 --- a/keyboards/converter/hp_46010a/config.h +++ b/keyboards/converter/hp_46010a/config.h | |||
@@ -30,6 +30,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
30 | #define MATRIX_COLS 8 | 30 | #define MATRIX_COLS 8 |
31 | 31 | ||
32 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 32 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | |||
35 | |||
diff --git a/keyboards/converter/hp_46010a/matrix.c b/keyboards/converter/hp_46010a/matrix.c index 2ca7d0357..ac9224087 100644 --- a/keyboards/converter/hp_46010a/matrix.c +++ b/keyboards/converter/hp_46010a/matrix.c | |||
@@ -34,18 +34,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
34 | #include "config.h" | 34 | #include "config.h" |
35 | 35 | ||
36 | 36 | ||
37 | #ifndef DEBOUNCING_DELAY | 37 | #ifndef DEBOUNCE |
38 | # define DEBOUNCING_DELAY 5 | 38 | # define DEBOUNCE 5 |
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | #if ( DEBOUNCING_DELAY > 0 ) | 41 | #if ( DEBOUNCE > 0 ) |
42 | static uint16_t debouncing_time ; | 42 | static uint16_t debouncing_time ; |
43 | static bool debouncing = false ; | 43 | static bool debouncing = false ; |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | static uint8_t matrix [MATRIX_ROWS] = {0}; | 46 | static uint8_t matrix [MATRIX_ROWS] = {0}; |
47 | 47 | ||
48 | #if ( DEBOUNCING_DELAY > 0 ) | 48 | #if ( DEBOUNCE > 0 ) |
49 | static uint8_t matrix_debounce_old [MATRIX_ROWS] = {0}; | 49 | static uint8_t matrix_debounce_old [MATRIX_ROWS] = {0}; |
50 | static uint8_t matrix_debounce_new [MATRIX_ROWS] = {0}; | 50 | static uint8_t matrix_debounce_new [MATRIX_ROWS] = {0}; |
51 | #endif | 51 | #endif |
@@ -172,7 +172,7 @@ uint8_t matrix_scan(void) { | |||
172 | // the first byte of the keyboard's output data can be ignored | 172 | // the first byte of the keyboard's output data can be ignored |
173 | Matrix_ThrowByte(); | 173 | Matrix_ThrowByte(); |
174 | 174 | ||
175 | #if ( DEBOUNCING_DELAY > 0 ) | 175 | #if ( DEBOUNCE > 0 ) |
176 | 176 | ||
177 | for ( uint8_t row = 0 ; row < MATRIX_ROWS ; ++row ) { | 177 | for ( uint8_t row = 0 ; row < MATRIX_ROWS ; ++row ) { |
178 | //transfer old debouncing values | 178 | //transfer old debouncing values |
@@ -194,8 +194,8 @@ uint8_t matrix_scan(void) { | |||
194 | #endif | 194 | #endif |
195 | 195 | ||
196 | 196 | ||
197 | #if ( DEBOUNCING_DELAY > 0 ) | 197 | #if ( DEBOUNCE > 0 ) |
198 | if ( debouncing && ( timer_elapsed( debouncing_time ) > DEBOUNCING_DELAY ) ) { | 198 | if ( debouncing && ( timer_elapsed( debouncing_time ) > DEBOUNCE ) ) { |
199 | 199 | ||
200 | for ( uint8_t row = 0 ; row < MATRIX_ROWS ; ++row ) { | 200 | for ( uint8_t row = 0 ; row < MATRIX_ROWS ; ++row ) { |
201 | matrix[row] = matrix_debounce_new[row] ; | 201 | matrix[row] = matrix_debounce_new[row] ; |
diff --git a/keyboards/converter/ibm_5291/config.h b/keyboards/converter/ibm_5291/config.h index 5c9ca1e4a..9701bdfe9 100644 --- a/keyboards/converter/ibm_5291/config.h +++ b/keyboards/converter/ibm_5291/config.h | |||
@@ -37,6 +37,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
37 | 37 | ||
38 | 38 | ||
39 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 39 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
40 | #define DEBOUNCING_DELAY 0 | 40 | #define DEBOUNCE 0 |
41 | |||
42 | |||
diff --git a/keyboards/converter/ibm_5291/matrix.c b/keyboards/converter/ibm_5291/matrix.c index 58f6e37b6..8b2dba7ab 100644 --- a/keyboards/converter/ibm_5291/matrix.c +++ b/keyboards/converter/ibm_5291/matrix.c | |||
@@ -33,8 +33,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
33 | #include "config.h" | 33 | #include "config.h" |
34 | 34 | ||
35 | 35 | ||
36 | #ifndef DEBOUNCING_DELAY | 36 | #ifndef DEBOUNCE |
37 | # define DEBOUNCING_DELAY 5 | 37 | # define DEBOUNCE 5 |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | #define print_matrix_header() print("\nr/c 01234567\n") | 40 | #define print_matrix_header() print("\nr/c 01234567\n") |
@@ -49,14 +49,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
49 | static const uint8_t row_pins [NUM_ROW_PINS] = MATRIX_ROW_PINS ; | 49 | static const uint8_t row_pins [NUM_ROW_PINS] = MATRIX_ROW_PINS ; |
50 | static const uint8_t col_pins [NUM_ROW_PINS] = MATRIX_COL_PINS ; | 50 | static const uint8_t col_pins [NUM_ROW_PINS] = MATRIX_COL_PINS ; |
51 | 51 | ||
52 | #if ( DEBOUNCING_DELAY > 0 ) | 52 | #if ( DEBOUNCE > 0 ) |
53 | static uint16_t debouncing_time ; | 53 | static uint16_t debouncing_time ; |
54 | static bool debouncing = false ; | 54 | static bool debouncing = false ; |
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | static uint8_t matrix [MATRIX_ROWS] = {0}; | 57 | static uint8_t matrix [MATRIX_ROWS] = {0}; |
58 | 58 | ||
59 | #if ( DEBOUNCING_DELAY > 0 ) | 59 | #if ( DEBOUNCE > 0 ) |
60 | static uint8_t matrix_debounce [MATRIX_ROWS] = {0}; | 60 | static uint8_t matrix_debounce [MATRIX_ROWS] = {0}; |
61 | #endif | 61 | #endif |
62 | 62 | ||
@@ -237,7 +237,7 @@ void matrix_init(void) { | |||
237 | // initialize matrix state: all keys off | 237 | // initialize matrix state: all keys off |
238 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { | 238 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { |
239 | matrix[i] = 0; | 239 | matrix[i] = 0; |
240 | # if (DEBOUNCING_DELAY > 0) | 240 | # if (DEBOUNCE > 0) |
241 | matrix_debounce [i] = 0; | 241 | matrix_debounce [i] = 0; |
242 | # endif | 242 | # endif |
243 | } | 243 | } |
@@ -247,7 +247,7 @@ void matrix_init(void) { | |||
247 | 247 | ||
248 | uint8_t matrix_scan(void) { | 248 | uint8_t matrix_scan(void) { |
249 | for ( uint8_t current_row = 0; current_row < MATRIX_ROWS; ++current_row ) { | 249 | for ( uint8_t current_row = 0; current_row < MATRIX_ROWS; ++current_row ) { |
250 | # if (DEBOUNCING_DELAY > 0) | 250 | # if (DEBOUNCE > 0) |
251 | bool matrix_changed = matrix_read(matrix_debounce, current_row); | 251 | bool matrix_changed = matrix_read(matrix_debounce, current_row); |
252 | 252 | ||
253 | if (matrix_changed) { | 253 | if (matrix_changed) { |
@@ -260,8 +260,8 @@ uint8_t matrix_scan(void) { | |||
260 | # endif | 260 | # endif |
261 | } | 261 | } |
262 | 262 | ||
263 | # if (DEBOUNCING_DELAY > 0) | 263 | # if (DEBOUNCE > 0) |
264 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 264 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
265 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { | 265 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { |
266 | matrix[i] = matrix_debounce[i]; | 266 | matrix[i] = matrix_debounce[i]; |
267 | } | 267 | } |
diff --git a/keyboards/converter/modelm101/config.h b/keyboards/converter/modelm101/config.h index 97b78614c..958b29b74 100644 --- a/keyboards/converter/modelm101/config.h +++ b/keyboards/converter/modelm101/config.h | |||
@@ -49,7 +49,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
49 | #define DIODE_DIRECTION ROW2COL | 49 | #define DIODE_DIRECTION ROW2COL |
50 | 50 | ||
51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed (5 is default) */ | 51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed (5 is default) */ |
52 | #define DEBOUNCING_DELAY 5 | 52 | #define DEBOUNCE 5 |
53 | 53 | ||
54 | /* | 54 | /* |
55 | * Magic Key Options | 55 | * Magic Key Options |
@@ -120,4 +120,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
120 | //#define NO_ACTION_TAPPING | 120 | //#define NO_ACTION_TAPPING |
121 | //#define NO_ACTION_ONESHOT | 121 | //#define NO_ACTION_ONESHOT |
122 | //#define NO_ACTION_MACRO | 122 | //#define NO_ACTION_MACRO |
123 | //#define NO_ACTION_FUNCTION \ No newline at end of file | 123 | //#define NO_ACTION_FUNCTION |
diff --git a/keyboards/converter/numeric_keypad_IIe/config.h b/keyboards/converter/numeric_keypad_IIe/config.h index 8cf0eaa40..a129e1210 100644 --- a/keyboards/converter/numeric_keypad_IIe/config.h +++ b/keyboards/converter/numeric_keypad_IIe/config.h | |||
@@ -52,10 +52,10 @@ Header Pins | |||
52 | Header / Matrix | 52 | Header / Matrix |
53 | --------------- | 53 | --------------- |
54 | 54 | ||
55 | Pin Name Description | 55 | Pin Name Description |
56 | -------------------------------------------------------------- | 56 | -------------------------------------------------------------- |
57 | 1,2,5,3,4,6 Y0-Y5 Y-direction key-matrix connections | 57 | 1,2,5,3,4,6 Y0-Y5 Y-direction key-matrix connections |
58 | 7 NC | 58 | 7 NC |
59 | 9,11,10,8 X4-X7 X-direction key-matrix connections | 59 | 9,11,10,8 X4-X7 X-direction key-matrix connections |
60 | 60 | ||
61 | 61 | ||
@@ -98,4 +98,4 @@ http://wiki.apple2.org/index.php?title=Pinouts#Apple_.2F.2Fe_Numeric_Keypad_conn | |||
98 | #define UNUSED_PINS | 98 | #define UNUSED_PINS |
99 | #define DIODE_DIRECTION COL2ROW | 99 | #define DIODE_DIRECTION COL2ROW |
100 | #define SOFT_SERIAL_PIN D0 | 100 | #define SOFT_SERIAL_PIN D0 |
101 | #define DEBOUNCING_DELAY 5 | 101 | #define DEBOUNCE 5 |
diff --git a/keyboards/coseyfannitutti/mullet/config.h b/keyboards/coseyfannitutti/mullet/config.h index 527294e51..2025cb433 100644 --- a/keyboards/coseyfannitutti/mullet/config.h +++ b/keyboards/coseyfannitutti/mullet/config.h | |||
@@ -63,7 +63,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
63 | #endif | 63 | #endif |
64 | 64 | ||
65 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 65 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
66 | #define DEBOUNCING_DELAY 5 | 66 | #define DEBOUNCE 5 |
67 | 67 | ||
68 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 68 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
69 | //#define MATRIX_HAS_GHOST | 69 | //#define MATRIX_HAS_GHOST |
@@ -169,4 +169,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
169 | #define LCD_E_PIN 1 //< pin for Enable line | 169 | #define LCD_E_PIN 1 //< pin for Enable line |
170 | #endif | 170 | #endif |
171 | */ | 171 | */ |
172 | |||
diff --git a/keyboards/coseyfannitutti/mulletpad/config.h b/keyboards/coseyfannitutti/mulletpad/config.h index ad5941055..2174d6492 100644 --- a/keyboards/coseyfannitutti/mulletpad/config.h +++ b/keyboards/coseyfannitutti/mulletpad/config.h | |||
@@ -63,7 +63,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
63 | //#endif | 63 | //#endif |
64 | 64 | ||
65 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 65 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
66 | #define DEBOUNCING_DELAY 5 | 66 | #define DEBOUNCE 5 |
67 | 67 | ||
68 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 68 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
69 | //#define MATRIX_HAS_GHOST | 69 | //#define MATRIX_HAS_GHOST |
@@ -169,4 +169,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
169 | #define LCD_E_PIN 1 //< pin for Enable line | 169 | #define LCD_E_PIN 1 //< pin for Enable line |
170 | #endif | 170 | #endif |
171 | */ | 171 | */ |
172 | |||
diff --git a/keyboards/cospad/config.h b/keyboards/cospad/config.h index b7e7ec384..9844f2724 100644 --- a/keyboards/cospad/config.h +++ b/keyboards/cospad/config.h | |||
@@ -58,7 +58,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
58 | #define RGBLIGHT_ANIMATIONS | 58 | #define RGBLIGHT_ANIMATIONS |
59 | 59 | ||
60 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 60 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
61 | #define DEBOUNCING_DELAY 5 | 61 | #define DEBOUNCE 5 |
62 | 62 | ||
63 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 63 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
64 | //#define MATRIX_HAS_GHOST | 64 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/crawlpad/config.h b/keyboards/crawlpad/config.h index a6d7ac214..d51ad1744 100755 --- a/keyboards/crawlpad/config.h +++ b/keyboards/crawlpad/config.h | |||
@@ -26,7 +26,7 @@ | |||
26 | #define DIODE_DIRECTION ROW2COL | 26 | #define DIODE_DIRECTION ROW2COL |
27 | 27 | ||
28 | /* Set 0 if debouncing isn't needed */ | 28 | /* Set 0 if debouncing isn't needed */ |
29 | #define DEBOUNCING_DELAY 5 | 29 | #define DEBOUNCE 5 |
30 | 30 | ||
31 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 31 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
32 | #define LOCKING_SUPPORT_ENABLE | 32 | #define LOCKING_SUPPORT_ENABLE |
@@ -44,4 +44,3 @@ | |||
44 | #define RGBLIGHT_ANIMATIONS | 44 | #define RGBLIGHT_ANIMATIONS |
45 | #define RGBLED_NUM 3 | 45 | #define RGBLED_NUM 3 |
46 | #endif | 46 | #endif |
47 | |||
diff --git a/keyboards/crkbd/rev1/config.h b/keyboards/crkbd/rev1/config.h index 6564c8503..4ea8ff38c 100644 --- a/keyboards/crkbd/rev1/config.h +++ b/keyboards/crkbd/rev1/config.h | |||
@@ -43,7 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
43 | // #define BACKLIGHT_LEVELS 3 | 43 | // #define BACKLIGHT_LEVELS 3 |
44 | 44 | ||
45 | /* Set 0 if debouncing isn't needed */ | 45 | /* Set 0 if debouncing isn't needed */ |
46 | #define DEBOUNCING_DELAY 5 | 46 | #define DEBOUNCE 5 |
47 | 47 | ||
48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
49 | //#define LOCKING_SUPPORT_ENABLE | 49 | //#define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/cu24/config.h b/keyboards/cu24/config.h index 1de9d33cb..7bb49816b 100644 --- a/keyboards/cu24/config.h +++ b/keyboards/cu24/config.h | |||
@@ -47,7 +47,7 @@ | |||
47 | 47 | ||
48 | /* COL2ROW, ROW2COL*/ | 48 | /* COL2ROW, ROW2COL*/ |
49 | #define DIODE_DIRECTION ROW2COL | 49 | #define DIODE_DIRECTION ROW2COL |
50 | 50 | ||
51 | /* Backlight */ | 51 | /* Backlight */ |
52 | #define BACKLIGHT_PIN B5 | 52 | #define BACKLIGHT_PIN B5 |
53 | #define BACKLIGHT_BREATHING | 53 | #define BACKLIGHT_BREATHING |
@@ -59,7 +59,7 @@ | |||
59 | #define RGBLIGHT_ANIMATIONS | 59 | #define RGBLIGHT_ANIMATIONS |
60 | 60 | ||
61 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 61 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
62 | #define DEBOUNCING_DELAY 5 | 62 | #define DEBOUNCE 5 |
63 | 63 | ||
64 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 64 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
65 | //#define MATRIX_HAS_GHOST | 65 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/cu75/config.h b/keyboards/cu75/config.h index baaed33e6..e01f947a0 100644 --- a/keyboards/cu75/config.h +++ b/keyboards/cu75/config.h | |||
@@ -42,7 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
42 | #define RGBLIGHT_VAL_STEP 17 | 42 | #define RGBLIGHT_VAL_STEP 17 |
43 | 43 | ||
44 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 44 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
45 | #define DEBOUNCING_DELAY 5 | 45 | #define DEBOUNCE 5 |
46 | 46 | ||
47 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 47 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
48 | //#define MATRIX_HAS_GHOST | 48 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/daisy/config.h b/keyboards/daisy/config.h index f397d28da..567a215a6 100644 --- a/keyboards/daisy/config.h +++ b/keyboards/daisy/config.h | |||
@@ -31,12 +31,12 @@ | |||
31 | 31 | ||
32 | /* COL2ROW, ROW2COL*/ | 32 | /* COL2ROW, ROW2COL*/ |
33 | #define DIODE_DIRECTION COL2ROW | 33 | #define DIODE_DIRECTION COL2ROW |
34 | 34 | ||
35 | #define BACKLIGHT_PIN D0 | 35 | #define BACKLIGHT_PIN D0 |
36 | #define BACKLIGHT_LEVELS 6 | 36 | #define BACKLIGHT_LEVELS 6 |
37 | 37 | ||
38 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 38 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
39 | #define DEBOUNCING_DELAY 5 | 39 | #define DEBOUNCE 5 |
40 | 40 | ||
41 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 41 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
42 | //#define MATRIX_HAS_GHOST | 42 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/dc01/arrow/config.h b/keyboards/dc01/arrow/config.h index e58967ac0..801dbb54d 100644 --- a/keyboards/dc01/arrow/config.h +++ b/keyboards/dc01/arrow/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | // #define BACKLIGHT_LEVELS 3 | 53 | // #define BACKLIGHT_LEVELS 3 |
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 5 | 56 | #define DEBOUNCE 5 |
57 | 57 | ||
58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
59 | //#define MATRIX_HAS_GHOST | 59 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/dc01/arrow/matrix.c b/keyboards/dc01/arrow/matrix.c index dd5e2ee9c..1823138c3 100644 --- a/keyboards/dc01/arrow/matrix.c +++ b/keyboards/dc01/arrow/matrix.c | |||
@@ -36,11 +36,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | 36 | ||
37 | /* Set 0 if debouncing isn't needed */ | 37 | /* Set 0 if debouncing isn't needed */ |
38 | 38 | ||
39 | #ifndef DEBOUNCING_DELAY | 39 | #ifndef DEBOUNCE |
40 | # define DEBOUNCING_DELAY 5 | 40 | # define DEBOUNCE 5 |
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | #if (DEBOUNCING_DELAY > 0) | 43 | #if (DEBOUNCE > 0) |
44 | static uint16_t debouncing_time; | 44 | static uint16_t debouncing_time; |
45 | static bool debouncing = false; | 45 | static bool debouncing = false; |
46 | #endif | 46 | #endif |
@@ -155,7 +155,7 @@ uint8_t matrix_scan(void) | |||
155 | 155 | ||
156 | // Set row, read cols | 156 | // Set row, read cols |
157 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { | 157 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { |
158 | # if (DEBOUNCING_DELAY > 0) | 158 | # if (DEBOUNCE > 0) |
159 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); | 159 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); |
160 | 160 | ||
161 | if (matrix_changed) { | 161 | if (matrix_changed) { |
@@ -173,7 +173,7 @@ uint8_t matrix_scan(void) | |||
173 | 173 | ||
174 | // Set col, read rows | 174 | // Set col, read rows |
175 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { | 175 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { |
176 | # if (DEBOUNCING_DELAY > 0) | 176 | # if (DEBOUNCE > 0) |
177 | bool matrix_changed = read_rows_on_col(matrix_debouncing, current_col); | 177 | bool matrix_changed = read_rows_on_col(matrix_debouncing, current_col); |
178 | if (matrix_changed) { | 178 | if (matrix_changed) { |
179 | debouncing = true; | 179 | debouncing = true; |
@@ -187,8 +187,8 @@ uint8_t matrix_scan(void) | |||
187 | 187 | ||
188 | #endif | 188 | #endif |
189 | 189 | ||
190 | # if (DEBOUNCING_DELAY > 0) | 190 | # if (DEBOUNCE > 0) |
191 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 191 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
192 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { | 192 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { |
193 | matrix[i] = matrix_debouncing[i]; | 193 | matrix[i] = matrix_debouncing[i]; |
194 | } | 194 | } |
@@ -209,7 +209,7 @@ uint8_t matrix_scan(void) | |||
209 | 209 | ||
210 | bool matrix_is_modified(void) | 210 | bool matrix_is_modified(void) |
211 | { | 211 | { |
212 | #if (DEBOUNCING_DELAY > 0) | 212 | #if (DEBOUNCE > 0) |
213 | if (debouncing) return false; | 213 | if (debouncing) return false; |
214 | #endif | 214 | #endif |
215 | return true; | 215 | return true; |
diff --git a/keyboards/dc01/left/config.h b/keyboards/dc01/left/config.h index 3f5137312..26ad41a05 100644 --- a/keyboards/dc01/left/config.h +++ b/keyboards/dc01/left/config.h | |||
@@ -56,7 +56,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
56 | // #define BACKLIGHT_LEVELS 3 | 56 | // #define BACKLIGHT_LEVELS 3 |
57 | 57 | ||
58 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 58 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
59 | #define DEBOUNCING_DELAY 5 | 59 | #define DEBOUNCE 5 |
60 | 60 | ||
61 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 61 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
62 | //#define MATRIX_HAS_GHOST | 62 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/dc01/left/matrix.c b/keyboards/dc01/left/matrix.c index a3db220e4..0e7b591f8 100644 --- a/keyboards/dc01/left/matrix.c +++ b/keyboards/dc01/left/matrix.c | |||
@@ -42,11 +42,11 @@ static uint8_t error_count_arrow = 0; | |||
42 | 42 | ||
43 | /* Set 0 if debouncing isn't needed */ | 43 | /* Set 0 if debouncing isn't needed */ |
44 | 44 | ||
45 | #ifndef DEBOUNCING_DELAY | 45 | #ifndef DEBOUNCE |
46 | # define DEBOUNCING_DELAY 5 | 46 | # define DEBOUNCE 5 |
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | #if (DEBOUNCING_DELAY > 0) | 49 | #if (DEBOUNCE > 0) |
50 | static uint16_t debouncing_time; | 50 | static uint16_t debouncing_time; |
51 | static bool debouncing = false; | 51 | static bool debouncing = false; |
52 | #endif | 52 | #endif |
@@ -169,7 +169,7 @@ uint8_t matrix_scan(void) | |||
169 | 169 | ||
170 | // Set row, read cols | 170 | // Set row, read cols |
171 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { | 171 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { |
172 | # if (DEBOUNCING_DELAY > 0) | 172 | # if (DEBOUNCE > 0) |
173 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); | 173 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); |
174 | 174 | ||
175 | if (matrix_changed) { | 175 | if (matrix_changed) { |
@@ -187,7 +187,7 @@ uint8_t matrix_scan(void) | |||
187 | 187 | ||
188 | // Set col, read rows | 188 | // Set col, read rows |
189 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { | 189 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { |
190 | # if (DEBOUNCING_DELAY > 0) | 190 | # if (DEBOUNCE > 0) |
191 | bool matrix_changed = read_rows_on_col(matrix_debouncing, current_col); | 191 | bool matrix_changed = read_rows_on_col(matrix_debouncing, current_col); |
192 | if (matrix_changed) { | 192 | if (matrix_changed) { |
193 | debouncing = true; | 193 | debouncing = true; |
@@ -201,8 +201,8 @@ uint8_t matrix_scan(void) | |||
201 | 201 | ||
202 | #endif | 202 | #endif |
203 | 203 | ||
204 | # if (DEBOUNCING_DELAY > 0) | 204 | # if (DEBOUNCE > 0) |
205 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 205 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
206 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { | 206 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { |
207 | matrix[i] = matrix_debouncing[i]; | 207 | matrix[i] = matrix_debouncing[i]; |
208 | } | 208 | } |
@@ -249,7 +249,7 @@ uint8_t matrix_scan(void) | |||
249 | 249 | ||
250 | bool matrix_is_modified(void) | 250 | bool matrix_is_modified(void) |
251 | { | 251 | { |
252 | #if (DEBOUNCING_DELAY > 0) | 252 | #if (DEBOUNCE > 0) |
253 | if (debouncing) return false; | 253 | if (debouncing) return false; |
254 | #endif | 254 | #endif |
255 | return true; | 255 | return true; |
diff --git a/keyboards/dc01/numpad/config.h b/keyboards/dc01/numpad/config.h index a8a244554..2e91cfdd9 100644 --- a/keyboards/dc01/numpad/config.h +++ b/keyboards/dc01/numpad/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | // #define BACKLIGHT_LEVELS 3 | 53 | // #define BACKLIGHT_LEVELS 3 |
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 5 | 56 | #define DEBOUNCE 5 |
57 | 57 | ||
58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
59 | //#define MATRIX_HAS_GHOST | 59 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/dc01/numpad/matrix.c b/keyboards/dc01/numpad/matrix.c index 5a13f3ff2..f8b725adc 100644 --- a/keyboards/dc01/numpad/matrix.c +++ b/keyboards/dc01/numpad/matrix.c | |||
@@ -36,11 +36,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | 36 | ||
37 | /* Set 0 if debouncing isn't needed */ | 37 | /* Set 0 if debouncing isn't needed */ |
38 | 38 | ||
39 | #ifndef DEBOUNCING_DELAY | 39 | #ifndef DEBOUNCE |
40 | # define DEBOUNCING_DELAY 5 | 40 | # define DEBOUNCE 5 |
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | #if (DEBOUNCING_DELAY > 0) | 43 | #if (DEBOUNCE > 0) |
44 | static uint16_t debouncing_time; | 44 | static uint16_t debouncing_time; |
45 | static bool debouncing = false; | 45 | static bool debouncing = false; |
46 | #endif | 46 | #endif |
@@ -155,7 +155,7 @@ uint8_t matrix_scan(void) | |||
155 | 155 | ||
156 | // Set row, read cols | 156 | // Set row, read cols |
157 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { | 157 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { |
158 | # if (DEBOUNCING_DELAY > 0) | 158 | # if (DEBOUNCE > 0) |
159 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); | 159 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); |
160 | 160 | ||
161 | if (matrix_changed) { | 161 | if (matrix_changed) { |
@@ -173,7 +173,7 @@ uint8_t matrix_scan(void) | |||
173 | 173 | ||
174 | // Set col, read rows | 174 | // Set col, read rows |
175 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { | 175 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { |
176 | # if (DEBOUNCING_DELAY > 0) | 176 | # if (DEBOUNCE > 0) |
177 | bool matrix_changed = read_rows_on_col(matrix_debouncing, current_col); | 177 | bool matrix_changed = read_rows_on_col(matrix_debouncing, current_col); |
178 | if (matrix_changed) { | 178 | if (matrix_changed) { |
179 | debouncing = true; | 179 | debouncing = true; |
@@ -187,8 +187,8 @@ uint8_t matrix_scan(void) | |||
187 | 187 | ||
188 | #endif | 188 | #endif |
189 | 189 | ||
190 | # if (DEBOUNCING_DELAY > 0) | 190 | # if (DEBOUNCE > 0) |
191 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 191 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
192 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { | 192 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { |
193 | matrix[i] = matrix_debouncing[i]; | 193 | matrix[i] = matrix_debouncing[i]; |
194 | } | 194 | } |
@@ -209,7 +209,7 @@ uint8_t matrix_scan(void) | |||
209 | 209 | ||
210 | bool matrix_is_modified(void) | 210 | bool matrix_is_modified(void) |
211 | { | 211 | { |
212 | #if (DEBOUNCING_DELAY > 0) | 212 | #if (DEBOUNCE > 0) |
213 | if (debouncing) return false; | 213 | if (debouncing) return false; |
214 | #endif | 214 | #endif |
215 | return true; | 215 | return true; |
diff --git a/keyboards/dc01/right/config.h b/keyboards/dc01/right/config.h index 4933f5829..bbffb7814 100644 --- a/keyboards/dc01/right/config.h +++ b/keyboards/dc01/right/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | // #define BACKLIGHT_LEVELS 3 | 53 | // #define BACKLIGHT_LEVELS 3 |
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 5 | 56 | #define DEBOUNCE 5 |
57 | 57 | ||
58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
59 | //#define MATRIX_HAS_GHOST | 59 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/dc01/right/matrix.c b/keyboards/dc01/right/matrix.c index 6d981797c..6ec3a3b72 100644 --- a/keyboards/dc01/right/matrix.c +++ b/keyboards/dc01/right/matrix.c | |||
@@ -36,11 +36,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | 36 | ||
37 | /* Set 0 if debouncing isn't needed */ | 37 | /* Set 0 if debouncing isn't needed */ |
38 | 38 | ||
39 | #ifndef DEBOUNCING_DELAY | 39 | #ifndef DEBOUNCE |
40 | # define DEBOUNCING_DELAY 5 | 40 | # define DEBOUNCE 5 |
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | #if (DEBOUNCING_DELAY > 0) | 43 | #if (DEBOUNCE > 0) |
44 | static uint16_t debouncing_time; | 44 | static uint16_t debouncing_time; |
45 | static bool debouncing = false; | 45 | static bool debouncing = false; |
46 | #endif | 46 | #endif |
@@ -155,7 +155,7 @@ uint8_t matrix_scan(void) | |||
155 | 155 | ||
156 | // Set row, read cols | 156 | // Set row, read cols |
157 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { | 157 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { |
158 | # if (DEBOUNCING_DELAY > 0) | 158 | # if (DEBOUNCE > 0) |
159 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); | 159 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); |
160 | 160 | ||
161 | if (matrix_changed) { | 161 | if (matrix_changed) { |
@@ -173,7 +173,7 @@ uint8_t matrix_scan(void) | |||
173 | 173 | ||
174 | // Set col, read rows | 174 | // Set col, read rows |
175 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { | 175 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { |
176 | # if (DEBOUNCING_DELAY > 0) | 176 | # if (DEBOUNCE > 0) |
177 | bool matrix_changed = read_rows_on_col(matrix_debouncing, current_col); | 177 | bool matrix_changed = read_rows_on_col(matrix_debouncing, current_col); |
178 | if (matrix_changed) { | 178 | if (matrix_changed) { |
179 | debouncing = true; | 179 | debouncing = true; |
@@ -187,8 +187,8 @@ uint8_t matrix_scan(void) | |||
187 | 187 | ||
188 | #endif | 188 | #endif |
189 | 189 | ||
190 | # if (DEBOUNCING_DELAY > 0) | 190 | # if (DEBOUNCE > 0) |
191 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 191 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
192 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { | 192 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { |
193 | matrix[i] = matrix_debouncing[i]; | 193 | matrix[i] = matrix_debouncing[i]; |
194 | } | 194 | } |
@@ -209,7 +209,7 @@ uint8_t matrix_scan(void) | |||
209 | 209 | ||
210 | bool matrix_is_modified(void) | 210 | bool matrix_is_modified(void) |
211 | { | 211 | { |
212 | #if (DEBOUNCING_DELAY > 0) | 212 | #if (DEBOUNCE > 0) |
213 | if (debouncing) return false; | 213 | if (debouncing) return false; |
214 | #endif | 214 | #endif |
215 | return true; | 215 | return true; |
diff --git a/keyboards/deltasplit75/matrix.c b/keyboards/deltasplit75/matrix.c index 1ac5c5039..28198d89b 100644 --- a/keyboards/deltasplit75/matrix.c +++ b/keyboards/deltasplit75/matrix.c | |||
@@ -37,11 +37,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
37 | # include "serial.h" | 37 | # include "serial.h" |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | #ifndef DEBOUNCING_DELAY | 40 | #ifndef DEBOUNCE |
41 | # define DEBOUNCING_DELAY 5 | 41 | # define DEBOUNCE 5 |
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | #if (DEBOUNCING_DELAY > 0) | 44 | #if (DEBOUNCE > 0) |
45 | static uint16_t debouncing_time; | 45 | static uint16_t debouncing_time; |
46 | static bool debouncing = false; | 46 | static bool debouncing = false; |
47 | #endif | 47 | #endif |
@@ -140,7 +140,7 @@ uint8_t _matrix_scan(void) | |||
140 | #if (DIODE_DIRECTION == COL2ROW) | 140 | #if (DIODE_DIRECTION == COL2ROW) |
141 | // Set row, read cols | 141 | // Set row, read cols |
142 | for (uint8_t current_row = 0; current_row < ROWS_PER_HAND; current_row++) { | 142 | for (uint8_t current_row = 0; current_row < ROWS_PER_HAND; current_row++) { |
143 | # if (DEBOUNCING_DELAY > 0) | 143 | # if (DEBOUNCE > 0) |
144 | bool matrix_changed = read_cols_on_row(matrix_debouncing+offset, current_row); | 144 | bool matrix_changed = read_cols_on_row(matrix_debouncing+offset, current_row); |
145 | 145 | ||
146 | if (matrix_changed) { | 146 | if (matrix_changed) { |
@@ -157,7 +157,7 @@ uint8_t _matrix_scan(void) | |||
157 | #elif (DIODE_DIRECTION == ROW2COL) | 157 | #elif (DIODE_DIRECTION == ROW2COL) |
158 | // Set col, read rows | 158 | // Set col, read rows |
159 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { | 159 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { |
160 | # if (DEBOUNCING_DELAY > 0) | 160 | # if (DEBOUNCE > 0) |
161 | bool matrix_changed = read_rows_on_col(matrix_debouncing+offset, current_col); | 161 | bool matrix_changed = read_rows_on_col(matrix_debouncing+offset, current_col); |
162 | if (matrix_changed) { | 162 | if (matrix_changed) { |
163 | debouncing = true; | 163 | debouncing = true; |
@@ -170,8 +170,8 @@ uint8_t _matrix_scan(void) | |||
170 | } | 170 | } |
171 | #endif | 171 | #endif |
172 | 172 | ||
173 | # if (DEBOUNCING_DELAY > 0) | 173 | # if (DEBOUNCE > 0) |
174 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 174 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
175 | for (uint8_t i = 0; i < ROWS_PER_HAND; i++) { | 175 | for (uint8_t i = 0; i < ROWS_PER_HAND; i++) { |
176 | matrix[i+offset] = matrix_debouncing[i+offset]; | 176 | matrix[i+offset] = matrix_debouncing[i+offset]; |
177 | } | 177 | } |
diff --git a/keyboards/deltasplit75/v2/config.h b/keyboards/deltasplit75/v2/config.h index fc85f9125..6a2e48f4f 100644 --- a/keyboards/deltasplit75/v2/config.h +++ b/keyboards/deltasplit75/v2/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | // #define BACKLIGHT_LEVELS 3 | 47 | // #define BACKLIGHT_LEVELS 3 |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
53 | #define LOCKING_SUPPORT_ENABLE | 53 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/diverge3/config.h b/keyboards/diverge3/config.h index aa9f52fcb..a593bca9d 100644 --- a/keyboards/diverge3/config.h +++ b/keyboards/diverge3/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | #define BACKLIGHT_LEVELS 5 | 54 | #define BACKLIGHT_LEVELS 5 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* serial.c configuration for split keyboard */ | 59 | /* serial.c configuration for split keyboard */ |
60 | #define SOFT_SERIAL_PIN D0 | 60 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/divergetm2/config.h b/keyboards/divergetm2/config.h index 2cdc315de..8ad948676 100644 --- a/keyboards/divergetm2/config.h +++ b/keyboards/divergetm2/config.h | |||
@@ -49,7 +49,7 @@ | |||
49 | #define DIODE_DIRECTION ROW2COL | 49 | #define DIODE_DIRECTION ROW2COL |
50 | 50 | ||
51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
52 | #define DEBOUNCING_DELAY 5 | 52 | #define DEBOUNCE 5 |
53 | 53 | ||
54 | /* number of backlight levels */ | 54 | /* number of backlight levels */ |
55 | 55 | ||
diff --git a/keyboards/dk60/config.h b/keyboards/dk60/config.h index 9df384740..6a69516cb 100644 --- a/keyboards/dk60/config.h +++ b/keyboards/dk60/config.h | |||
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
41 | #define DIODE_DIRECTION COL2ROW | 41 | #define DIODE_DIRECTION COL2ROW |
42 | 42 | ||
43 | /* Set 0 if debouncing isn't needed */ | 43 | /* Set 0 if debouncing isn't needed */ |
44 | #define DEBOUNCING_DELAY 5 | 44 | #define DEBOUNCE 5 |
45 | 45 | ||
46 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 46 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
47 | #define LOCKING_SUPPORT_ENABLE | 47 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/do60/config.h b/keyboards/do60/config.h index 74d27de39..82e818328 100644 --- a/keyboards/do60/config.h +++ b/keyboards/do60/config.h | |||
@@ -55,7 +55,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
55 | #define DIODE_DIRECTION COL2ROW | 55 | #define DIODE_DIRECTION COL2ROW |
56 | 56 | ||
57 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 57 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
58 | #define DEBOUNCING_DELAY 5 | 58 | #define DEBOUNCE 5 |
59 | 59 | ||
60 | /* RGB Underglow | 60 | /* RGB Underglow |
61 | * F5 PIN for DO60's pre-soldered WS2812 LEDs | 61 | * F5 PIN for DO60's pre-soldered WS2812 LEDs |
diff --git a/keyboards/donutcables/budget96/config.h b/keyboards/donutcables/budget96/config.h index 74661d828..75aacb4d4 100644 --- a/keyboards/donutcables/budget96/config.h +++ b/keyboards/donutcables/budget96/config.h | |||
@@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
34 | #define UNUSED_PINS | 34 | #define UNUSED_PINS |
35 | 35 | ||
36 | #define DIODE_DIRECTION COL2ROW | 36 | #define DIODE_DIRECTION COL2ROW |
37 | #define DEBOUNCING_DELAY 5 | 37 | #define DEBOUNCE 5 |
38 | 38 | ||
39 | #define NO_BACKLIGHT_CLOCK | 39 | #define NO_BACKLIGHT_CLOCK |
40 | #define BACKLIGHT_LEVELS 1 | 40 | #define BACKLIGHT_LEVELS 1 |
diff --git a/keyboards/donutcables/scrabblepad/config.h b/keyboards/donutcables/scrabblepad/config.h index bf3d3db72..d6490349e 100644 --- a/keyboards/donutcables/scrabblepad/config.h +++ b/keyboards/donutcables/scrabblepad/config.h | |||
@@ -61,7 +61,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
61 | //#define RGBLIGHT_VAL_STEP 12 // units to step when in/decreasing value (brightness) | 61 | //#define RGBLIGHT_VAL_STEP 12 // units to step when in/decreasing value (brightness) |
62 | 62 | ||
63 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 63 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
64 | #define DEBOUNCING_DELAY 5 | 64 | #define DEBOUNCE 5 |
65 | 65 | ||
66 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 66 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
67 | //#define MATRIX_HAS_GHOST | 67 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/doro67/rgb/config.h b/keyboards/doro67/rgb/config.h index 87a30e084..16dc4fc0a 100644 --- a/keyboards/doro67/rgb/config.h +++ b/keyboards/doro67/rgb/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | // The number of LEDs connected | 53 | // The number of LEDs connected |
54 | #define DRIVER_LED_TOTAL 67 | 54 | #define DRIVER_LED_TOTAL 67 |
55 | 55 | ||
56 | #define RGB_MATRIX_KEYPRESSES | 56 | #define RGB_MATRIX_KEYPRESSES |
57 | 57 | ||
58 | /* | 58 | /* |
59 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | 59 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. |
@@ -63,7 +63,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
63 | #define RGBLED_NUM 67 | 63 | #define RGBLED_NUM 67 |
64 | 64 | ||
65 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 65 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
66 | #define DEBOUNCING_DELAY 5 | 66 | #define DEBOUNCE 5 |
67 | 67 | ||
68 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 68 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
69 | #define LOCKING_SUPPORT_ENABLE | 69 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/dozen0/config.h b/keyboards/dozen0/config.h index 6b0f8525a..9ea2c1795 100644 --- a/keyboards/dozen0/config.h +++ b/keyboards/dozen0/config.h | |||
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | // #endif | 62 | // #endif |
63 | 63 | ||
64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
65 | #define DEBOUNCING_DELAY 5 | 65 | #define DEBOUNCE 5 |
66 | 66 | ||
67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
68 | //#define MATRIX_HAS_GHOST | 68 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/duck/eagle_viper/v2/config.h b/keyboards/duck/eagle_viper/v2/config.h index a0ce866cc..e328b1ee2 100644 --- a/keyboards/duck/eagle_viper/v2/config.h +++ b/keyboards/duck/eagle_viper/v2/config.h | |||
@@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
34 | #define DIODE_DIRECTION COL2ROW | 34 | #define DIODE_DIRECTION COL2ROW |
35 | 35 | ||
36 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 36 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
37 | #define DEBOUNCING_DELAY 5 | 37 | #define DEBOUNCE 5 |
38 | 38 | ||
39 | /* number of backlight levels */ | 39 | /* number of backlight levels */ |
40 | #define BACKLIGHT_LEVELS 3 | 40 | #define BACKLIGHT_LEVELS 3 |
@@ -48,4 +48,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
48 | #define BOOTMAGIC_LITE_COLUMN 10 | 48 | #define BOOTMAGIC_LITE_COLUMN 10 |
49 | 49 | ||
50 | #define TAPPING_TERM 200 | 50 | #define TAPPING_TERM 200 |
51 | |||
diff --git a/keyboards/duck/eagle_viper/v2/matrix.c b/keyboards/duck/eagle_viper/v2/matrix.c index b705ae49f..0964493ac 100644 --- a/keyboards/duck/eagle_viper/v2/matrix.c +++ b/keyboards/duck/eagle_viper/v2/matrix.c | |||
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
22 | #include "print.h" | 22 | #include "print.h" |
23 | #include "debug.h" | 23 | #include "debug.h" |
24 | 24 | ||
25 | static uint8_t debouncing = DEBOUNCING_DELAY; | 25 | static uint8_t debouncing = DEBOUNCE; |
26 | 26 | ||
27 | /* matrix state(1:on, 0:off) */ | 27 | /* matrix state(1:on, 0:off) */ |
28 | static matrix_row_t matrix[MATRIX_ROWS]; | 28 | static matrix_row_t matrix[MATRIX_ROWS]; |
@@ -92,7 +92,7 @@ uint8_t matrix_scan(void) { | |||
92 | if (debouncing) { | 92 | if (debouncing) { |
93 | dprint("bounce!: "); dprintf("%02X", debouncing); dprintln(); | 93 | dprint("bounce!: "); dprintf("%02X", debouncing); dprintln(); |
94 | } | 94 | } |
95 | debouncing = DEBOUNCING_DELAY; | 95 | debouncing = DEBOUNCE; |
96 | } | 96 | } |
97 | } | 97 | } |
98 | unselect_cols(); | 98 | unselect_cols(); |
diff --git a/keyboards/duck/jetfire/config.h b/keyboards/duck/jetfire/config.h index 774e28491..f616bc238 100644 --- a/keyboards/duck/jetfire/config.h +++ b/keyboards/duck/jetfire/config.h | |||
@@ -46,7 +46,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
46 | // #endif | 46 | // #endif |
47 | 47 | ||
48 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 48 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
49 | #define DEBOUNCING_DELAY 5 | 49 | #define DEBOUNCE 5 |
50 | 50 | ||
51 | /* Set to top left most key */ | 51 | /* Set to top left most key */ |
52 | #define BOOTMAGIC_LITE_ROW 5 | 52 | #define BOOTMAGIC_LITE_ROW 5 |
diff --git a/keyboards/duck/jetfire/matrix.c b/keyboards/duck/jetfire/matrix.c index 51202aeb6..2dd94a72a 100644 --- a/keyboards/duck/jetfire/matrix.c +++ b/keyboards/duck/jetfire/matrix.c | |||
@@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
21 | #include "util.h" | 21 | #include "util.h" |
22 | #include "matrix.h" | 22 | #include "matrix.h" |
23 | 23 | ||
24 | static uint8_t debouncing = DEBOUNCING_DELAY; | 24 | static uint8_t debouncing = DEBOUNCE; |
25 | 25 | ||
26 | /* matrix state(1:on, 0:off) */ | 26 | /* matrix state(1:on, 0:off) */ |
27 | static matrix_row_t matrix[MATRIX_ROWS]; | 27 | static matrix_row_t matrix[MATRIX_ROWS]; |
@@ -97,7 +97,7 @@ uint8_t matrix_scan(void) | |||
97 | if (debouncing) { | 97 | if (debouncing) { |
98 | dprint("bounce!: "); dprintf("%02X", debouncing); dprintln(); | 98 | dprint("bounce!: "); dprintf("%02X", debouncing); dprintln(); |
99 | } | 99 | } |
100 | debouncing = DEBOUNCING_DELAY; | 100 | debouncing = DEBOUNCE; |
101 | } | 101 | } |
102 | } | 102 | } |
103 | unselect_cols(); | 103 | unselect_cols(); |
diff --git a/keyboards/duck/lightsaver/config.h b/keyboards/duck/lightsaver/config.h index d302fb395..5bb4e6faf 100644 --- a/keyboards/duck/lightsaver/config.h +++ b/keyboards/duck/lightsaver/config.h | |||
@@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
34 | #define DIODE_DIRECTION COL2ROW | 34 | #define DIODE_DIRECTION COL2ROW |
35 | 35 | ||
36 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 36 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
37 | #define DEBOUNCING_DELAY 5 | 37 | #define DEBOUNCE 5 |
38 | 38 | ||
39 | /* number of backlight levels */ | 39 | /* number of backlight levels */ |
40 | #define BACKLIGHT_LEVELS 1 | 40 | #define BACKLIGHT_LEVELS 1 |
@@ -48,4 +48,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
48 | #define BOOTMAGIC_LITE_COLUMN 10 | 48 | #define BOOTMAGIC_LITE_COLUMN 10 |
49 | 49 | ||
50 | #define TAPPING_TERM 200 | 50 | #define TAPPING_TERM 200 |
51 | |||
diff --git a/keyboards/duck/lightsaver/matrix.c b/keyboards/duck/lightsaver/matrix.c index 543205c0b..066452724 100644 --- a/keyboards/duck/lightsaver/matrix.c +++ b/keyboards/duck/lightsaver/matrix.c | |||
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
22 | #include "print.h" | 22 | #include "print.h" |
23 | #include "debug.h" | 23 | #include "debug.h" |
24 | 24 | ||
25 | static uint8_t debouncing = DEBOUNCING_DELAY; | 25 | static uint8_t debouncing = DEBOUNCE; |
26 | 26 | ||
27 | /* matrix state(1:on, 0:off) */ | 27 | /* matrix state(1:on, 0:off) */ |
28 | static matrix_row_t matrix[MATRIX_ROWS]; | 28 | static matrix_row_t matrix[MATRIX_ROWS]; |
@@ -90,7 +90,7 @@ uint8_t matrix_scan(void) { | |||
90 | if (debouncing) { | 90 | if (debouncing) { |
91 | dprint("bounce!: "); dprintf("%02X", debouncing); dprintln(); | 91 | dprint("bounce!: "); dprintf("%02X", debouncing); dprintln(); |
92 | } | 92 | } |
93 | debouncing = DEBOUNCING_DELAY; | 93 | debouncing = DEBOUNCE; |
94 | } | 94 | } |
95 | } | 95 | } |
96 | unselect_cols(); | 96 | unselect_cols(); |
diff --git a/keyboards/duck/octagon/v1/config.h b/keyboards/duck/octagon/v1/config.h index d818cb622..45e87de4b 100644 --- a/keyboards/duck/octagon/v1/config.h +++ b/keyboards/duck/octagon/v1/config.h | |||
@@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
34 | #define DIODE_DIRECTION COL2ROW | 34 | #define DIODE_DIRECTION COL2ROW |
35 | 35 | ||
36 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 36 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
37 | #define DEBOUNCING_DELAY 5 | 37 | #define DEBOUNCE 5 |
38 | 38 | ||
39 | /* number of backlight levels */ | 39 | /* number of backlight levels */ |
40 | #define BACKLIGHT_LEVELS 1 | 40 | #define BACKLIGHT_LEVELS 1 |
diff --git a/keyboards/duck/octagon/v1/matrix.c b/keyboards/duck/octagon/v1/matrix.c index 233404ed3..a2bea865b 100644 --- a/keyboards/duck/octagon/v1/matrix.c +++ b/keyboards/duck/octagon/v1/matrix.c | |||
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
22 | #include "print.h" | 22 | #include "print.h" |
23 | #include "debug.h" | 23 | #include "debug.h" |
24 | 24 | ||
25 | static uint8_t debouncing = DEBOUNCING_DELAY; | 25 | static uint8_t debouncing = DEBOUNCE; |
26 | 26 | ||
27 | /* matrix state(1:on, 0:off) */ | 27 | /* matrix state(1:on, 0:off) */ |
28 | static matrix_row_t matrix[MATRIX_ROWS]; | 28 | static matrix_row_t matrix[MATRIX_ROWS]; |
@@ -87,7 +87,7 @@ uint8_t matrix_scan(void) { | |||
87 | if (debouncing) { | 87 | if (debouncing) { |
88 | dprint("bounce!: "); dprintf("%02X", debouncing); dprintln(); | 88 | dprint("bounce!: "); dprintf("%02X", debouncing); dprintln(); |
89 | } | 89 | } |
90 | debouncing = DEBOUNCING_DELAY; | 90 | debouncing = DEBOUNCE; |
91 | } | 91 | } |
92 | } | 92 | } |
93 | unselect_cols(); | 93 | unselect_cols(); |
diff --git a/keyboards/duck/octagon/v2/config.h b/keyboards/duck/octagon/v2/config.h index 4aab587f6..82b0c8a99 100644 --- a/keyboards/duck/octagon/v2/config.h +++ b/keyboards/duck/octagon/v2/config.h | |||
@@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
34 | #define DIODE_DIRECTION COL2ROW | 34 | #define DIODE_DIRECTION COL2ROW |
35 | 35 | ||
36 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 36 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
37 | #define DEBOUNCING_DELAY 5 | 37 | #define DEBOUNCE 5 |
38 | 38 | ||
39 | /* number of backlight levels */ | 39 | /* number of backlight levels */ |
40 | #define BACKLIGHT_LEVELS 1 | 40 | #define BACKLIGHT_LEVELS 1 |
@@ -48,4 +48,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
48 | #define BOOTMAGIC_LITE_COLUMN 10 | 48 | #define BOOTMAGIC_LITE_COLUMN 10 |
49 | 49 | ||
50 | #define TAPPING_TERM 200 | 50 | #define TAPPING_TERM 200 |
51 | |||
diff --git a/keyboards/duck/octagon/v2/matrix.c b/keyboards/duck/octagon/v2/matrix.c index e6e7046b4..25d1e45b0 100644 --- a/keyboards/duck/octagon/v2/matrix.c +++ b/keyboards/duck/octagon/v2/matrix.c | |||
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
22 | #include "print.h" | 22 | #include "print.h" |
23 | #include "debug.h" | 23 | #include "debug.h" |
24 | 24 | ||
25 | static uint8_t debouncing = DEBOUNCING_DELAY; | 25 | static uint8_t debouncing = DEBOUNCE; |
26 | 26 | ||
27 | /* matrix state(1:on, 0:off) */ | 27 | /* matrix state(1:on, 0:off) */ |
28 | static matrix_row_t matrix[MATRIX_ROWS]; | 28 | static matrix_row_t matrix[MATRIX_ROWS]; |
@@ -92,7 +92,7 @@ uint8_t matrix_scan(void) { | |||
92 | if (debouncing) { | 92 | if (debouncing) { |
93 | dprint("bounce!: "); dprintf("%02X", debouncing); dprintln(); | 93 | dprint("bounce!: "); dprintf("%02X", debouncing); dprintln(); |
94 | } | 94 | } |
95 | debouncing = DEBOUNCING_DELAY; | 95 | debouncing = DEBOUNCE; |
96 | } | 96 | } |
97 | } | 97 | } |
98 | unselect_cols(); | 98 | unselect_cols(); |
diff --git a/keyboards/dz60/config.h b/keyboards/dz60/config.h index 46702adcd..8d66c3584 100644 --- a/keyboards/dz60/config.h +++ b/keyboards/dz60/config.h | |||
@@ -28,7 +28,7 @@ | |||
28 | #define BACKLIGHT_LEVELS 5 | 28 | #define BACKLIGHT_LEVELS 5 |
29 | 29 | ||
30 | /* Set 0 if debouncing isn't needed */ | 30 | /* Set 0 if debouncing isn't needed */ |
31 | #define DEBOUNCING_DELAY 5 | 31 | #define DEBOUNCE 5 |
32 | 32 | ||
33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
34 | #define LOCKING_SUPPORT_ENABLE | 34 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/dz60/keymaps/LEdiodes/config.h b/keyboards/dz60/keymaps/LEdiodes/config.h index 6cdc4a91e..196d05c53 100644 --- a/keyboards/dz60/keymaps/LEdiodes/config.h +++ b/keyboards/dz60/keymaps/LEdiodes/config.h | |||
@@ -28,7 +28,7 @@ | |||
28 | #define BACKLIGHT_LEVELS 5 | 28 | #define BACKLIGHT_LEVELS 5 |
29 | 29 | ||
30 | /* Set 0 if debouncing isn't needed */ | 30 | /* Set 0 if debouncing isn't needed */ |
31 | #define DEBOUNCING_DELAY 5 | 31 | #define DEBOUNCE 5 |
32 | 32 | ||
33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
34 | #define LOCKING_SUPPORT_ENABLE | 34 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/eco/config.h b/keyboards/eco/config.h index f5820eafc..a6ae1821a 100644 --- a/keyboards/eco/config.h +++ b/keyboards/eco/config.h | |||
@@ -38,7 +38,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
38 | //#define MATRIX_HAS_GHOST | 38 | //#define MATRIX_HAS_GHOST |
39 | 39 | ||
40 | /* Set 0 if debouncing isn't needed */ | 40 | /* Set 0 if debouncing isn't needed */ |
41 | #define DEBOUNCING_DELAY 5 | 41 | #define DEBOUNCE 5 |
42 | 42 | ||
43 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 43 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
44 | #define LOCKING_SUPPORT_ENABLE | 44 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/ep/40/config.h b/keyboards/ep/40/config.h index b7f99a3b7..c954882b8 100644 --- a/keyboards/ep/40/config.h +++ b/keyboards/ep/40/config.h | |||
@@ -48,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
48 | #define DIODE_DIRECTION COL2ROW | 48 | #define DIODE_DIRECTION COL2ROW |
49 | 49 | ||
50 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 50 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
51 | #define DEBOUNCING_DELAY 5 | 51 | #define DEBOUNCE 5 |
52 | 52 | ||
53 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 53 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
54 | //#define MATRIX_HAS_GHOST | 54 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/ep/96/config.h b/keyboards/ep/96/config.h index 152b04b62..22d406fd5 100644 --- a/keyboards/ep/96/config.h +++ b/keyboards/ep/96/config.h | |||
@@ -51,7 +51,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
51 | // #endif | 51 | // #endif |
52 | 52 | ||
53 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 53 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
54 | #define DEBOUNCING_DELAY 5 | 54 | #define DEBOUNCE 5 |
55 | 55 | ||
56 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 56 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
57 | //#define MATRIX_HAS_GHOST | 57 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/ergo42/matrix.c b/keyboards/ergo42/matrix.c index fc42dd14d..328d16c77 100644 --- a/keyboards/ergo42/matrix.c +++ b/keyboards/ergo42/matrix.c | |||
@@ -37,11 +37,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
37 | # include "serial.h" | 37 | # include "serial.h" |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | #ifndef DEBOUNCING_DELAY | 40 | #ifndef DEBOUNCE |
41 | # define DEBOUNCING_DELAY 5 | 41 | # define DEBOUNCE 5 |
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | #if (DEBOUNCING_DELAY > 0) | 44 | #if (DEBOUNCE > 0) |
45 | static uint16_t debouncing_time; | 45 | static uint16_t debouncing_time; |
46 | static bool debouncing = false; | 46 | static bool debouncing = false; |
47 | #endif | 47 | #endif |
@@ -145,7 +145,7 @@ uint8_t _matrix_scan(void) | |||
145 | #if (DIODE_DIRECTION == COL2ROW) | 145 | #if (DIODE_DIRECTION == COL2ROW) |
146 | // Set row, read cols | 146 | // Set row, read cols |
147 | for (uint8_t current_row = 0; current_row < ROWS_PER_HAND; current_row++) { | 147 | for (uint8_t current_row = 0; current_row < ROWS_PER_HAND; current_row++) { |
148 | # if (DEBOUNCING_DELAY > 0) | 148 | # if (DEBOUNCE > 0) |
149 | bool matrix_changed = read_cols_on_row(matrix_debouncing+offset, current_row); | 149 | bool matrix_changed = read_cols_on_row(matrix_debouncing+offset, current_row); |
150 | 150 | ||
151 | if (matrix_changed) { | 151 | if (matrix_changed) { |
@@ -162,7 +162,7 @@ uint8_t _matrix_scan(void) | |||
162 | #elif (DIODE_DIRECTION == ROW2COL) | 162 | #elif (DIODE_DIRECTION == ROW2COL) |
163 | // Set col, read rows | 163 | // Set col, read rows |
164 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { | 164 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { |
165 | # if (DEBOUNCING_DELAY > 0) | 165 | # if (DEBOUNCE > 0) |
166 | bool matrix_changed = read_rows_on_col(matrix_debouncing+offset, current_col); | 166 | bool matrix_changed = read_rows_on_col(matrix_debouncing+offset, current_col); |
167 | if (matrix_changed) { | 167 | if (matrix_changed) { |
168 | debouncing = true; | 168 | debouncing = true; |
@@ -175,8 +175,8 @@ uint8_t _matrix_scan(void) | |||
175 | } | 175 | } |
176 | #endif | 176 | #endif |
177 | 177 | ||
178 | # if (DEBOUNCING_DELAY > 0) | 178 | # if (DEBOUNCE > 0) |
179 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 179 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
180 | for (uint8_t i = 0; i < ROWS_PER_HAND; i++) { | 180 | for (uint8_t i = 0; i < ROWS_PER_HAND; i++) { |
181 | matrix[i+offset] = matrix_debouncing[i+offset]; | 181 | matrix[i+offset] = matrix_debouncing[i+offset]; |
182 | } | 182 | } |
diff --git a/keyboards/ergo42/rev1/config.h b/keyboards/ergo42/rev1/config.h index f9d909cc7..68a5e2bbe 100644 --- a/keyboards/ergo42/rev1/config.h +++ b/keyboards/ergo42/rev1/config.h | |||
@@ -52,7 +52,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
52 | // #define BACKLIGHT_LEVELS 3 | 52 | // #define BACKLIGHT_LEVELS 3 |
53 | 53 | ||
54 | /* Set 0 if debouncing isn't needed */ | 54 | /* Set 0 if debouncing isn't needed */ |
55 | #define DEBOUNCING_DELAY 5 | 55 | #define DEBOUNCE 5 |
56 | 56 | ||
57 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 57 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
58 | #define LOCKING_SUPPORT_ENABLE | 58 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/ergodash/mini/config.h b/keyboards/ergodash/mini/config.h index cac1bba6f..2fa51dcc1 100644 --- a/keyboards/ergodash/mini/config.h +++ b/keyboards/ergodash/mini/config.h | |||
@@ -55,7 +55,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | /* Set 0 if debouncing isn't needed */ | 57 | /* Set 0 if debouncing isn't needed */ |
58 | #define DEBOUNCING_DELAY 5 | 58 | #define DEBOUNCE 5 |
59 | 59 | ||
60 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 60 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
61 | #define LOCKING_SUPPORT_ENABLE | 61 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/ergodash/rev1/config.h b/keyboards/ergodash/rev1/config.h index 5b7d85688..52f81e4ac 100644 --- a/keyboards/ergodash/rev1/config.h +++ b/keyboards/ergodash/rev1/config.h | |||
@@ -55,7 +55,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | /* Set 0 if debouncing isn't needed */ | 57 | /* Set 0 if debouncing isn't needed */ |
58 | #define DEBOUNCING_DELAY 5 | 58 | #define DEBOUNCE 5 |
59 | 59 | ||
60 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 60 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
61 | #define LOCKING_SUPPORT_ENABLE | 61 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/ergoinu/config.h b/keyboards/ergoinu/config.h index a59e5da74..dfc8a5293 100644 --- a/keyboards/ergoinu/config.h +++ b/keyboards/ergoinu/config.h | |||
@@ -57,7 +57,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
57 | // #define BACKLIGHT_LEVELS 3 | 57 | // #define BACKLIGHT_LEVELS 3 |
58 | 58 | ||
59 | /* Set 0 if debouncing isn't needed */ | 59 | /* Set 0 if debouncing isn't needed */ |
60 | #define DEBOUNCING_DELAY 5 | 60 | #define DEBOUNCE 5 |
61 | 61 | ||
62 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 62 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
63 | //#define LOCKING_SUPPORT_ENABLE | 63 | //#define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/ergotravel/rev1/config.h b/keyboards/ergotravel/rev1/config.h index 1d8a60afd..89045666b 100644 --- a/keyboards/ergotravel/rev1/config.h +++ b/keyboards/ergotravel/rev1/config.h | |||
@@ -44,7 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
44 | // #define BACKLIGHT_LEVELS 3 | 44 | // #define BACKLIGHT_LEVELS 3 |
45 | 45 | ||
46 | /* Set 0 if debouncing isn't needed */ | 46 | /* Set 0 if debouncing isn't needed */ |
47 | #define DEBOUNCING_DELAY 5 | 47 | #define DEBOUNCE 5 |
48 | 48 | ||
49 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 49 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
50 | #define LOCKING_SUPPORT_ENABLE | 50 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/espectro/config.h b/keyboards/espectro/config.h index 438530c41..2736c1d88 100755 --- a/keyboards/espectro/config.h +++ b/keyboards/espectro/config.h | |||
@@ -43,7 +43,7 @@ | |||
43 | #define BACKLIGHT_LEVELS 5 | 43 | #define BACKLIGHT_LEVELS 5 |
44 | 44 | ||
45 | /* Set 0 if debouncing isn't needed */ | 45 | /* Set 0 if debouncing isn't needed */ |
46 | #define DEBOUNCING_DELAY 5 | 46 | #define DEBOUNCE 5 |
47 | 47 | ||
48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
49 | #define LOCKING_SUPPORT_ENABLE | 49 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/evil80/config.h b/keyboards/evil80/config.h index 6bb286146..ae507c74f 100644 --- a/keyboards/evil80/config.h +++ b/keyboards/evil80/config.h | |||
@@ -32,7 +32,7 @@ | |||
32 | #define BACKLIGHT_LEVELS 3 | 32 | #define BACKLIGHT_LEVELS 3 |
33 | 33 | ||
34 | /* Set 0 if debouncing isn't needed */ | 34 | /* Set 0 if debouncing isn't needed */ |
35 | #define DEBOUNCING_DELAY 5 | 35 | #define DEBOUNCE 5 |
36 | 36 | ||
37 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 37 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
38 | #define LOCKING_SUPPORT_ENABLE | 38 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/exclusive/e6v2/le/config.h b/keyboards/exclusive/e6v2/le/config.h index 580929ba8..6477d5364 100644 --- a/keyboards/exclusive/e6v2/le/config.h +++ b/keyboards/exclusive/e6v2/le/config.h | |||
@@ -54,6 +54,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | #endif | 54 | #endif |
55 | 55 | ||
56 | #define DIODE_DIRECTION COL2ROW | 56 | #define DIODE_DIRECTION COL2ROW |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | #endif | 59 | #endif |
diff --git a/keyboards/exclusive/e6v2/oe/config.h b/keyboards/exclusive/e6v2/oe/config.h index 0bb89eba6..9206916d3 100644 --- a/keyboards/exclusive/e6v2/oe/config.h +++ b/keyboards/exclusive/e6v2/oe/config.h | |||
@@ -54,6 +54,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | #endif | 54 | #endif |
55 | 55 | ||
56 | #define DIODE_DIRECTION COL2ROW | 56 | #define DIODE_DIRECTION COL2ROW |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | #endif | 59 | #endif |
diff --git a/keyboards/exclusive/e7v1/config.h b/keyboards/exclusive/e7v1/config.h index eacb3ba31..689d7e862 100644 --- a/keyboards/exclusive/e7v1/config.h +++ b/keyboards/exclusive/e7v1/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/facew/config.h b/keyboards/facew/config.h index b4fb0d4cd..239783f8b 100644 --- a/keyboards/facew/config.h +++ b/keyboards/facew/config.h | |||
@@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
34 | #define UNUSED_PINS | 34 | #define UNUSED_PINS |
35 | 35 | ||
36 | #define DIODE_DIRECTION COL2ROW | 36 | #define DIODE_DIRECTION COL2ROW |
37 | #define DEBOUNCING_DELAY 5 | 37 | #define DEBOUNCE 5 |
38 | 38 | ||
39 | #define NO_BACKLIGHT_CLOCK | 39 | #define NO_BACKLIGHT_CLOCK |
40 | #define BACKLIGHT_LEVELS 1 | 40 | #define BACKLIGHT_LEVELS 1 |
diff --git a/keyboards/fc660c/config.h b/keyboards/fc660c/config.h index fe9c69517..e55896e6c 100644 --- a/keyboards/fc660c/config.h +++ b/keyboards/fc660c/config.h | |||
@@ -44,7 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
44 | // #define BACKLIGHT_PIN B7 | 44 | // #define BACKLIGHT_PIN B7 |
45 | 45 | ||
46 | /* Set 0 if debouncing isn't needed */ | 46 | /* Set 0 if debouncing isn't needed */ |
47 | #define DEBOUNCING_DELAY 0 | 47 | #define DEBOUNCE 0 |
48 | #define TAPPING_TERM 175 | 48 | #define TAPPING_TERM 175 |
49 | 49 | ||
50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
diff --git a/keyboards/fc980c/config.h b/keyboards/fc980c/config.h index b46bdfd55..f9d3e06d6 100644 --- a/keyboards/fc980c/config.h +++ b/keyboards/fc980c/config.h | |||
@@ -48,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
48 | // #define BACKLIGHT_PIN B7 | 48 | // #define BACKLIGHT_PIN B7 |
49 | 49 | ||
50 | /* Set 0 if debouncing isn't needed */ | 50 | /* Set 0 if debouncing isn't needed */ |
51 | #define DEBOUNCING_DELAY 0 | 51 | #define DEBOUNCE 0 |
52 | #define TAPPING_TERM 175 | 52 | #define TAPPING_TERM 175 |
53 | 53 | ||
54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
diff --git a/keyboards/felix/config.h b/keyboards/felix/config.h index 0e5dd9d2d..0dd8eea07 100644 --- a/keyboards/felix/config.h +++ b/keyboards/felix/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #define BACKLIGHT_LEVELS 5 | 29 | #define BACKLIGHT_LEVELS 5 |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/fleuron/config.h b/keyboards/fleuron/config.h index 8e1d27436..0236bc3b6 100644 --- a/keyboards/fleuron/config.h +++ b/keyboards/fleuron/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/fortitude60/matrix.c b/keyboards/fortitude60/matrix.c index 565f417d8..9037d53a6 100644 --- a/keyboards/fortitude60/matrix.c +++ b/keyboards/fortitude60/matrix.c | |||
@@ -38,11 +38,11 @@ extern backlight_config_t backlight_config; | |||
38 | 38 | ||
39 | #include "serial.h" | 39 | #include "serial.h" |
40 | 40 | ||
41 | #ifndef DEBOUNCING_DELAY | 41 | #ifndef DEBOUNCE |
42 | # define DEBOUNCING_DELAY 5 | 42 | # define DEBOUNCE 5 |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | #if (DEBOUNCING_DELAY > 0) | 45 | #if (DEBOUNCE > 0) |
46 | static uint16_t debouncing_time; | 46 | static uint16_t debouncing_time; |
47 | static bool debouncing = false; | 47 | static bool debouncing = false; |
48 | #endif | 48 | #endif |
@@ -144,7 +144,7 @@ uint8_t _matrix_scan(void) | |||
144 | #if (DIODE_DIRECTION == COL2ROW) | 144 | #if (DIODE_DIRECTION == COL2ROW) |
145 | // Set row, read cols | 145 | // Set row, read cols |
146 | for (uint8_t current_row = 0; current_row < ROWS_PER_HAND; current_row++) { | 146 | for (uint8_t current_row = 0; current_row < ROWS_PER_HAND; current_row++) { |
147 | # if (DEBOUNCING_DELAY > 0) | 147 | # if (DEBOUNCE > 0) |
148 | bool matrix_changed = read_cols_on_row(matrix_debouncing+offset, current_row); | 148 | bool matrix_changed = read_cols_on_row(matrix_debouncing+offset, current_row); |
149 | 149 | ||
150 | if (matrix_changed) { | 150 | if (matrix_changed) { |
@@ -161,7 +161,7 @@ uint8_t _matrix_scan(void) | |||
161 | #elif (DIODE_DIRECTION == ROW2COL) | 161 | #elif (DIODE_DIRECTION == ROW2COL) |
162 | // Set col, read rows | 162 | // Set col, read rows |
163 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { | 163 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { |
164 | # if (DEBOUNCING_DELAY > 0) | 164 | # if (DEBOUNCE > 0) |
165 | bool matrix_changed = read_rows_on_col(matrix_debouncing+offset, current_col); | 165 | bool matrix_changed = read_rows_on_col(matrix_debouncing+offset, current_col); |
166 | if (matrix_changed) { | 166 | if (matrix_changed) { |
167 | debouncing = true; | 167 | debouncing = true; |
@@ -174,8 +174,8 @@ uint8_t _matrix_scan(void) | |||
174 | } | 174 | } |
175 | #endif | 175 | #endif |
176 | 176 | ||
177 | # if (DEBOUNCING_DELAY > 0) | 177 | # if (DEBOUNCE > 0) |
178 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 178 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
179 | for (uint8_t i = 0; i < ROWS_PER_HAND; i++) { | 179 | for (uint8_t i = 0; i < ROWS_PER_HAND; i++) { |
180 | matrix[i+offset] = matrix_debouncing[i+offset]; | 180 | matrix[i+offset] = matrix_debouncing[i+offset]; |
181 | } | 181 | } |
diff --git a/keyboards/fortitude60/rev1/config.h b/keyboards/fortitude60/rev1/config.h index 2fa179ae2..ad4407a11 100644 --- a/keyboards/fortitude60/rev1/config.h +++ b/keyboards/fortitude60/rev1/config.h | |||
@@ -51,7 +51,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | /* Set 0 if debouncing isn't needed */ | 53 | /* Set 0 if debouncing isn't needed */ |
54 | #define DEBOUNCING_DELAY 5 | 54 | #define DEBOUNCE 5 |
55 | 55 | ||
56 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 56 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
57 | #define LOCKING_SUPPORT_ENABLE | 57 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/four_banger/config.h b/keyboards/four_banger/config.h index 4567cec8e..8e0738e6d 100644 --- a/keyboards/four_banger/config.h +++ b/keyboards/four_banger/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | 34 | ||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
36 | #define LOCKING_SUPPORT_ENABLE | 36 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/foxlab/leaf60/hotswap/config.h b/keyboards/foxlab/leaf60/hotswap/config.h index a471ea8e5..752b403c5 100644 --- a/keyboards/foxlab/leaf60/hotswap/config.h +++ b/keyboards/foxlab/leaf60/hotswap/config.h | |||
@@ -64,7 +64,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
64 | #endif | 64 | #endif |
65 | 65 | ||
66 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 66 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
67 | #define DEBOUNCING_DELAY 5 | 67 | #define DEBOUNCE 5 |
68 | 68 | ||
69 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 69 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
70 | //#define MATRIX_HAS_GHOST | 70 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/foxlab/leaf60/universal/config.h b/keyboards/foxlab/leaf60/universal/config.h index d8d66ee38..f038430f9 100644 --- a/keyboards/foxlab/leaf60/universal/config.h +++ b/keyboards/foxlab/leaf60/universal/config.h | |||
@@ -64,7 +64,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
64 | #endif | 64 | #endif |
65 | 65 | ||
66 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 66 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
67 | #define DEBOUNCING_DELAY 5 | 67 | #define DEBOUNCE 5 |
68 | 68 | ||
69 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 69 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
70 | //#define MATRIX_HAS_GHOST | 70 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/fractal/config.h b/keyboards/fractal/config.h index fce0931c2..f67f61c13 100755 --- a/keyboards/fractal/config.h +++ b/keyboards/fractal/config.h | |||
@@ -31,7 +31,7 @@ | |||
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | /* Set 0 if debouncing isn't needed */ | 33 | /* Set 0 if debouncing isn't needed */ |
34 | #define DEBOUNCING_DELAY 5 | 34 | #define DEBOUNCE 5 |
35 | 35 | ||
36 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 36 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
37 | #define LOCKING_SUPPORT_ENABLE | 37 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/ft/mars80/config.h b/keyboards/ft/mars80/config.h index e03d1b399..b56adb114 100644 --- a/keyboards/ft/mars80/config.h +++ b/keyboards/ft/mars80/config.h | |||
@@ -36,7 +36,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | #define UNUSED_PINS {} | 36 | #define UNUSED_PINS {} |
37 | 37 | ||
38 | #define DIODE_DIRECTION COL2ROW | 38 | #define DIODE_DIRECTION COL2ROW |
39 | #define DEBOUNCING_DELAY 5 | 39 | #define DEBOUNCE 5 |
40 | 40 | ||
41 | #define NO_BACKLIGHT_CLOCK | 41 | #define NO_BACKLIGHT_CLOCK |
42 | #define BACKLIGHT_LEVELS 1 | 42 | #define BACKLIGHT_LEVELS 1 |
@@ -47,4 +47,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | /* key combination for magic key command */ | 47 | /* key combination for magic key command */ |
48 | /* defined by default; to change, uncomment and set to the combination you want */ | 48 | /* defined by default; to change, uncomment and set to the combination you want */ |
49 | // #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) | 49 | // #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) |
50 | |||
diff --git a/keyboards/gh60/config.h b/keyboards/gh60/config.h index a99dd4e59..8b7391faf 100644 --- a/keyboards/gh60/config.h +++ b/keyboards/gh60/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | #define DIODE_DIRECTION COL2ROW | 53 | #define DIODE_DIRECTION COL2ROW |
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 5 | 56 | #define DEBOUNCE 5 |
57 | 57 | ||
58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
59 | //#define MATRIX_HAS_GHOST | 59 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/gh60/keymaps/dbroqua/config.h b/keyboards/gh60/keymaps/dbroqua/config.h index 380b8303f..8952200e0 100644 --- a/keyboards/gh60/keymaps/dbroqua/config.h +++ b/keyboards/gh60/keymaps/dbroqua/config.h | |||
@@ -50,7 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
50 | #define DIODE_DIRECTION COL2ROW | 50 | #define DIODE_DIRECTION COL2ROW |
51 | 51 | ||
52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
53 | #define DEBOUNCING_DELAY 5 | 53 | #define DEBOUNCE 5 |
54 | 54 | ||
55 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 55 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
56 | //#define MATRIX_HAS_GHOST | 56 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/gh60/keymaps/robotmaxtron/config.h b/keyboards/gh60/keymaps/robotmaxtron/config.h index ec2f8ceea..1cc41d183 100644 --- a/keyboards/gh60/keymaps/robotmaxtron/config.h +++ b/keyboards/gh60/keymaps/robotmaxtron/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | #define DIODE_DIRECTION COL2ROW | 53 | #define DIODE_DIRECTION COL2ROW |
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 5 | 56 | #define DEBOUNCE 5 |
57 | 57 | ||
58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
59 | //#define MATRIX_HAS_GHOST | 59 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/gh80_3000/config.h b/keyboards/gh80_3000/config.h index 7fb418312..edcacc20e 100644 --- a/keyboards/gh80_3000/config.h +++ b/keyboards/gh80_3000/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | 34 | ||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
36 | #define LOCKING_SUPPORT_ENABLE | 36 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/gonnerd/config.h b/keyboards/gonnerd/config.h index 40615da5f..5b22495db 100644 --- a/keyboards/gonnerd/config.h +++ b/keyboards/gonnerd/config.h | |||
@@ -28,7 +28,7 @@ | |||
28 | #define DIODE_DIRECTION COL2ROW | 28 | #define DIODE_DIRECTION COL2ROW |
29 | 29 | ||
30 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 30 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
31 | #define DEBOUNCING_DELAY 5 | 31 | #define DEBOUNCE 5 |
32 | 32 | ||
33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
34 | #define LOCKING_SUPPORT_ENABLE | 34 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/gray_studio/cod67/config.h b/keyboards/gray_studio/cod67/config.h index b72f47143..47b42d8a6 100644 --- a/keyboards/gray_studio/cod67/config.h +++ b/keyboards/gray_studio/cod67/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | #define BACKLIGHT_LEVELS 3 | 53 | #define BACKLIGHT_LEVELS 3 |
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 5 | 56 | #define DEBOUNCE 5 |
57 | 57 | ||
58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
59 | //#define MATRIX_HAS_GHOST | 59 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/gray_studio/space65/config.h b/keyboards/gray_studio/space65/config.h index e6d9f235d..979cb0a60 100644 --- a/keyboards/gray_studio/space65/config.h +++ b/keyboards/gray_studio/space65/config.h | |||
@@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
80 | #endif | 80 | #endif |
81 | 81 | ||
82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
83 | #define DEBOUNCING_DELAY 5 | 83 | #define DEBOUNCE 5 |
84 | 84 | ||
85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
86 | //#define MATRIX_HAS_GHOST | 86 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/gskt00/config.h b/keyboards/gskt00/config.h index 376f89dbe..7e1107d31 100755 --- a/keyboards/gskt00/config.h +++ b/keyboards/gskt00/config.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #define DIODE_DIRECTION COL2ROW | 23 | #define DIODE_DIRECTION COL2ROW |
24 | 24 | ||
25 | /* Set 0 if debouncing isn't needed */ | 25 | /* Set 0 if debouncing isn't needed */ |
26 | #define DEBOUNCING_DELAY 5 | 26 | #define DEBOUNCE 5 |
27 | 27 | ||
28 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 28 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
29 | #define LOCKING_SUPPORT_ENABLE | 29 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/hadron/config.h b/keyboards/hadron/config.h index 7024f8fcb..61e764748 100644 --- a/keyboards/hadron/config.h +++ b/keyboards/hadron/config.h | |||
@@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
40 | //#define BACKLIGHT_LEVELS 3 | 40 | //#define BACKLIGHT_LEVELS 3 |
41 | 41 | ||
42 | /* Set 0 if debouncing isn't needed */ | 42 | /* Set 0 if debouncing isn't needed */ |
43 | #define DEBOUNCING_DELAY 5 | 43 | #define DEBOUNCE 5 |
44 | 44 | ||
45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
46 | //#define LOCKING_SUPPORT_ENABLE | 46 | //#define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/halberd/config.h b/keyboards/halberd/config.h index ab46c4d8a..32930d778 100644 --- a/keyboards/halberd/config.h +++ b/keyboards/halberd/config.h | |||
@@ -61,7 +61,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 63 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
64 | #define DEBOUNCING_DELAY 5 | 64 | #define DEBOUNCE 5 |
65 | 65 | ||
66 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 66 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
67 | //#define MATRIX_HAS_GHOST | 67 | //#define MATRIX_HAS_GHOST |
@@ -228,5 +228,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
228 | // #define BOOTMAGIC_LITE_COLUMN 0 | 228 | // #define BOOTMAGIC_LITE_COLUMN 0 |
229 | 229 | ||
230 | #define TAPPING_TERM 100 | 230 | #define TAPPING_TERM 100 |
231 | |||
232 | |||
diff --git a/keyboards/handwired/108key_trackpoint/config.h b/keyboards/handwired/108key_trackpoint/config.h index a773a72b1..2c0662c0b 100644 --- a/keyboards/handwired/108key_trackpoint/config.h +++ b/keyboards/handwired/108key_trackpoint/config.h | |||
@@ -61,7 +61,7 @@ | |||
61 | /* COL2ROW or ROW2COL */ | 61 | /* COL2ROW or ROW2COL */ |
62 | #define DIODE_DIRECTION COL2ROW | 62 | #define DIODE_DIRECTION COL2ROW |
63 | 63 | ||
64 | #define DEBOUNCING_DELAY 5 | 64 | #define DEBOUNCE 5 |
65 | 65 | ||
66 | #define LOCKING_SUPPORT_ENABLE | 66 | #define LOCKING_SUPPORT_ENABLE |
67 | #define LOCKING_RESYNC_ENABLE | 67 | #define LOCKING_RESYNC_ENABLE |
diff --git a/keyboards/handwired/412_64/config.h b/keyboards/handwired/412_64/config.h index 9cdb3fac8..cce38f3e6 100644 --- a/keyboards/handwired/412_64/config.h +++ b/keyboards/handwired/412_64/config.h | |||
@@ -38,7 +38,7 @@ | |||
38 | // #define BACKLIGHT_LEVELS 3 | 38 | // #define BACKLIGHT_LEVELS 3 |
39 | 39 | ||
40 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 40 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
41 | #define DEBOUNCING_DELAY 5 | 41 | #define DEBOUNCE 5 |
42 | 42 | ||
43 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 43 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
44 | //#define MATRIX_HAS_GHOST | 44 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/arrow_pad/config.h b/keyboards/handwired/arrow_pad/config.h index 1ae3d21c4..abb600c51 100644 --- a/keyboards/handwired/arrow_pad/config.h +++ b/keyboards/handwired/arrow_pad/config.h | |||
@@ -52,7 +52,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
52 | #define DIODE_DIRECTION ROW2COL | 52 | #define DIODE_DIRECTION ROW2COL |
53 | 53 | ||
54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
55 | #define DEBOUNCING_DELAY 5 | 55 | #define DEBOUNCE 5 |
56 | 56 | ||
57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
58 | //#define MATRIX_HAS_GHOST | 58 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/arrow_pad/keymaps/pad_21/config.h b/keyboards/handwired/arrow_pad/keymaps/pad_21/config.h index 9b6ecfaa3..0e471527d 100644 --- a/keyboards/handwired/arrow_pad/keymaps/pad_21/config.h +++ b/keyboards/handwired/arrow_pad/keymaps/pad_21/config.h | |||
@@ -50,7 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
50 | #define DIODE_DIRECTION ROW2COL | 50 | #define DIODE_DIRECTION ROW2COL |
51 | 51 | ||
52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
53 | #define DEBOUNCING_DELAY 5 | 53 | #define DEBOUNCE 5 |
54 | 54 | ||
55 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 55 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
56 | //#define MATRIX_HAS_GHOST | 56 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/arrow_pad/keymaps/pad_24/config.h b/keyboards/handwired/arrow_pad/keymaps/pad_24/config.h index db89e4b84..aba085f3d 100644 --- a/keyboards/handwired/arrow_pad/keymaps/pad_24/config.h +++ b/keyboards/handwired/arrow_pad/keymaps/pad_24/config.h | |||
@@ -52,7 +52,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
52 | #define DIODE_DIRECTION ROW2COL | 52 | #define DIODE_DIRECTION ROW2COL |
53 | 53 | ||
54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
55 | #define DEBOUNCING_DELAY 5 | 55 | #define DEBOUNCE 5 |
56 | 56 | ||
57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
58 | //#define MATRIX_HAS_GHOST | 58 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/atreus50/config.h b/keyboards/handwired/atreus50/config.h index 4cdc7ed12..0d51e1185 100644 --- a/keyboards/handwired/atreus50/config.h +++ b/keyboards/handwired/atreus50/config.h | |||
@@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
45 | // #define BACKLIGHT_LEVELS 3 | 45 | // #define BACKLIGHT_LEVELS 3 |
46 | 46 | ||
47 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 47 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
48 | #define DEBOUNCING_DELAY 5 | 48 | #define DEBOUNCE 5 |
49 | 49 | ||
50 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 50 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
51 | //#define MATRIX_HAS_GHOST | 51 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/cmd60/config.h b/keyboards/handwired/cmd60/config.h index e95cac1e4..ee676ca05 100644 --- a/keyboards/handwired/cmd60/config.h +++ b/keyboards/handwired/cmd60/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/dactyl/matrix.c b/keyboards/handwired/dactyl/matrix.c index f63cf1188..73423bfbd 100644 --- a/keyboards/handwired/dactyl/matrix.c +++ b/keyboards/handwired/dactyl/matrix.c | |||
@@ -31,11 +31,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | 33 | ||
34 | #ifndef DEBOUNCING_DELAY | 34 | #ifndef DEBOUNCE |
35 | # define DEBOUNCING_DELAY 5 | 35 | # define DEBOUNCE 5 |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | #if (DEBOUNCING_DELAY > 0) | 38 | #if (DEBOUNCE > 0) |
39 | static uint16_t debouncing_time; | 39 | static uint16_t debouncing_time; |
40 | static bool debouncing = false; | 40 | static bool debouncing = false; |
41 | #endif | 41 | #endif |
@@ -256,7 +256,7 @@ uint8_t matrix_scan(void) | |||
256 | 256 | ||
257 | #if (DIODE_DIRECTION == COL2ROW) | 257 | #if (DIODE_DIRECTION == COL2ROW) |
258 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { | 258 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { |
259 | # if (DEBOUNCING_DELAY > 0) | 259 | # if (DEBOUNCE > 0) |
260 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); | 260 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); |
261 | 261 | ||
262 | if (matrix_changed) { | 262 | if (matrix_changed) { |
@@ -270,7 +270,7 @@ uint8_t matrix_scan(void) | |||
270 | 270 | ||
271 | #elif (DIODE_DIRECTION == ROW2COL) | 271 | #elif (DIODE_DIRECTION == ROW2COL) |
272 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { | 272 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { |
273 | # if (DEBOUNCING_DELAY > 0) | 273 | # if (DEBOUNCE > 0) |
274 | bool matrix_changed = read_rows_on_col(matrix_debouncing, current_col); | 274 | bool matrix_changed = read_rows_on_col(matrix_debouncing, current_col); |
275 | 275 | ||
276 | if (matrix_changed) { | 276 | if (matrix_changed) { |
@@ -284,8 +284,8 @@ uint8_t matrix_scan(void) | |||
284 | } | 284 | } |
285 | #endif | 285 | #endif |
286 | 286 | ||
287 | # if (DEBOUNCING_DELAY > 0) | 287 | # if (DEBOUNCE > 0) |
288 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 288 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
289 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { | 289 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { |
290 | matrix[i] = matrix_debouncing[i]; | 290 | matrix[i] = matrix_debouncing[i]; |
291 | } | 291 | } |
@@ -299,7 +299,7 @@ uint8_t matrix_scan(void) | |||
299 | 299 | ||
300 | bool matrix_is_modified(void) // deprecated and evidently not called. | 300 | bool matrix_is_modified(void) // deprecated and evidently not called. |
301 | { | 301 | { |
302 | #if (DEBOUNCING_DELAY > 0) | 302 | #if (DEBOUNCE > 0) |
303 | if (debouncing) return false; | 303 | if (debouncing) return false; |
304 | #endif | 304 | #endif |
305 | return true; | 305 | return true; |
diff --git a/keyboards/handwired/dactyl_manuform/config.h b/keyboards/handwired/dactyl_manuform/config.h index 5e7605d3a..6979821b6 100644 --- a/keyboards/handwired/dactyl_manuform/config.h +++ b/keyboards/handwired/dactyl_manuform/config.h | |||
@@ -36,7 +36,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | #define MOUSEKEY_WHEEL_DELAY 0 | 36 | #define MOUSEKEY_WHEEL_DELAY 0 |
37 | 37 | ||
38 | /* Set 0 if debouncing isn't needed */ | 38 | /* Set 0 if debouncing isn't needed */ |
39 | #define DEBOUNCING_DELAY 5 | 39 | #define DEBOUNCE 5 |
40 | 40 | ||
41 | /* serial.c configuration for split keyboard */ | 41 | /* serial.c configuration for split keyboard */ |
42 | #define SOFT_SERIAL_PIN D0 | 42 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/handwired/dactyl_promicro/config.h b/keyboards/handwired/dactyl_promicro/config.h index f81b3de51..3c0b541d1 100644 --- a/keyboards/handwired/dactyl_promicro/config.h +++ b/keyboards/handwired/dactyl_promicro/config.h | |||
@@ -46,7 +46,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
46 | #define MOUSEKEY_WHEEL_DELAY 0 | 46 | #define MOUSEKEY_WHEEL_DELAY 0 |
47 | 47 | ||
48 | /* Set 0 if debouncing isn't needed */ | 48 | /* Set 0 if debouncing isn't needed */ |
49 | #define DEBOUNCING_DELAY 5 | 49 | #define DEBOUNCE 5 |
50 | 50 | ||
51 | /* serial.c configuration for split keyboard */ | 51 | /* serial.c configuration for split keyboard */ |
52 | #define SOFT_SERIAL_PIN D0 | 52 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/handwired/daishi/config.h b/keyboards/handwired/daishi/config.h index 020b486a9..15ff6a6a6 100644 --- a/keyboards/handwired/daishi/config.h +++ b/keyboards/handwired/daishi/config.h | |||
@@ -49,7 +49,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
49 | #define DIODE_DIRECTION COL2ROW | 49 | #define DIODE_DIRECTION COL2ROW |
50 | 50 | ||
51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
52 | #define DEBOUNCING_DELAY 5 | 52 | #define DEBOUNCE 5 |
53 | 53 | ||
54 | /* Set up rotary encoder */ | 54 | /* Set up rotary encoder */ |
55 | #define NUMBER_OF_ENCODERS 1 | 55 | #define NUMBER_OF_ENCODERS 1 |
diff --git a/keyboards/handwired/datahand/config.h b/keyboards/handwired/datahand/config.h index a269775f3..c7a0a43de 100644 --- a/keyboards/handwired/datahand/config.h +++ b/keyboards/handwired/datahand/config.h | |||
@@ -33,7 +33,7 @@ | |||
33 | //#define DIODE_DIRECTION | 33 | //#define DIODE_DIRECTION |
34 | 34 | ||
35 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 35 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
36 | #define DEBOUNCING_DELAY 0 | 36 | #define DEBOUNCE 0 |
37 | 37 | ||
38 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 38 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
39 | #define LOCKING_SUPPORT_ENABLE | 39 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/handwired/downbubble/config.h b/keyboards/handwired/downbubble/config.h index 4b2bd92e4..f2628cb70 100644 --- a/keyboards/handwired/downbubble/config.h +++ b/keyboards/handwired/downbubble/config.h | |||
@@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
80 | // #endif | 80 | // #endif |
81 | 81 | ||
82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
83 | #define DEBOUNCING_DELAY 5 | 83 | #define DEBOUNCE 5 |
84 | 84 | ||
85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
86 | //#define MATRIX_HAS_GHOST | 86 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/fivethirteen/config.h b/keyboards/handwired/fivethirteen/config.h index 685d421b1..951122297 100644 --- a/keyboards/handwired/fivethirteen/config.h +++ b/keyboards/handwired/fivethirteen/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/gamenum/config.h b/keyboards/handwired/gamenum/config.h index 180b1b01a..ff60aa529 100644 --- a/keyboards/handwired/gamenum/config.h +++ b/keyboards/handwired/gamenum/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/hacked_motospeed/config.h b/keyboards/handwired/hacked_motospeed/config.h index 59300e0d2..1a341c0f4 100644 --- a/keyboards/handwired/hacked_motospeed/config.h +++ b/keyboards/handwired/hacked_motospeed/config.h | |||
@@ -84,7 +84,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
84 | // #endif | 84 | // #endif |
85 | 85 | ||
86 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 86 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
87 | #define DEBOUNCING_DELAY 5 | 87 | #define DEBOUNCE 5 |
88 | 88 | ||
89 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 89 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
90 | #define MATRIX_HAS_GHOST | 90 | #define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/hexon38/config.h b/keyboards/handwired/hexon38/config.h index 5453eda54..e9e1eb4d2 100644 --- a/keyboards/handwired/hexon38/config.h +++ b/keyboards/handwired/hexon38/config.h | |||
@@ -31,7 +31,7 @@ | |||
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | /* Set 0 if debouncing isn't needed */ | 33 | /* Set 0 if debouncing isn't needed */ |
34 | #define DEBOUNCING_DELAY 5 | 34 | #define DEBOUNCE 5 |
35 | 35 | ||
36 | #ifdef RGB_DI_PIN | 36 | #ifdef RGB_DI_PIN |
37 | #define RGBLIGHT_ANIMATIONS | 37 | #define RGBLIGHT_ANIMATIONS |
diff --git a/keyboards/handwired/ibm122m/config.h b/keyboards/handwired/ibm122m/config.h index 1ef7be78d..8189f704d 100644 --- a/keyboards/handwired/ibm122m/config.h +++ b/keyboards/handwired/ibm122m/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | // #define BACKLIGHT_LEVELS 3 | 53 | // #define BACKLIGHT_LEVELS 3 |
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 15 | 56 | #define DEBOUNCE 15 |
57 | 57 | ||
58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
59 | //#define MATRIX_HAS_GHOST | 59 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/jn68m/config.h b/keyboards/handwired/jn68m/config.h index f6ab4056b..ef0c09cf1 100644 --- a/keyboards/handwired/jn68m/config.h +++ b/keyboards/handwired/jn68m/config.h | |||
@@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
40 | #define DIODE_DIRECTION COL2ROW | 40 | #define DIODE_DIRECTION COL2ROW |
41 | 41 | ||
42 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 42 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
43 | #define DEBOUNCING_DELAY 5 | 43 | #define DEBOUNCE 5 |
44 | 44 | ||
45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
46 | #define LOCKING_SUPPORT_ENABLE | 46 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/handwired/jot50/config.h b/keyboards/handwired/jot50/config.h index 2dfcfd2d2..2d2c1c183 100644 --- a/keyboards/handwired/jot50/config.h +++ b/keyboards/handwired/jot50/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #define DIODE_DIRECTION COL2ROW | 29 | #define DIODE_DIRECTION COL2ROW |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/handwired/jotanck/config.h b/keyboards/handwired/jotanck/config.h index cbbd6ea96..925464825 100644 --- a/keyboards/handwired/jotanck/config.h +++ b/keyboards/handwired/jotanck/config.h | |||
@@ -28,7 +28,7 @@ | |||
28 | #define DIODE_DIRECTION COL2ROW | 28 | #define DIODE_DIRECTION COL2ROW |
29 | 29 | ||
30 | /* Set 0 if debouncing isn't needed */ | 30 | /* Set 0 if debouncing isn't needed */ |
31 | #define DEBOUNCING_DELAY 5 | 31 | #define DEBOUNCE 5 |
32 | 32 | ||
33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
34 | #define LOCKING_SUPPORT_ENABLE | 34 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/handwired/jotpad16/config.h b/keyboards/handwired/jotpad16/config.h index e113597dc..075f9649c 100644 --- a/keyboards/handwired/jotpad16/config.h +++ b/keyboards/handwired/jotpad16/config.h | |||
@@ -28,11 +28,10 @@ | |||
28 | #define DIODE_DIRECTION COL2ROW | 28 | #define DIODE_DIRECTION COL2ROW |
29 | 29 | ||
30 | /* Set 0 if debouncing isn't needed */ | 30 | /* Set 0 if debouncing isn't needed */ |
31 | #define DEBOUNCING_DELAY 0 | 31 | #define DEBOUNCE 0 |
32 | 32 | ||
33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 33 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
34 | #define LOCKING_SUPPORT_ENABLE | 34 | #define LOCKING_SUPPORT_ENABLE |
35 | 35 | ||
36 | /* Locking resynchronize hack */ | 36 | /* Locking resynchronize hack */ |
37 | #define LOCKING_RESYNC_ENABLE | 37 | #define LOCKING_RESYNC_ENABLE |
38 | |||
diff --git a/keyboards/handwired/kbod/config.h b/keyboards/handwired/kbod/config.h index 5f02c7172..f0bba68a5 100644 --- a/keyboards/handwired/kbod/config.h +++ b/keyboards/handwired/kbod/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | // #define BACKLIGHT_LEVELS 3 | 53 | // #define BACKLIGHT_LEVELS 3 |
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 5 | 56 | #define DEBOUNCE 5 |
57 | 57 | ||
58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
59 | //#define MATRIX_HAS_GHOST | 59 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/maartenwut/config.h b/keyboards/handwired/maartenwut/config.h index b939fa1f6..d059c6e4a 100755 --- a/keyboards/handwired/maartenwut/config.h +++ b/keyboards/handwired/maartenwut/config.h | |||
@@ -32,7 +32,7 @@ | |||
32 | #define DIODE_DIRECTION COL2ROW | 32 | #define DIODE_DIRECTION COL2ROW |
33 | 33 | ||
34 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 34 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
35 | #define DEBOUNCING_DELAY 5 | 35 | #define DEBOUNCE 5 |
36 | 36 | ||
37 | #define QMK_ESC_OUTPUT C6 // usually COL | 37 | #define QMK_ESC_OUTPUT C6 // usually COL |
38 | #define QMK_ESC_INPUT D0 // usually ROW | 38 | #define QMK_ESC_INPUT D0 // usually ROW |
diff --git a/keyboards/handwired/magicforce61/config.h b/keyboards/handwired/magicforce61/config.h index 3dc74f83e..446f4aefc 100644 --- a/keyboards/handwired/magicforce61/config.h +++ b/keyboards/handwired/magicforce61/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | // #define BACKLIGHT_LEVELS 3 | 53 | // #define BACKLIGHT_LEVELS 3 |
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 5 | 56 | #define DEBOUNCE 5 |
57 | 57 | ||
58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
59 | //#define MATRIX_HAS_GHOST | 59 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/magicforce68/config.h b/keyboards/handwired/magicforce68/config.h index dc0a82c94..1cb7e91b4 100644 --- a/keyboards/handwired/magicforce68/config.h +++ b/keyboards/handwired/magicforce68/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/mechboards_micropad/config.h b/keyboards/handwired/mechboards_micropad/config.h index 01a0bdd90..8f237a64a 100644 --- a/keyboards/handwired/mechboards_micropad/config.h +++ b/keyboards/handwired/mechboards_micropad/config.h | |||
@@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
80 | // #endif | 80 | // #endif |
81 | 81 | ||
82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
83 | #define DEBOUNCING_DELAY 5 | 83 | #define DEBOUNCE 5 |
84 | 84 | ||
85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
86 | //#define MATRIX_HAS_GHOST | 86 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/minorca/config.h b/keyboards/handwired/minorca/config.h index c30d54db7..fea201b9c 100644 --- a/keyboards/handwired/minorca/config.h +++ b/keyboards/handwired/minorca/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | #define BACKLIGHT_LEVELS 3 | 47 | #define BACKLIGHT_LEVELS 3 |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
53 | #define LOCKING_SUPPORT_ENABLE | 53 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/handwired/ms_sculpt_mobile/config.h b/keyboards/handwired/ms_sculpt_mobile/config.h index 6739b44fc..0b1d3e6b3 100644 --- a/keyboards/handwired/ms_sculpt_mobile/config.h +++ b/keyboards/handwired/ms_sculpt_mobile/config.h | |||
@@ -52,7 +52,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
52 | #define DIODE_DIRECTION ROW2COL | 52 | #define DIODE_DIRECTION ROW2COL |
53 | 53 | ||
54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
55 | #define DEBOUNCING_DELAY 5 | 55 | #define DEBOUNCE 5 |
56 | 56 | ||
57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
58 | //#define MATRIX_HAS_GHOST | 58 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/not_so_minidox/config.h b/keyboards/handwired/not_so_minidox/config.h index fc6068628..e92621af4 100644 --- a/keyboards/handwired/not_so_minidox/config.h +++ b/keyboards/handwired/not_so_minidox/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Set 0 if debouncing isn't needed */ | 56 | /* Set 0 if debouncing isn't needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 59 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
60 | #define LOCKING_SUPPORT_ENABLE | 60 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/handwired/numbrero/config.h b/keyboards/handwired/numbrero/config.h index bb178bd22..ac38e0814 100644 --- a/keyboards/handwired/numbrero/config.h +++ b/keyboards/handwired/numbrero/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/handwired/numpad20/config.h b/keyboards/handwired/numpad20/config.h index c597494c4..78d95965a 100644 --- a/keyboards/handwired/numpad20/config.h +++ b/keyboards/handwired/numpad20/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/ortho5x13/config.h b/keyboards/handwired/ortho5x13/config.h index 1e2128b65..b3850a48a 100644 --- a/keyboards/handwired/ortho5x13/config.h +++ b/keyboards/handwired/ortho5x13/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/pilcrow/config.h b/keyboards/handwired/pilcrow/config.h index 8f562de3b..439686ae6 100644 --- a/keyboards/handwired/pilcrow/config.h +++ b/keyboards/handwired/pilcrow/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/prime_exl/config.h b/keyboards/handwired/prime_exl/config.h index 3201a8247..a2962c074 100644 --- a/keyboards/handwired/prime_exl/config.h +++ b/keyboards/handwired/prime_exl/config.h | |||
@@ -43,7 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
43 | #define BACKLIGHT_LEVELS 5 | 43 | #define BACKLIGHT_LEVELS 5 |
44 | 44 | ||
45 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 45 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
46 | #define DEBOUNCING_DELAY 5 | 46 | #define DEBOUNCE 5 |
47 | 47 | ||
48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
49 | #define LOCKING_SUPPORT_ENABLE | 49 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/handwired/promethium/config.h b/keyboards/handwired/promethium/config.h index b5a0a7f4b..f05273d25 100644 --- a/keyboards/handwired/promethium/config.h +++ b/keyboards/handwired/promethium/config.h | |||
@@ -60,7 +60,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
60 | // #define BACKLIGHT_LEVELS 3 | 60 | // #define BACKLIGHT_LEVELS 3 |
61 | 61 | ||
62 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 62 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
63 | #define DEBOUNCING_DELAY 5 | 63 | #define DEBOUNCE 5 |
64 | 64 | ||
65 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 65 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
66 | //#define MATRIX_HAS_GHOST | 66 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/promethium/matrix.c b/keyboards/handwired/promethium/matrix.c index 0b4456e28..3b8e5af82 100644 --- a/keyboards/handwired/promethium/matrix.c +++ b/keyboards/handwired/promethium/matrix.c | |||
@@ -31,11 +31,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | 33 | ||
34 | #ifndef DEBOUNCING_DELAY | 34 | #ifndef DEBOUNCE |
35 | # define DEBOUNCING_DELAY 5 | 35 | # define DEBOUNCE 5 |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | #if (DEBOUNCING_DELAY > 0) | 38 | #if (DEBOUNCE > 0) |
39 | static uint16_t debouncing_time; | 39 | static uint16_t debouncing_time; |
40 | static bool debouncing = false; | 40 | static bool debouncing = false; |
41 | #endif | 41 | #endif |
@@ -128,7 +128,7 @@ uint8_t matrix_scan(void) | |||
128 | { | 128 | { |
129 | // Set row, read cols | 129 | // Set row, read cols |
130 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { | 130 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { |
131 | # if (DEBOUNCING_DELAY > 0) | 131 | # if (DEBOUNCE > 0) |
132 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); | 132 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); |
133 | 133 | ||
134 | if (matrix_changed) { | 134 | if (matrix_changed) { |
@@ -142,8 +142,8 @@ uint8_t matrix_scan(void) | |||
142 | 142 | ||
143 | } | 143 | } |
144 | 144 | ||
145 | # if (DEBOUNCING_DELAY > 0) | 145 | # if (DEBOUNCE > 0) |
146 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 146 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
147 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { | 147 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { |
148 | matrix[i] = matrix_debouncing[i]; | 148 | matrix[i] = matrix_debouncing[i]; |
149 | } | 149 | } |
@@ -157,7 +157,7 @@ uint8_t matrix_scan(void) | |||
157 | 157 | ||
158 | bool matrix_is_modified(void) | 158 | bool matrix_is_modified(void) |
159 | { | 159 | { |
160 | #if (DEBOUNCING_DELAY > 0) | 160 | #if (DEBOUNCE > 0) |
161 | if (debouncing) return false; | 161 | if (debouncing) return false; |
162 | #endif | 162 | #endif |
163 | return true; | 163 | return true; |
@@ -294,4 +294,3 @@ static void unselect_row(uint8_t row) | |||
294 | static void unselect_rows(void) | 294 | static void unselect_rows(void) |
295 | { | 295 | { |
296 | } | 296 | } |
297 | |||
diff --git a/keyboards/handwired/pteron/config.h b/keyboards/handwired/pteron/config.h index d0b074c68..56921b020 100644 --- a/keyboards/handwired/pteron/config.h +++ b/keyboards/handwired/pteron/config.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #define DIODE_DIRECTION ROW2COL | 23 | #define DIODE_DIRECTION ROW2COL |
24 | 24 | ||
25 | /* Set 0 if debouncing isn't needed */ | 25 | /* Set 0 if debouncing isn't needed */ |
26 | #define DEBOUNCING_DELAY 5 // 5 is default | 26 | #define DEBOUNCE 5 // 5 is default |
27 | 27 | ||
28 | /* prevent stuck modifiers */ | 28 | /* prevent stuck modifiers */ |
29 | #define PREVENT_STUCK_MODIFIERS | 29 | #define PREVENT_STUCK_MODIFIERS |
diff --git a/keyboards/handwired/qc60/config.h b/keyboards/handwired/qc60/config.h index aad1d64a0..0c8f8f007 100644 --- a/keyboards/handwired/qc60/config.h +++ b/keyboards/handwired/qc60/config.h | |||
@@ -16,7 +16,7 @@ | |||
16 | #define MATRIX_COLS 8 | 16 | #define MATRIX_COLS 8 |
17 | 17 | ||
18 | /* Set 0 if debouncing isn't needed */ | 18 | /* Set 0 if debouncing isn't needed */ |
19 | #define DEBOUNCING_DELAY 5 | 19 | #define DEBOUNCE 5 |
20 | 20 | ||
21 | /* serial.c configuration for split keyboard */ | 21 | /* serial.c configuration for split keyboard */ |
22 | #define SOFT_SERIAL_PIN D0 | 22 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/handwired/reddot/config.h b/keyboards/handwired/reddot/config.h index 82fe01863..4d908041b 100755 --- a/keyboards/handwired/reddot/config.h +++ b/keyboards/handwired/reddot/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/retro_refit/config.h b/keyboards/handwired/retro_refit/config.h index 34def3815..1d4f1e075 100644 --- a/keyboards/handwired/retro_refit/config.h +++ b/keyboards/handwired/retro_refit/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | #define BACKLIGHT_LEVELS 0 | 47 | #define BACKLIGHT_LEVELS 0 |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
53 | #define LOCKING_SUPPORT_ENABLE | 53 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/handwired/space_oddity/config.h b/keyboards/handwired/space_oddity/config.h index 832216423..09975cfc8 100644 --- a/keyboards/handwired/space_oddity/config.h +++ b/keyboards/handwired/space_oddity/config.h | |||
@@ -35,7 +35,7 @@ | |||
35 | #endif | 35 | #endif |
36 | 36 | ||
37 | /* Set 0 if debouncing isn't needed */ | 37 | /* Set 0 if debouncing isn't needed */ |
38 | #define DEBOUNCING_DELAY 5 | 38 | #define DEBOUNCE 5 |
39 | 39 | ||
40 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 40 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
41 | #define LOCKING_SUPPORT_ENABLE | 41 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/handwired/splittest/config.h b/keyboards/handwired/splittest/config.h index 9e4fb38ca..a502d1238 100644 --- a/keyboards/handwired/splittest/config.h +++ b/keyboards/handwired/splittest/config.h | |||
@@ -43,7 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
43 | //#define MATRIX_HAS_GHOST | 43 | //#define MATRIX_HAS_GHOST |
44 | 44 | ||
45 | /* Set 0 if debouncing isn't needed */ | 45 | /* Set 0 if debouncing isn't needed */ |
46 | #define DEBOUNCING_DELAY 5 | 46 | #define DEBOUNCE 5 |
47 | 47 | ||
48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
49 | #define LOCKING_SUPPORT_ENABLE | 49 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/handwired/tennie/config.h b/keyboards/handwired/tennie/config.h index b50886cdc..20795b048 100644 --- a/keyboards/handwired/tennie/config.h +++ b/keyboards/handwired/tennie/config.h | |||
@@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
80 | #endif | 80 | #endif |
81 | 81 | ||
82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
83 | #define DEBOUNCING_DELAY 5 | 83 | #define DEBOUNCE 5 |
84 | 84 | ||
85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
86 | //#define MATRIX_HAS_GHOST | 86 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/terminus_mini/config.h b/keyboards/handwired/terminus_mini/config.h index e1b5daccd..a5a6736ba 100644 --- a/keyboards/handwired/terminus_mini/config.h +++ b/keyboards/handwired/terminus_mini/config.h | |||
@@ -60,7 +60,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
60 | #define TAPPING_TERM 150 //reduce time required to register a held key | 60 | #define TAPPING_TERM 150 //reduce time required to register a held key |
61 | 61 | ||
62 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 62 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
63 | #define DEBOUNCING_DELAY 5 | 63 | #define DEBOUNCE 5 |
64 | 64 | ||
65 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 65 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
66 | //#define MATRIX_HAS_GHOST | 66 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/trackpoint/config.h b/keyboards/handwired/trackpoint/config.h index cecb6a509..a1c12efb0 100644 --- a/keyboards/handwired/trackpoint/config.h +++ b/keyboards/handwired/trackpoint/config.h | |||
@@ -61,7 +61,7 @@ | |||
61 | /* COL2ROW or ROW2COL */ | 61 | /* COL2ROW or ROW2COL */ |
62 | #define DIODE_DIRECTION COL2ROW | 62 | #define DIODE_DIRECTION COL2ROW |
63 | 63 | ||
64 | #define DEBOUNCING_DELAY 5 | 64 | #define DEBOUNCE 5 |
65 | 65 | ||
66 | #define LOCKING_SUPPORT_ENABLE | 66 | #define LOCKING_SUPPORT_ENABLE |
67 | #define LOCKING_RESYNC_ENABLE | 67 | #define LOCKING_RESYNC_ENABLE |
diff --git a/keyboards/handwired/tradestation/config.h b/keyboards/handwired/tradestation/config.h index 22650d2f1..33c87548f 100644 --- a/keyboards/handwired/tradestation/config.h +++ b/keyboards/handwired/tradestation/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/handwired/traveller/config.h b/keyboards/handwired/traveller/config.h index ccf214736..3812ec61f 100644 --- a/keyboards/handwired/traveller/config.h +++ b/keyboards/handwired/traveller/config.h | |||
@@ -63,7 +63,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
63 | // #define BACKLIGHT_LEVELS 3 | 63 | // #define BACKLIGHT_LEVELS 3 |
64 | 64 | ||
65 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 65 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
66 | #define DEBOUNCING_DELAY 5 | 66 | #define DEBOUNCE 5 |
67 | 67 | ||
68 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 68 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
69 | //#define MATRIX_HAS_GHOST | 69 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/woodpad/config.h b/keyboards/handwired/woodpad/config.h index 77be4a0d9..d08c47387 100644 --- a/keyboards/handwired/woodpad/config.h +++ b/keyboards/handwired/woodpad/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/handwired/xealous/rev1/config.h b/keyboards/handwired/xealous/rev1/config.h index f58c8f90b..ab39dfbc1 100644 --- a/keyboards/handwired/xealous/rev1/config.h +++ b/keyboards/handwired/xealous/rev1/config.h | |||
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | // #define BACKLIGHT_LEVELS 3 | 62 | // #define BACKLIGHT_LEVELS 3 |
63 | 63 | ||
64 | /* Set 0 if debouncing isn't needed */ | 64 | /* Set 0 if debouncing isn't needed */ |
65 | #define DEBOUNCING_DELAY 5 | 65 | #define DEBOUNCE 5 |
66 | 66 | ||
67 | /* | 67 | /* |
68 | * Feature disable options | 68 | * Feature disable options |
diff --git a/keyboards/hecomi/alpha/config.h b/keyboards/hecomi/alpha/config.h index 8a65f146b..dbc94454f 100644 --- a/keyboards/hecomi/alpha/config.h +++ b/keyboards/hecomi/alpha/config.h | |||
@@ -79,7 +79,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
79 | #endif | 79 | #endif |
80 | 80 | ||
81 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 81 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
82 | #define DEBOUNCING_DELAY 5 | 82 | #define DEBOUNCE 5 |
83 | 83 | ||
84 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 84 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
85 | //#define MATRIX_HAS_GHOST | 85 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/helix/pico/config.h b/keyboards/helix/pico/config.h index 343cecd59..b377332ef 100644 --- a/keyboards/helix/pico/config.h +++ b/keyboards/helix/pico/config.h | |||
@@ -63,7 +63,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
63 | // #define BACKLIGHT_LEVELS 3 | 63 | // #define BACKLIGHT_LEVELS 3 |
64 | 64 | ||
65 | /* Set 0 if debouncing isn't needed */ | 65 | /* Set 0 if debouncing isn't needed */ |
66 | #define DEBOUNCING_DELAY 5 | 66 | #define DEBOUNCE 5 |
67 | 67 | ||
68 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 68 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
69 | //#define LOCKING_SUPPORT_ENABLE | 69 | //#define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/helix/rev1/config.h b/keyboards/helix/rev1/config.h index 22e61acc7..454e8ee62 100644 --- a/keyboards/helix/rev1/config.h +++ b/keyboards/helix/rev1/config.h | |||
@@ -60,7 +60,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
60 | // #define BACKLIGHT_LEVELS 3 | 60 | // #define BACKLIGHT_LEVELS 3 |
61 | 61 | ||
62 | /* Set 0 if debouncing isn't needed */ | 62 | /* Set 0 if debouncing isn't needed */ |
63 | #define DEBOUNCING_DELAY 5 | 63 | #define DEBOUNCE 5 |
64 | 64 | ||
65 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 65 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
66 | #define LOCKING_SUPPORT_ENABLE | 66 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/helix/rev2/config.h b/keyboards/helix/rev2/config.h index 2dc2fb8dd..ec7445859 100644 --- a/keyboards/helix/rev2/config.h +++ b/keyboards/helix/rev2/config.h | |||
@@ -72,7 +72,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
72 | // #define BACKLIGHT_LEVELS 3 | 72 | // #define BACKLIGHT_LEVELS 3 |
73 | 73 | ||
74 | /* Set 0 if debouncing isn't needed */ | 74 | /* Set 0 if debouncing isn't needed */ |
75 | #define DEBOUNCING_DELAY 5 | 75 | #define DEBOUNCE 5 |
76 | 76 | ||
77 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 77 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
78 | //#define LOCKING_SUPPORT_ENABLE | 78 | //#define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/hid_liber/config.h b/keyboards/hid_liber/config.h index 4519d8628..c21307e1a 100755 --- a/keyboards/hid_liber/config.h +++ b/keyboards/hid_liber/config.h | |||
@@ -45,7 +45,7 @@ | |||
45 | //#define MATRIX_HAS_GHOST | 45 | //#define MATRIX_HAS_GHOST |
46 | 46 | ||
47 | /* Set 0 if debouncing isn't needed */ | 47 | /* Set 0 if debouncing isn't needed */ |
48 | #define DEBOUNCING_DELAY 5 | 48 | #define DEBOUNCE 5 |
49 | 49 | ||
50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
51 | #define LOCKING_SUPPORT_ENABLE | 51 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/hifumi/config.h b/keyboards/hifumi/config.h index dccb0352d..b4f192a7a 100644 --- a/keyboards/hifumi/config.h +++ b/keyboards/hifumi/config.h | |||
@@ -46,7 +46,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
46 | #define DIODE_DIRECTION COL2ROW | 46 | #define DIODE_DIRECTION COL2ROW |
47 | 47 | ||
48 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 48 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
49 | #define DEBOUNCING_DELAY 5 | 49 | #define DEBOUNCE 5 |
50 | 50 | ||
51 | /* ws2812 RGB LED */ | 51 | /* ws2812 RGB LED */ |
52 | #define RGB_DI_PIN D3 | 52 | #define RGB_DI_PIN D3 |
diff --git a/keyboards/hineybush/h87a/config.h b/keyboards/hineybush/h87a/config.h index 2e6c37e33..245e6eda8 100644 --- a/keyboards/hineybush/h87a/config.h +++ b/keyboards/hineybush/h87a/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | #define BACKLIGHT_LEVELS 3 | 53 | #define BACKLIGHT_LEVELS 3 |
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 5 | 56 | #define DEBOUNCE 5 |
57 | 57 | ||
58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
59 | //#define MATRIX_HAS_GHOST | 59 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/hineybush/hineyg80/config.h b/keyboards/hineybush/hineyg80/config.h index 7e75c62b3..4072def2f 100644 --- a/keyboards/hineybush/hineyg80/config.h +++ b/keyboards/hineybush/hineyg80/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
@@ -44,4 +44,3 @@ | |||
44 | #define RGBLIGHT_SAT_STEP 8 | 44 | #define RGBLIGHT_SAT_STEP 8 |
45 | #define RGBLIGHT_VAL_STEP 8 | 45 | #define RGBLIGHT_VAL_STEP 8 |
46 | #endif | 46 | #endif |
47 | |||
diff --git a/keyboards/hs60/v1/config.h b/keyboards/hs60/v1/config.h index ee546f3f1..762ab319f 100644 --- a/keyboards/hs60/v1/config.h +++ b/keyboards/hs60/v1/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | #define DIODE_DIRECTION COL2ROW | 54 | #define DIODE_DIRECTION COL2ROW |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/hs60/v1/v1.c b/keyboards/hs60/v1/v1.c index 5267c9457..70c1c2128 100644 --- a/keyboards/hs60/v1/v1.c +++ b/keyboards/hs60/v1/v1.c | |||
@@ -315,7 +315,7 @@ void bootmagic_lite(void) | |||
315 | 315 | ||
316 | // We need multiple scans because debouncing can't be turned off. | 316 | // We need multiple scans because debouncing can't be turned off. |
317 | matrix_scan(); | 317 | matrix_scan(); |
318 | wait_ms(DEBOUNCING_DELAY); | 318 | wait_ms(DEBOUNCE); |
319 | matrix_scan(); | 319 | matrix_scan(); |
320 | 320 | ||
321 | // If the Esc and space bar are held down on power up, | 321 | // If the Esc and space bar are held down on power up, |
diff --git a/keyboards/hs60/v2/config.h b/keyboards/hs60/v2/config.h index 05255d133..7169d846b 100644 --- a/keyboards/hs60/v2/config.h +++ b/keyboards/hs60/v2/config.h | |||
@@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
39 | #define DIODE_DIRECTION COL2ROW | 39 | #define DIODE_DIRECTION COL2ROW |
40 | 40 | ||
41 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 41 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
42 | #define DEBOUNCING_DELAY 5 | 42 | #define DEBOUNCE 5 |
43 | 43 | ||
44 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 44 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
45 | //#define MATRIX_HAS_GHOST | 45 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/idobo/config.h b/keyboards/idobo/config.h index 122180780..e1c08afae 100644 --- a/keyboards/idobo/config.h +++ b/keyboards/idobo/config.h | |||
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
65 | #define DEBOUNCING_DELAY 5 | 65 | #define DEBOUNCE 5 |
66 | 66 | ||
67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
68 | //#define MATRIX_HAS_GHOST | 68 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/jc65/v32u4/config.h b/keyboards/jc65/v32u4/config.h index 98256b128..8233dd1e8 100644 --- a/keyboards/jc65/v32u4/config.h +++ b/keyboards/jc65/v32u4/config.h | |||
@@ -52,6 +52,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | #define DIODE_DIRECTION COL2ROW | 54 | #define DIODE_DIRECTION COL2ROW |
55 | #define DEBOUNCING_DELAY 5 | 55 | #define DEBOUNCE 5 |
56 | 56 | ||
57 | #endif | 57 | #endif |
diff --git a/keyboards/jd40/config.h b/keyboards/jd40/config.h index 70648d2f5..c03bb3aec 100644 --- a/keyboards/jd40/config.h +++ b/keyboards/jd40/config.h | |||
@@ -50,7 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
50 | #define DIODE_DIRECTION COL2ROW | 50 | #define DIODE_DIRECTION COL2ROW |
51 | 51 | ||
52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
53 | #define DEBOUNCING_DELAY 5 | 53 | #define DEBOUNCE 5 |
54 | 54 | ||
55 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 55 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
56 | //#define MATRIX_HAS_GHOST | 56 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/jd45/config.h b/keyboards/jd45/config.h index d3137b9f4..02968b44e 100644 --- a/keyboards/jd45/config.h +++ b/keyboards/jd45/config.h | |||
@@ -49,7 +49,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
49 | #define BACKLIGHT_LEVELS 3 | 49 | #define BACKLIGHT_LEVELS 3 |
50 | 50 | ||
51 | /* Set 0 if debouncing isn't needed */ | 51 | /* Set 0 if debouncing isn't needed */ |
52 | #define DEBOUNCING_DELAY 5 | 52 | #define DEBOUNCE 5 |
53 | 53 | ||
54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
55 | #define LOCKING_SUPPORT_ENABLE | 55 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/jd45/keymaps/mjt/config.h b/keyboards/jd45/keymaps/mjt/config.h index 5507caae5..da1adc9af 100644 --- a/keyboards/jd45/keymaps/mjt/config.h +++ b/keyboards/jd45/keymaps/mjt/config.h | |||
@@ -52,7 +52,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
52 | #define BACKLIGHT_LEVELS 3 | 52 | #define BACKLIGHT_LEVELS 3 |
53 | 53 | ||
54 | /* Set 0 if debouncing isn't needed */ | 54 | /* Set 0 if debouncing isn't needed */ |
55 | #define DEBOUNCING_DELAY 5 | 55 | #define DEBOUNCE 5 |
56 | 56 | ||
57 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 57 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
58 | #define LOCKING_SUPPORT_ENABLE | 58 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/jj40/config.h b/keyboards/jj40/config.h index e88147ac8..c068685a4 100644 --- a/keyboards/jj40/config.h +++ b/keyboards/jj40/config.h | |||
@@ -42,7 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
42 | #define RGBLIGHT_ANIMATIONS | 42 | #define RGBLIGHT_ANIMATIONS |
43 | 43 | ||
44 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 44 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
45 | #define DEBOUNCING_DELAY 5 | 45 | #define DEBOUNCE 5 |
46 | 46 | ||
47 | #define NO_UART 1 | 47 | #define NO_UART 1 |
48 | 48 | ||
diff --git a/keyboards/jj4x4/config.h b/keyboards/jj4x4/config.h index a8df46f01..80fa07d3b 100644 --- a/keyboards/jj4x4/config.h +++ b/keyboards/jj4x4/config.h | |||
@@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
45 | #define RGBLIGHT_ANIMATIONS | 45 | #define RGBLIGHT_ANIMATIONS |
46 | 46 | ||
47 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 47 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
48 | #define DEBOUNCING_DELAY 5 | 48 | #define DEBOUNCE 5 |
49 | 49 | ||
50 | #define NO_UART 1 | 50 | #define NO_UART 1 |
51 | 51 | ||
diff --git a/keyboards/kagamidget/config.h b/keyboards/kagamidget/config.h index fc9463aee..00e09530e 100644 --- a/keyboards/kagamidget/config.h +++ b/keyboards/kagamidget/config.h | |||
@@ -57,7 +57,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
57 | #define RGBLIGHT_VAL_STEP 8 | 57 | #define RGBLIGHT_VAL_STEP 8 |
58 | 58 | ||
59 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 59 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
60 | #define DEBOUNCING_DELAY 5 | 60 | #define DEBOUNCE 5 |
61 | 61 | ||
62 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 62 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
63 | //#define MATRIX_HAS_GHOST | 63 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/katana60/config.h b/keyboards/katana60/config.h index eb67c0b21..3385ddb9c 100644 --- a/keyboards/katana60/config.h +++ b/keyboards/katana60/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/kbdfans/kbd19x/config.h b/keyboards/kbdfans/kbd19x/config.h index 9c5f2ba38..d722dc261 100644 --- a/keyboards/kbdfans/kbd19x/config.h +++ b/keyboards/kbdfans/kbd19x/config.h | |||
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
65 | #define DEBOUNCING_DELAY 5 | 65 | #define DEBOUNCE 5 |
66 | 66 | ||
67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
68 | //#define MATRIX_HAS_GHOST | 68 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/kbdfans/kbd4x/config.h b/keyboards/kbdfans/kbd4x/config.h index c99fcc73f..07bc4b990 100644 --- a/keyboards/kbdfans/kbd4x/config.h +++ b/keyboards/kbdfans/kbd4x/config.h | |||
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
65 | #define DEBOUNCING_DELAY 5 | 65 | #define DEBOUNCE 5 |
66 | 66 | ||
67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
68 | //#define MATRIX_HAS_GHOST | 68 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/kbdfans/kbd66/config.h b/keyboards/kbdfans/kbd66/config.h index 730df1307..a2666a619 100644 --- a/keyboards/kbdfans/kbd66/config.h +++ b/keyboards/kbdfans/kbd66/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | #define BREATHING_PERIOD 6 | 54 | #define BREATHING_PERIOD 6 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
@@ -180,4 +180,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
180 | 180 | ||
181 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | 181 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ |
182 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | 182 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 |
183 | |||
diff --git a/keyboards/kbdfans/kbd67/hotswap/config.h b/keyboards/kbdfans/kbd67/hotswap/config.h index 8822b213e..fca9916ed 100644 --- a/keyboards/kbdfans/kbd67/hotswap/config.h +++ b/keyboards/kbdfans/kbd67/hotswap/config.h | |||
@@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
80 | #endif | 80 | #endif |
81 | 81 | ||
82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
83 | #define DEBOUNCING_DELAY 5 | 83 | #define DEBOUNCE 5 |
84 | 84 | ||
85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
86 | //#define MATRIX_HAS_GHOST | 86 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/kbdfans/kbd67/rev1/config.h b/keyboards/kbdfans/kbd67/rev1/config.h index a98687569..7a26192f4 100644 --- a/keyboards/kbdfans/kbd67/rev1/config.h +++ b/keyboards/kbdfans/kbd67/rev1/config.h | |||
@@ -75,7 +75,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
75 | #endif | 75 | #endif |
76 | 76 | ||
77 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 77 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
78 | #define DEBOUNCING_DELAY 5 | 78 | #define DEBOUNCE 5 |
79 | 79 | ||
80 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 80 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
81 | //#define MATRIX_HAS_GHOST | 81 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/kbdfans/kbd67/rev2/config.h b/keyboards/kbdfans/kbd67/rev2/config.h index 1c8385f7d..97945eec8 100644 --- a/keyboards/kbdfans/kbd67/rev2/config.h +++ b/keyboards/kbdfans/kbd67/rev2/config.h | |||
@@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
45 | #endif | 45 | #endif |
46 | 46 | ||
47 | /* Set 0 if debouncing isn't needed */ | 47 | /* Set 0 if debouncing isn't needed */ |
48 | #define DEBOUNCING_DELAY 5 | 48 | #define DEBOUNCE 5 |
49 | 49 | ||
50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
51 | #define LOCKING_SUPPORT_ENABLE | 51 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/kbdfans/kbd6x/config.h b/keyboards/kbdfans/kbd6x/config.h index d3f1ee82c..1ee31e569 100644 --- a/keyboards/kbdfans/kbd6x/config.h +++ b/keyboards/kbdfans/kbd6x/config.h | |||
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
65 | #define DEBOUNCING_DELAY 5 | 65 | #define DEBOUNCE 5 |
66 | 66 | ||
67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
68 | //#define MATRIX_HAS_GHOST | 68 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/kbdfans/kbd75/config.h b/keyboards/kbdfans/kbd75/config.h index 6f0cd86de..611e682e5 100644 --- a/keyboards/kbdfans/kbd75/config.h +++ b/keyboards/kbdfans/kbd75/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | 34 | ||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
36 | #define LOCKING_SUPPORT_ENABLE | 36 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/kbdfans/kbd8x/config.h b/keyboards/kbdfans/kbd8x/config.h index 2cae29626..bdd310440 100644 --- a/keyboards/kbdfans/kbd8x/config.h +++ b/keyboards/kbdfans/kbd8x/config.h | |||
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
65 | #define DEBOUNCING_DELAY 5 | 65 | #define DEBOUNCE 5 |
66 | 66 | ||
67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
68 | //#define MATRIX_HAS_GHOST | 68 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/kc60/config.h b/keyboards/kc60/config.h index 5c002f9b3..7e9cdaa08 100644 --- a/keyboards/kc60/config.h +++ b/keyboards/kc60/config.h | |||
@@ -56,7 +56,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
56 | #define DIODE_DIRECTION COL2ROW | 56 | #define DIODE_DIRECTION COL2ROW |
57 | 57 | ||
58 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 58 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
59 | #define DEBOUNCING_DELAY 5 | 59 | #define DEBOUNCE 5 |
60 | 60 | ||
61 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 61 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
62 | //#define MATRIX_HAS_GHOST | 62 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/kc60se/config.h b/keyboards/kc60se/config.h index 66a4aa0cb..5fffe6114 100644 --- a/keyboards/kc60se/config.h +++ b/keyboards/kc60se/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | #define BACKLIGHT_LEVELS 6 | 47 | #define BACKLIGHT_LEVELS 6 |
48 | 48 | ||
49 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 49 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 52 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
53 | //#define MATRIX_HAS_GHOST | 53 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/keebio/bdn9/config.h b/keyboards/keebio/bdn9/config.h index 1637ce45f..19e625348 100644 --- a/keyboards/keebio/bdn9/config.h +++ b/keyboards/keebio/bdn9/config.h | |||
@@ -60,7 +60,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
60 | #endif | 60 | #endif |
61 | 61 | ||
62 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 62 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
63 | #define DEBOUNCING_DELAY 5 | 63 | #define DEBOUNCE 5 |
64 | 64 | ||
65 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 65 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
66 | #define LOCKING_SUPPORT_ENABLE | 66 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/keebio/bfo9000/config.h b/keyboards/keebio/bfo9000/config.h index c5afb265f..b45ec9c2f 100644 --- a/keyboards/keebio/bfo9000/config.h +++ b/keyboards/keebio/bfo9000/config.h | |||
@@ -38,7 +38,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
38 | #define MATRIX_COL_PINS { B5, B6, B2, B3, B1, F7, F6, F5, F4 } | 38 | #define MATRIX_COL_PINS { B5, B6, B2, B3, B1, F7, F6, F5, F4 } |
39 | 39 | ||
40 | /* Set 0 if debouncing isn't needed */ | 40 | /* Set 0 if debouncing isn't needed */ |
41 | #define DEBOUNCING_DELAY 5 | 41 | #define DEBOUNCE 5 |
42 | 42 | ||
43 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 43 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
44 | #define LOCKING_SUPPORT_ENABLE | 44 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/keebio/chocopad/config.h b/keyboards/keebio/chocopad/config.h index fb00ae70a..d8831556c 100644 --- a/keyboards/keebio/chocopad/config.h +++ b/keyboards/keebio/chocopad/config.h | |||
@@ -27,7 +27,7 @@ | |||
27 | #define BACKLIGHT_LEVELS 6 | 27 | #define BACKLIGHT_LEVELS 6 |
28 | 28 | ||
29 | /* Set 0 if debouncing isn't needed */ | 29 | /* Set 0 if debouncing isn't needed */ |
30 | #define DEBOUNCING_DELAY 5 | 30 | #define DEBOUNCE 5 |
31 | 31 | ||
32 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 32 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
33 | #define LOCKING_SUPPORT_ENABLE | 33 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/keebio/dilly/config.h b/keyboards/keebio/dilly/config.h index 1489ec302..e4d17df47 100644 --- a/keyboards/keebio/dilly/config.h +++ b/keyboards/keebio/dilly/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | 34 | ||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
36 | #define LOCKING_SUPPORT_ENABLE | 36 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/keebio/fourier/config.h b/keyboards/keebio/fourier/config.h index 70967a13f..9ddc53a0c 100644 --- a/keyboards/keebio/fourier/config.h +++ b/keyboards/keebio/fourier/config.h | |||
@@ -52,7 +52,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
52 | //#define MATRIX_HAS_GHOST | 52 | //#define MATRIX_HAS_GHOST |
53 | 53 | ||
54 | /* Set 0 if debouncing isn't needed */ | 54 | /* Set 0 if debouncing isn't needed */ |
55 | #define DEBOUNCING_DELAY 5 | 55 | #define DEBOUNCE 5 |
56 | 56 | ||
57 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 57 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
58 | #define LOCKING_SUPPORT_ENABLE | 58 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/keebio/levinson/rev1/config.h b/keyboards/keebio/levinson/rev1/config.h index eec95f727..52cf7baf7 100644 --- a/keyboards/keebio/levinson/rev1/config.h +++ b/keyboards/keebio/levinson/rev1/config.h | |||
@@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
39 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 } | 39 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 } |
40 | 40 | ||
41 | /* Set 0 if debouncing isn't needed */ | 41 | /* Set 0 if debouncing isn't needed */ |
42 | #define DEBOUNCING_DELAY 5 | 42 | #define DEBOUNCE 5 |
43 | 43 | ||
44 | /* serial.c configuration for split keyboard */ | 44 | /* serial.c configuration for split keyboard */ |
45 | #define SOFT_SERIAL_PIN D0 | 45 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/keebio/levinson/rev2/config.h b/keyboards/keebio/levinson/rev2/config.h index a9fe89586..1365ae792 100644 --- a/keyboards/keebio/levinson/rev2/config.h +++ b/keyboards/keebio/levinson/rev2/config.h | |||
@@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
39 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 } | 39 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 } |
40 | 40 | ||
41 | /* Set 0 if debouncing isn't needed */ | 41 | /* Set 0 if debouncing isn't needed */ |
42 | #define DEBOUNCING_DELAY 5 | 42 | #define DEBOUNCE 5 |
43 | 43 | ||
44 | /* serial.c configuration for split keyboard */ | 44 | /* serial.c configuration for split keyboard */ |
45 | #define SOFT_SERIAL_PIN D0 | 45 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/keebio/nyquist/rev1/config.h b/keyboards/keebio/nyquist/rev1/config.h index 98381aca7..75fa43b58 100644 --- a/keyboards/keebio/nyquist/rev1/config.h +++ b/keyboards/keebio/nyquist/rev1/config.h | |||
@@ -44,7 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
44 | // #define BACKLIGHT_LEVELS 3 | 44 | // #define BACKLIGHT_LEVELS 3 |
45 | 45 | ||
46 | /* Set 0 if debouncing isn't needed */ | 46 | /* Set 0 if debouncing isn't needed */ |
47 | #define DEBOUNCING_DELAY 5 | 47 | #define DEBOUNCE 5 |
48 | 48 | ||
49 | /* serial.c configuration for split keyboard */ | 49 | /* serial.c configuration for split keyboard */ |
50 | #define SOFT_SERIAL_PIN D0 | 50 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/keebio/nyquist/rev2/config.h b/keyboards/keebio/nyquist/rev2/config.h index 52c50694b..9775113c6 100644 --- a/keyboards/keebio/nyquist/rev2/config.h +++ b/keyboards/keebio/nyquist/rev2/config.h | |||
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
41 | //#define MATRIX_HAS_GHOST | 41 | //#define MATRIX_HAS_GHOST |
42 | 42 | ||
43 | /* Set 0 if debouncing isn't needed */ | 43 | /* Set 0 if debouncing isn't needed */ |
44 | #define DEBOUNCING_DELAY 5 | 44 | #define DEBOUNCE 5 |
45 | 45 | ||
46 | /* serial.c configuration for split keyboard */ | 46 | /* serial.c configuration for split keyboard */ |
47 | #define SOFT_SERIAL_PIN D0 | 47 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/keebio/nyquist/rev3/config.h b/keyboards/keebio/nyquist/rev3/config.h index 3c7822def..b2573d1dc 100644 --- a/keyboards/keebio/nyquist/rev3/config.h +++ b/keyboards/keebio/nyquist/rev3/config.h | |||
@@ -42,7 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
42 | //#define MATRIX_HAS_GHOST | 42 | //#define MATRIX_HAS_GHOST |
43 | 43 | ||
44 | /* Set 0 if debouncing isn't needed */ | 44 | /* Set 0 if debouncing isn't needed */ |
45 | #define DEBOUNCING_DELAY 5 | 45 | #define DEBOUNCE 5 |
46 | 46 | ||
47 | /* serial.c configuration for split keyboard */ | 47 | /* serial.c configuration for split keyboard */ |
48 | #define SOFT_SERIAL_PIN D0 | 48 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/keebio/quefrency/rev1/config.h b/keyboards/keebio/quefrency/rev1/config.h index 67cef6195..9778ef470 100644 --- a/keyboards/keebio/quefrency/rev1/config.h +++ b/keyboards/keebio/quefrency/rev1/config.h | |||
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
41 | #define SPLIT_HAND_PIN D2 | 41 | #define SPLIT_HAND_PIN D2 |
42 | 42 | ||
43 | /* Set 0 if debouncing isn't needed */ | 43 | /* Set 0 if debouncing isn't needed */ |
44 | #define DEBOUNCING_DELAY 5 | 44 | #define DEBOUNCE 5 |
45 | 45 | ||
46 | /* serial.c configuration for split keyboard */ | 46 | /* serial.c configuration for split keyboard */ |
47 | #define SOFT_SERIAL_PIN D0 | 47 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/keebio/rorschach/rev1/config.h b/keyboards/keebio/rorschach/rev1/config.h index 13402544f..bcfce2bee 100644 --- a/keyboards/keebio/rorschach/rev1/config.h +++ b/keyboards/keebio/rorschach/rev1/config.h | |||
@@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
40 | #define DIODE_DIRECTION COL2ROW | 40 | #define DIODE_DIRECTION COL2ROW |
41 | 41 | ||
42 | /* Set 0 if debouncing isn't needed */ | 42 | /* Set 0 if debouncing isn't needed */ |
43 | #define DEBOUNCING_DELAY 5 | 43 | #define DEBOUNCE 5 |
44 | 44 | ||
45 | /* serial.c configuration for split keyboard */ | 45 | /* serial.c configuration for split keyboard */ |
46 | #define SOFT_SERIAL_PIN D0 | 46 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/keebio/tragicforce68/config.h b/keyboards/keebio/tragicforce68/config.h index b415b5d71..4a1b6378c 100644 --- a/keyboards/keebio/tragicforce68/config.h +++ b/keyboards/keebio/tragicforce68/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | #define BACKLIGHT_LEVELS 7 | 53 | #define BACKLIGHT_LEVELS 7 |
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 5 | 56 | #define DEBOUNCE 5 |
57 | 57 | ||
58 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 58 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
59 | #define LOCKING_SUPPORT_ENABLE | 59 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/keebio/viterbi/rev1/config.h b/keyboards/keebio/viterbi/rev1/config.h index e6fc13abd..12a61448d 100644 --- a/keyboards/keebio/viterbi/rev1/config.h +++ b/keyboards/keebio/viterbi/rev1/config.h | |||
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
41 | #define DIODE_DIRECTION COL2ROW | 41 | #define DIODE_DIRECTION COL2ROW |
42 | 42 | ||
43 | /* Set 0 if debouncing isn't needed */ | 43 | /* Set 0 if debouncing isn't needed */ |
44 | #define DEBOUNCING_DELAY 5 | 44 | #define DEBOUNCE 5 |
45 | 45 | ||
46 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 46 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
47 | #define LOCKING_SUPPORT_ENABLE | 47 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/keebio/viterbi/rev2/config.h b/keyboards/keebio/viterbi/rev2/config.h index b2970610e..0b78604d8 100644 --- a/keyboards/keebio/viterbi/rev2/config.h +++ b/keyboards/keebio/viterbi/rev2/config.h | |||
@@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
40 | #define DIODE_DIRECTION COL2ROW | 40 | #define DIODE_DIRECTION COL2ROW |
41 | 41 | ||
42 | /* Set 0 if debouncing isn't needed */ | 42 | /* Set 0 if debouncing isn't needed */ |
43 | #define DEBOUNCING_DELAY 5 | 43 | #define DEBOUNCE 5 |
44 | 44 | ||
45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
46 | #define LOCKING_SUPPORT_ENABLE | 46 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/keebio/wavelet/config.h b/keyboards/keebio/wavelet/config.h index 5610bba17..6f67fdbaf 100644 --- a/keyboards/keebio/wavelet/config.h +++ b/keyboards/keebio/wavelet/config.h | |||
@@ -38,7 +38,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
38 | #define MATRIX_COL_PINS { F6, B1, B2, B6, B4, E6 } | 38 | #define MATRIX_COL_PINS { F6, B1, B2, B6, B4, E6 } |
39 | 39 | ||
40 | /* Set 0 if debouncing isn't needed */ | 40 | /* Set 0 if debouncing isn't needed */ |
41 | #define DEBOUNCING_DELAY 5 | 41 | #define DEBOUNCE 5 |
42 | 42 | ||
43 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 43 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
44 | #define LOCKING_SUPPORT_ENABLE | 44 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/keycapsss/o4l_5x12/config.h b/keyboards/keycapsss/o4l_5x12/config.h index b53e372d0..67bde35cf 100644 --- a/keyboards/keycapsss/o4l_5x12/config.h +++ b/keyboards/keycapsss/o4l_5x12/config.h | |||
@@ -34,7 +34,7 @@ | |||
34 | #endif | 34 | #endif |
35 | 35 | ||
36 | /* Set 0 if debouncing isn't needed */ | 36 | /* Set 0 if debouncing isn't needed */ |
37 | #define DEBOUNCING_DELAY 5 | 37 | #define DEBOUNCE 5 |
38 | 38 | ||
39 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 39 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
40 | #define LOCKING_SUPPORT_ENABLE | 40 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/kinesis/config.h b/keyboards/kinesis/config.h index 74e85f6f1..368037d8b 100644 --- a/keyboards/kinesis/config.h +++ b/keyboards/kinesis/config.h | |||
@@ -36,7 +36,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | #define MOUSEKEY_WHEEL_TIME_TO_MAX 1 | 36 | #define MOUSEKEY_WHEEL_TIME_TO_MAX 1 |
37 | 37 | ||
38 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 38 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
39 | #define DEBOUNCING_DELAY 5 | 39 | #define DEBOUNCE 5 |
40 | 40 | ||
41 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 41 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
42 | #define LOCKING_SUPPORT_ENABLE | 42 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/kinesis/stapelberg/config.h b/keyboards/kinesis/stapelberg/config.h index 321aec5eb..992480195 100644 --- a/keyboards/kinesis/stapelberg/config.h +++ b/keyboards/kinesis/stapelberg/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | 30 | ||
31 | 31 | ||
32 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 32 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | 34 | ||
35 | /* don't know if this should be defined at the board or top level. Assuming board | 35 | /* don't know if this should be defined at the board or top level. Assuming board |
36 | #define MOUSEKEY_DELAY 100 | 36 | #define MOUSEKEY_DELAY 100 |
diff --git a/keyboards/kira75/config.h b/keyboards/kira75/config.h index 4f98c1df8..15be87d26 100644 --- a/keyboards/kira75/config.h +++ b/keyboards/kira75/config.h | |||
@@ -61,7 +61,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
61 | #define RGBLIGHT_VAL_STEP 8 | 61 | #define RGBLIGHT_VAL_STEP 8 |
62 | 62 | ||
63 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 63 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
64 | #define DEBOUNCING_DELAY 5 | 64 | #define DEBOUNCE 5 |
65 | 65 | ||
66 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 66 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
67 | //#define MATRIX_HAS_GHOST | 67 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/kmac/config.h b/keyboards/kmac/config.h index bea682173..110a7ac0f 100644 --- a/keyboards/kmac/config.h +++ b/keyboards/kmac/config.h | |||
@@ -50,7 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
50 | // #define BACKLIGHT_BREATHING | 50 | // #define BACKLIGHT_BREATHING |
51 | 51 | ||
52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
53 | #define DEBOUNCING_DELAY 5 | 53 | #define DEBOUNCE 5 |
54 | 54 | ||
55 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 55 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
56 | //#define MATRIX_HAS_GHOST | 56 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/kmac/matrix.c b/keyboards/kmac/matrix.c index 82f0621f2..00da96604 100644 --- a/keyboards/kmac/matrix.c +++ b/keyboards/kmac/matrix.c | |||
@@ -28,8 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
28 | 28 | ||
29 | 29 | ||
30 | /* Set 0 if debouncing isn't needed */ | 30 | /* Set 0 if debouncing isn't needed */ |
31 | #ifndef DEBOUNCING_DELAY | 31 | #ifndef DEBOUNCE |
32 | # define DEBOUNCING_DELAY 5 | 32 | # define DEBOUNCE 5 |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | #define COL_SHIFTER ((uint32_t)1) | 35 | #define COL_SHIFTER ((uint32_t)1) |
@@ -83,7 +83,7 @@ uint8_t matrix_scan(void) | |||
83 | } | 83 | } |
84 | } | 84 | } |
85 | 85 | ||
86 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 86 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
87 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { | 87 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { |
88 | matrix[i] = matrix_debouncing[i]; | 88 | matrix[i] = matrix_debouncing[i]; |
89 | } | 89 | } |
diff --git a/keyboards/kmini/config.h b/keyboards/kmini/config.h index 7a795d49d..b5460c9de 100755 --- a/keyboards/kmini/config.h +++ b/keyboards/kmini/config.h | |||
@@ -48,6 +48,6 @@ | |||
48 | // #define BACKLIGHT_BREATHING | 48 | // #define BACKLIGHT_BREATHING |
49 | 49 | ||
50 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 50 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
51 | #define DEBOUNCING_DELAY 5 | 51 | #define DEBOUNCE 5 |
52 | 52 | ||
53 | #endif | 53 | #endif |
diff --git a/keyboards/kmini/matrix.c b/keyboards/kmini/matrix.c index 69135909a..9888f1a76 100755 --- a/keyboards/kmini/matrix.c +++ b/keyboards/kmini/matrix.c | |||
@@ -27,8 +27,8 @@ | |||
27 | 27 | ||
28 | 28 | ||
29 | /* Set 0 if debouncing isn't needed */ | 29 | /* Set 0 if debouncing isn't needed */ |
30 | #ifndef DEBOUNCING_DELAY | 30 | #ifndef DEBOUNCE |
31 | # define DEBOUNCING_DELAY 5 | 31 | # define DEBOUNCE 5 |
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | #define COL_SHIFTER ((uint32_t)1) | 34 | #define COL_SHIFTER ((uint32_t)1) |
@@ -98,7 +98,7 @@ uint8_t matrix_scan(void) | |||
98 | } | 98 | } |
99 | } | 99 | } |
100 | 100 | ||
101 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 101 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
102 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { | 102 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { |
103 | matrix[i] = matrix_debouncing[i]; | 103 | matrix[i] = matrix_debouncing[i]; |
104 | } | 104 | } |
diff --git a/keyboards/knops/mini/config.h b/keyboards/knops/mini/config.h index 312914127..01a5f44ba 100644 --- a/keyboards/knops/mini/config.h +++ b/keyboards/knops/mini/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/kona_classic/config.h b/keyboards/kona_classic/config.h index 819a7475a..affd572b7 100644 --- a/keyboards/kona_classic/config.h +++ b/keyboards/kona_classic/config.h | |||
@@ -61,7 +61,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
61 | //#define MATRIX_HAS_GHOST | 61 | //#define MATRIX_HAS_GHOST |
62 | 62 | ||
63 | /* Set 0 if debouncing isn't needed */ | 63 | /* Set 0 if debouncing isn't needed */ |
64 | #define DEBOUNCING_DELAY 5 | 64 | #define DEBOUNCE 5 |
65 | 65 | ||
66 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 66 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
67 | #define LOCKING_SUPPORT_ENABLE | 67 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/laptreus/config.h b/keyboards/laptreus/config.h index de6b7ce94..675d7b007 100644 --- a/keyboards/laptreus/config.h +++ b/keyboards/laptreus/config.h | |||
@@ -46,7 +46,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
46 | // #define BACKLIGHT_LEVELS 3 | 46 | // #define BACKLIGHT_LEVELS 3 |
47 | 47 | ||
48 | /* Set 0 if debouncing isn't needed */ | 48 | /* Set 0 if debouncing isn't needed */ |
49 | #define DEBOUNCING_DELAY 5 | 49 | #define DEBOUNCE 5 |
50 | 50 | ||
51 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 51 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
52 | #define LOCKING_SUPPORT_ENABLE | 52 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/launchpad/config.h b/keyboards/launchpad/config.h index 4023a2201..d93fe65d2 100644 --- a/keyboards/launchpad/config.h +++ b/keyboards/launchpad/config.h | |||
@@ -38,7 +38,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
38 | //#define MATRIX_HAS_GHOST | 38 | //#define MATRIX_HAS_GHOST |
39 | 39 | ||
40 | /* Set 0 if debouncing isn't needed */ | 40 | /* Set 0 if debouncing isn't needed */ |
41 | #define DEBOUNCING_DELAY 5 | 41 | #define DEBOUNCE 5 |
42 | 42 | ||
43 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 43 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
44 | #define LOCKING_SUPPORT_ENABLE | 44 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/lazydesigners/dimple/config.h b/keyboards/lazydesigners/dimple/config.h index 0f7a8798e..9814d1050 100644 --- a/keyboards/lazydesigners/dimple/config.h +++ b/keyboards/lazydesigners/dimple/config.h | |||
@@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
40 | #define DIODE_DIRECTION COL2ROW | 40 | #define DIODE_DIRECTION COL2ROW |
41 | 41 | ||
42 | /* Set 0 if debouncing isn't needed */ | 42 | /* Set 0 if debouncing isn't needed */ |
43 | #define DEBOUNCING_DELAY 5 | 43 | #define DEBOUNCE 5 |
44 | 44 | ||
45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
46 | #define LOCKING_SUPPORT_ENABLE | 46 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/lazydesigners/the50/config.h b/keyboards/lazydesigners/the50/config.h index d1ddbfea4..72246eaba 100644 --- a/keyboards/lazydesigners/the50/config.h +++ b/keyboards/lazydesigners/the50/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/lazydesigners/the60/config.h b/keyboards/lazydesigners/the60/config.h index a767d1dc8..d6bd2205c 100644 --- a/keyboards/lazydesigners/the60/config.h +++ b/keyboards/lazydesigners/the60/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/lets_split/rev1/config.h b/keyboards/lets_split/rev1/config.h index e9dc0a534..c6e7f6479 100644 --- a/keyboards/lets_split/rev1/config.h +++ b/keyboards/lets_split/rev1/config.h | |||
@@ -43,7 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
43 | // #define BACKLIGHT_LEVELS 3 | 43 | // #define BACKLIGHT_LEVELS 3 |
44 | 44 | ||
45 | /* Set 0 if debouncing isn't needed */ | 45 | /* Set 0 if debouncing isn't needed */ |
46 | #define DEBOUNCING_DELAY 5 | 46 | #define DEBOUNCE 5 |
47 | 47 | ||
48 | /* serial.c configuration for split keyboard */ | 48 | /* serial.c configuration for split keyboard */ |
49 | #define SOFT_SERIAL_PIN D0 | 49 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/lets_split/rev2/config.h b/keyboards/lets_split/rev2/config.h index e31026965..2481ce041 100644 --- a/keyboards/lets_split/rev2/config.h +++ b/keyboards/lets_split/rev2/config.h | |||
@@ -43,7 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
43 | // #define BACKLIGHT_LEVELS 3 | 43 | // #define BACKLIGHT_LEVELS 3 |
44 | 44 | ||
45 | /* Set 0 if debouncing isn't needed */ | 45 | /* Set 0 if debouncing isn't needed */ |
46 | #define DEBOUNCING_DELAY 5 | 46 | #define DEBOUNCE 5 |
47 | 47 | ||
48 | /* serial.c configuration for split keyboard */ | 48 | /* serial.c configuration for split keyboard */ |
49 | #define SOFT_SERIAL_PIN D0 | 49 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/lets_split/sockets/config.h b/keyboards/lets_split/sockets/config.h index 9c6367f53..2d3e68610 100644 --- a/keyboards/lets_split/sockets/config.h +++ b/keyboards/lets_split/sockets/config.h | |||
@@ -43,7 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
43 | // #define BACKLIGHT_LEVELS 3 | 43 | // #define BACKLIGHT_LEVELS 3 |
44 | 44 | ||
45 | /* Set 0 if debouncing isn't needed */ | 45 | /* Set 0 if debouncing isn't needed */ |
46 | #define DEBOUNCING_DELAY 5 | 46 | #define DEBOUNCE 5 |
47 | 47 | ||
48 | /* serial.c configuration for split keyboard */ | 48 | /* serial.c configuration for split keyboard */ |
49 | #define SOFT_SERIAL_PIN D0 | 49 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/lets_split_eh/config.h b/keyboards/lets_split_eh/config.h index c227326c0..655d35e1a 100644 --- a/keyboards/lets_split_eh/config.h +++ b/keyboards/lets_split_eh/config.h | |||
@@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
34 | #define MATRIX_COLS 6 | 34 | #define MATRIX_COLS 6 |
35 | 35 | ||
36 | /* Set 0 if debouncing isn't needed */ | 36 | /* Set 0 if debouncing isn't needed */ |
37 | #define DEBOUNCING_DELAY 5 | 37 | #define DEBOUNCE 5 |
38 | 38 | ||
39 | /* serial.c configuration for split keyboard */ | 39 | /* serial.c configuration for split keyboard */ |
40 | //#define SOFT_SERIAL_PIN D0 | 40 | //#define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/lfkeyboards/lfk65_hs/config.h b/keyboards/lfkeyboards/lfk65_hs/config.h index 73e906c3b..f448419d4 100644 --- a/keyboards/lfkeyboards/lfk65_hs/config.h +++ b/keyboards/lfkeyboards/lfk65_hs/config.h | |||
@@ -34,7 +34,7 @@ | |||
34 | #define RGBLIGHT_VAL_STEP 17 | 34 | #define RGBLIGHT_VAL_STEP 17 |
35 | 35 | ||
36 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 36 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
37 | #define DEBOUNCING_DELAY 5 | 37 | #define DEBOUNCE 5 |
38 | 38 | ||
39 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 39 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
40 | //#define MATRIX_HAS_GHOST | 40 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/lfkeyboards/lfk78/config.h b/keyboards/lfkeyboards/lfk78/config.h index 30919894c..44b55b50e 100644 --- a/keyboards/lfkeyboards/lfk78/config.h +++ b/keyboards/lfkeyboards/lfk78/config.h | |||
@@ -65,7 +65,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
65 | #define TAPPING_TERM 200 | 65 | #define TAPPING_TERM 200 |
66 | 66 | ||
67 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 67 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
68 | #define DEBOUNCING_DELAY 5 | 68 | #define DEBOUNCE 5 |
69 | 69 | ||
70 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 70 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
71 | //#define MATRIX_HAS_GHOST | 71 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/lfkeyboards/lfk87/config.h b/keyboards/lfkeyboards/lfk87/config.h index 00df42977..00df4e911 100644 --- a/keyboards/lfkeyboards/lfk87/config.h +++ b/keyboards/lfkeyboards/lfk87/config.h | |||
@@ -65,7 +65,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
65 | #define TAPPING_TERM 200 | 65 | #define TAPPING_TERM 200 |
66 | 66 | ||
67 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 67 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
68 | #define DEBOUNCING_DELAY 5 | 68 | #define DEBOUNCE 5 |
69 | 69 | ||
70 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 70 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
71 | //#define MATRIX_HAS_GHOST | 71 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/lfkeyboards/lfkpad/config.h b/keyboards/lfkeyboards/lfkpad/config.h index ea29e84a4..1d8de837d 100644 --- a/keyboards/lfkeyboards/lfkpad/config.h +++ b/keyboards/lfkeyboards/lfkpad/config.h | |||
@@ -44,7 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
44 | #define TAPPING_TERM 200 | 44 | #define TAPPING_TERM 200 |
45 | 45 | ||
46 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 46 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
47 | #define DEBOUNCING_DELAY 5 | 47 | #define DEBOUNCE 5 |
48 | 48 | ||
49 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 49 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
50 | //#define MATRIX_HAS_GHOST | 50 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/lfkeyboards/mini1800/config.h b/keyboards/lfkeyboards/mini1800/config.h index e4d197aa2..214f5f45a 100644 --- a/keyboards/lfkeyboards/mini1800/config.h +++ b/keyboards/lfkeyboards/mini1800/config.h | |||
@@ -52,7 +52,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
52 | #define TAPPING_TERM 200 | 52 | #define TAPPING_TERM 200 |
53 | 53 | ||
54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
55 | #define DEBOUNCING_DELAY 5 | 55 | #define DEBOUNCE 5 |
56 | 56 | ||
57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
58 | //#define MATRIX_HAS_GHOST | 58 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/lfkeyboards/smk65/config.h b/keyboards/lfkeyboards/smk65/config.h index ddc7c5165..deca087bc 100644 --- a/keyboards/lfkeyboards/smk65/config.h +++ b/keyboards/lfkeyboards/smk65/config.h | |||
@@ -61,7 +61,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
61 | #define RGBLIGHT_VAL_STEP 17 | 61 | #define RGBLIGHT_VAL_STEP 17 |
62 | 62 | ||
63 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 63 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
64 | #define DEBOUNCING_DELAY 5 | 64 | #define DEBOUNCE 5 |
65 | 65 | ||
66 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 66 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
67 | //#define MATRIX_HAS_GHOST | 67 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/lily58/matrix.c b/keyboards/lily58/matrix.c index fc42dd14d..328d16c77 100644 --- a/keyboards/lily58/matrix.c +++ b/keyboards/lily58/matrix.c | |||
@@ -37,11 +37,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
37 | # include "serial.h" | 37 | # include "serial.h" |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | #ifndef DEBOUNCING_DELAY | 40 | #ifndef DEBOUNCE |
41 | # define DEBOUNCING_DELAY 5 | 41 | # define DEBOUNCE 5 |
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | #if (DEBOUNCING_DELAY > 0) | 44 | #if (DEBOUNCE > 0) |
45 | static uint16_t debouncing_time; | 45 | static uint16_t debouncing_time; |
46 | static bool debouncing = false; | 46 | static bool debouncing = false; |
47 | #endif | 47 | #endif |
@@ -145,7 +145,7 @@ uint8_t _matrix_scan(void) | |||
145 | #if (DIODE_DIRECTION == COL2ROW) | 145 | #if (DIODE_DIRECTION == COL2ROW) |
146 | // Set row, read cols | 146 | // Set row, read cols |
147 | for (uint8_t current_row = 0; current_row < ROWS_PER_HAND; current_row++) { | 147 | for (uint8_t current_row = 0; current_row < ROWS_PER_HAND; current_row++) { |
148 | # if (DEBOUNCING_DELAY > 0) | 148 | # if (DEBOUNCE > 0) |
149 | bool matrix_changed = read_cols_on_row(matrix_debouncing+offset, current_row); | 149 | bool matrix_changed = read_cols_on_row(matrix_debouncing+offset, current_row); |
150 | 150 | ||
151 | if (matrix_changed) { | 151 | if (matrix_changed) { |
@@ -162,7 +162,7 @@ uint8_t _matrix_scan(void) | |||
162 | #elif (DIODE_DIRECTION == ROW2COL) | 162 | #elif (DIODE_DIRECTION == ROW2COL) |
163 | // Set col, read rows | 163 | // Set col, read rows |
164 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { | 164 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { |
165 | # if (DEBOUNCING_DELAY > 0) | 165 | # if (DEBOUNCE > 0) |
166 | bool matrix_changed = read_rows_on_col(matrix_debouncing+offset, current_col); | 166 | bool matrix_changed = read_rows_on_col(matrix_debouncing+offset, current_col); |
167 | if (matrix_changed) { | 167 | if (matrix_changed) { |
168 | debouncing = true; | 168 | debouncing = true; |
@@ -175,8 +175,8 @@ uint8_t _matrix_scan(void) | |||
175 | } | 175 | } |
176 | #endif | 176 | #endif |
177 | 177 | ||
178 | # if (DEBOUNCING_DELAY > 0) | 178 | # if (DEBOUNCE > 0) |
179 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 179 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
180 | for (uint8_t i = 0; i < ROWS_PER_HAND; i++) { | 180 | for (uint8_t i = 0; i < ROWS_PER_HAND; i++) { |
181 | matrix[i+offset] = matrix_debouncing[i+offset]; | 181 | matrix[i+offset] = matrix_debouncing[i+offset]; |
182 | } | 182 | } |
diff --git a/keyboards/lily58/rev1/config.h b/keyboards/lily58/rev1/config.h index 7a4386e70..8fd42070e 100644 --- a/keyboards/lily58/rev1/config.h +++ b/keyboards/lily58/rev1/config.h | |||
@@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
45 | //#define MATRIX_HAS_GHOST | 45 | //#define MATRIX_HAS_GHOST |
46 | 46 | ||
47 | /* Set 0 if debouncing isn't needed */ | 47 | /* Set 0 if debouncing isn't needed */ |
48 | #define DEBOUNCING_DELAY 5 | 48 | #define DEBOUNCE 5 |
49 | 49 | ||
50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
51 | //#define LOCKING_SUPPORT_ENABLE | 51 | //#define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/m0lly/config.h b/keyboards/m0lly/config.h index 21f5fd3fb..010833ac8 100644 --- a/keyboards/m0lly/config.h +++ b/keyboards/m0lly/config.h | |||
@@ -60,7 +60,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
61 | 61 | ||
62 | /* Set 0 if debouncing isn't needed */ | 62 | /* Set 0 if debouncing isn't needed */ |
63 | #define DEBOUNCING_DELAY 5 | 63 | #define DEBOUNCE 5 |
64 | 64 | ||
65 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 65 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
66 | #define LOCKING_SUPPORT_ENABLE | 66 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/m10a/config.h b/keyboards/m10a/config.h index ec425dfbd..f2e6e45e7 100644 --- a/keyboards/m10a/config.h +++ b/keyboards/m10a/config.h | |||
@@ -49,7 +49,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
49 | #define BACKLIGHT_LEVELS 6 | 49 | #define BACKLIGHT_LEVELS 6 |
50 | 50 | ||
51 | /* Set 0 if debouncing isn't needed */ | 51 | /* Set 0 if debouncing isn't needed */ |
52 | #define DEBOUNCING_DELAY 5 | 52 | #define DEBOUNCE 5 |
53 | 53 | ||
54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
55 | #define LOCKING_SUPPORT_ENABLE | 55 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/massdrop/alt/config.h b/keyboards/massdrop/alt/config.h index 59e66e133..d8389fc00 100644 --- a/keyboards/massdrop/alt/config.h +++ b/keyboards/massdrop/alt/config.h | |||
@@ -92,7 +92,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
92 | #define DEBUG_BOOT_TRACING_PIN 23 | 92 | #define DEBUG_BOOT_TRACING_PIN 23 |
93 | 93 | ||
94 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 94 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
95 | #define DEBOUNCING_DELAY 5 | 95 | #define DEBOUNCE 5 |
96 | 96 | ||
97 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 97 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
98 | //#define LOCKING_SUPPORT_ENABLE | 98 | //#define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/massdrop/alt/matrix.c b/keyboards/massdrop/alt/matrix.c index 472479d30..314115571 100644 --- a/keyboards/massdrop/alt/matrix.c +++ b/keyboards/massdrop/alt/matrix.c | |||
@@ -128,7 +128,7 @@ uint8_t matrix_scan(void) | |||
128 | else | 128 | else |
129 | { | 129 | { |
130 | //Begin or extend debounce on change | 130 | //Begin or extend debounce on change |
131 | mdebouncing = timer_read64() + DEBOUNCING_DELAY; | 131 | mdebouncing = timer_read64() + DEBOUNCE; |
132 | } | 132 | } |
133 | 133 | ||
134 | matrix_scan_quantum(); | 134 | matrix_scan_quantum(); |
diff --git a/keyboards/massdrop/ctrl/config.h b/keyboards/massdrop/ctrl/config.h index 9b9f98f5f..215a2e1b1 100644 --- a/keyboards/massdrop/ctrl/config.h +++ b/keyboards/massdrop/ctrl/config.h | |||
@@ -92,7 +92,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
92 | #define DEBUG_BOOT_TRACING_PIN 23 | 92 | #define DEBUG_BOOT_TRACING_PIN 23 |
93 | 93 | ||
94 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 94 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
95 | #define DEBOUNCING_DELAY 5 | 95 | #define DEBOUNCE 5 |
96 | 96 | ||
97 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 97 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
98 | //#define LOCKING_SUPPORT_ENABLE | 98 | //#define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/massdrop/ctrl/matrix.c b/keyboards/massdrop/ctrl/matrix.c index 5f1741e58..f3529fe72 100644 --- a/keyboards/massdrop/ctrl/matrix.c +++ b/keyboards/massdrop/ctrl/matrix.c | |||
@@ -128,7 +128,7 @@ uint8_t matrix_scan(void) | |||
128 | else | 128 | else |
129 | { | 129 | { |
130 | //Begin or extend debounce on change | 130 | //Begin or extend debounce on change |
131 | mdebouncing = timer_read64() + DEBOUNCING_DELAY; | 131 | mdebouncing = timer_read64() + DEBOUNCE; |
132 | } | 132 | } |
133 | 133 | ||
134 | matrix_scan_quantum(); | 134 | matrix_scan_quantum(); |
diff --git a/keyboards/maxipad/config.h b/keyboards/maxipad/config.h index 6d8225d74..50496c16b 100644 --- a/keyboards/maxipad/config.h +++ b/keyboards/maxipad/config.h | |||
@@ -32,7 +32,7 @@ | |||
32 | //#define BACKLIGHT_LEVELS 3 | 32 | //#define BACKLIGHT_LEVELS 3 |
33 | 33 | ||
34 | /* Set 0 if debouncing isn't needed */ | 34 | /* Set 0 if debouncing isn't needed */ |
35 | #define DEBOUNCING_DELAY 5 | 35 | #define DEBOUNCE 5 |
36 | 36 | ||
37 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 37 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
38 | #define LOCKING_SUPPORT_ENABLE | 38 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/mechkeys/mk60/config.h b/keyboards/mechkeys/mk60/config.h index 9d6a2565d..9fccd8a8b 100644 --- a/keyboards/mechkeys/mk60/config.h +++ b/keyboards/mechkeys/mk60/config.h | |||
@@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
80 | #endif | 80 | #endif |
81 | 81 | ||
82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
83 | #define DEBOUNCING_DELAY 5 | 83 | #define DEBOUNCE 5 |
84 | 84 | ||
85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
86 | //#define MATRIX_HAS_GHOST | 86 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/mechmini/v2/config.h b/keyboards/mechmini/v2/config.h index edca6a5c4..9da3e5f0a 100755 --- a/keyboards/mechmini/v2/config.h +++ b/keyboards/mechmini/v2/config.h | |||
@@ -48,7 +48,7 @@ | |||
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | /* Set 0 if debouncing isn't needed */ | 50 | /* Set 0 if debouncing isn't needed */ |
51 | #define DEBOUNCING_DELAY 5 | 51 | #define DEBOUNCE 5 |
52 | 52 | ||
53 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 53 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
54 | #define LOCKING_SUPPORT_ENABLE | 54 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/meira/featherble/config.h b/keyboards/meira/featherble/config.h index d8f86fe02..fb24c6079 100644 --- a/keyboards/meira/featherble/config.h +++ b/keyboards/meira/featherble/config.h | |||
@@ -48,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
48 | //#define BACKLIGHT_LEVELS 3 | 48 | //#define BACKLIGHT_LEVELS 3 |
49 | 49 | ||
50 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 50 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
51 | #define DEBOUNCING_DELAY 5 | 51 | #define DEBOUNCE 5 |
52 | 52 | ||
53 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 53 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
54 | //#define MATRIX_HAS_GHOST | 54 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/meira/matrix.c b/keyboards/meira/matrix.c index c1952f35f..030c91332 100644 --- a/keyboards/meira/matrix.c +++ b/keyboards/meira/matrix.c | |||
@@ -33,11 +33,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
33 | #include "config.h" | 33 | #include "config.h" |
34 | #include "timer.h" | 34 | #include "timer.h" |
35 | 35 | ||
36 | #ifndef DEBOUNCING_DELAY | 36 | #ifndef DEBOUNCE |
37 | # define DEBOUNCING_DELAY 5 | 37 | # define DEBOUNCE 5 |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | #if (DEBOUNCING_DELAY > 0) | 40 | #if (DEBOUNCE > 0) |
41 | static uint16_t debouncing_time; | 41 | static uint16_t debouncing_time; |
42 | static bool debouncing = false; | 42 | static bool debouncing = false; |
43 | #endif | 43 | #endif |
@@ -132,7 +132,7 @@ uint8_t _matrix_scan(void) | |||
132 | { | 132 | { |
133 | // Set col, read rows | 133 | // Set col, read rows |
134 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { | 134 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { |
135 | # if (DEBOUNCING_DELAY > 0) | 135 | # if (DEBOUNCE > 0) |
136 | bool matrix_changed = read_rows_on_col(matrix_debouncing, current_col); | 136 | bool matrix_changed = read_rows_on_col(matrix_debouncing, current_col); |
137 | if (matrix_changed) { | 137 | if (matrix_changed) { |
138 | debouncing = true; | 138 | debouncing = true; |
@@ -144,8 +144,8 @@ uint8_t _matrix_scan(void) | |||
144 | 144 | ||
145 | } | 145 | } |
146 | 146 | ||
147 | # if (DEBOUNCING_DELAY > 0) | 147 | # if (DEBOUNCE > 0) |
148 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 148 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
149 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { | 149 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { |
150 | matrix[i] = matrix_debouncing[i]; | 150 | matrix[i] = matrix_debouncing[i]; |
151 | } | 151 | } |
@@ -276,5 +276,3 @@ static void unselect_cols(void) | |||
276 | _SFR_IO8((pin >> 4) + 2) &= ~_BV(pin & 0xF); // LOW | 276 | _SFR_IO8((pin >> 4) + 2) &= ~_BV(pin & 0xF); // LOW |
277 | } | 277 | } |
278 | } | 278 | } |
279 | |||
280 | |||
diff --git a/keyboards/meira/promicro/config.h b/keyboards/meira/promicro/config.h index 3c2113a20..67e5ca06d 100644 --- a/keyboards/meira/promicro/config.h +++ b/keyboards/meira/promicro/config.h | |||
@@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
39 | #define CATERINA_BOOTLOADER | 39 | #define CATERINA_BOOTLOADER |
40 | 40 | ||
41 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 41 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
42 | #define DEBOUNCING_DELAY 5 | 42 | #define DEBOUNCE 5 |
43 | 43 | ||
44 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 44 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
45 | //#define MATRIX_HAS_GHOST | 45 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/meishi/config.h b/keyboards/meishi/config.h index 6aa4e6b6e..3393610c7 100644 --- a/keyboards/meishi/config.h +++ b/keyboards/meishi/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | 54 | ||
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
@@ -180,4 +180,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
180 | 180 | ||
181 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | 181 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ |
182 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | 182 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 |
183 | |||
diff --git a/keyboards/melody96/config.h b/keyboards/melody96/config.h index db814d013..201b1ad07 100644 --- a/keyboards/melody96/config.h +++ b/keyboards/melody96/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | 34 | ||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
36 | #define LOCKING_SUPPORT_ENABLE | 36 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/meme/config.h b/keyboards/meme/config.h index bd3e1cf2c..e06b0e4ef 100644 --- a/keyboards/meme/config.h +++ b/keyboards/meme/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | #define BACKLIGHT_LEVELS 3 | 54 | #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/miniaxe/config.h b/keyboards/miniaxe/config.h index be8ef4baf..db8509717 100644 --- a/keyboards/miniaxe/config.h +++ b/keyboards/miniaxe/config.h | |||
@@ -70,7 +70,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 72 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
73 | #define DEBOUNCING_DELAY 5 | 73 | #define DEBOUNCE 5 |
74 | 74 | ||
75 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 75 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
76 | //#define MATRIX_HAS_GHOST | 76 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/minidox/config.h b/keyboards/minidox/config.h index b99180eb1..7502983b6 100644 --- a/keyboards/minidox/config.h +++ b/keyboards/minidox/config.h | |||
@@ -42,7 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
42 | // #define BACKLIGHT_LEVELS 3 | 42 | // #define BACKLIGHT_LEVELS 3 |
43 | 43 | ||
44 | /* Set 0 if debouncing isn't needed */ | 44 | /* Set 0 if debouncing isn't needed */ |
45 | #define DEBOUNCING_DELAY 5 | 45 | #define DEBOUNCE 5 |
46 | 46 | ||
47 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 47 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
48 | #define LOCKING_SUPPORT_ENABLE | 48 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/mint60/config.h b/keyboards/mint60/config.h index 35449eb26..c98b9c1af 100644 --- a/keyboards/mint60/config.h +++ b/keyboards/mint60/config.h | |||
@@ -59,7 +59,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
59 | // #define BACKLIGHT_LEVELS 3 | 59 | // #define BACKLIGHT_LEVELS 3 |
60 | 60 | ||
61 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 61 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
62 | #define DEBOUNCING_DELAY 5 | 62 | #define DEBOUNCE 5 |
63 | 63 | ||
64 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 64 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
65 | //#define MATRIX_HAS_GHOST | 65 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/miuni32/config.h b/keyboards/miuni32/config.h index d7df83cfe..59402e869 100644 --- a/keyboards/miuni32/config.h +++ b/keyboards/miuni32/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/model01/config.h b/keyboards/model01/config.h index 167310731..c2160979c 100644 --- a/keyboards/model01/config.h +++ b/keyboards/model01/config.h | |||
@@ -32,7 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
32 | #define MATRIX_COLS 8 | 32 | #define MATRIX_COLS 8 |
33 | 33 | ||
34 | /* The scanners already debounce for us */ | 34 | /* The scanners already debounce for us */ |
35 | #define DEBOUNCING_DELAY 0 | 35 | #define DEBOUNCE 0 |
36 | 36 | ||
37 | /* RGB matrix constants */ | 37 | /* RGB matrix constants */ |
38 | #define DRIVER_LED_TOTAL 64 | 38 | #define DRIVER_LED_TOTAL 64 |
diff --git a/keyboards/mt40/config.h b/keyboards/mt40/config.h index e268c3c1a..48f707f71 100644 --- a/keyboards/mt40/config.h +++ b/keyboards/mt40/config.h | |||
@@ -68,7 +68,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
68 | #define BACKLIGHT_LEVELS 3 | 68 | #define BACKLIGHT_LEVELS 3 |
69 | 69 | ||
70 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 70 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
71 | /* #define DEBOUNCING_DELAY 5 */ | 71 | /* #define DEBOUNCE 5 */ |
72 | 72 | ||
73 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 73 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
74 | //#define MATRIX_HAS_GHOST | 74 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/mt980/config.h b/keyboards/mt980/config.h index 88c25a587..6b8b95295 100644 --- a/keyboards/mt980/config.h +++ b/keyboards/mt980/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/mxss/config.h b/keyboards/mxss/config.h index e3636ed51..812f301d6 100644 --- a/keyboards/mxss/config.h +++ b/keyboards/mxss/config.h | |||
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
41 | #define DIODE_DIRECTION COL2ROW | 41 | #define DIODE_DIRECTION COL2ROW |
42 | 42 | ||
43 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 43 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
44 | #define DEBOUNCING_DELAY 5 | 44 | #define DEBOUNCE 5 |
45 | 45 | ||
46 | /* Basic RGB configuration */ | 46 | /* Basic RGB configuration */ |
47 | #define RGB_DI_PIN C7 | 47 | #define RGB_DI_PIN C7 |
diff --git a/keyboards/namecard2x4/rev1/config.h b/keyboards/namecard2x4/rev1/config.h index 4c60d059d..9286afa69 100644 --- a/keyboards/namecard2x4/rev1/config.h +++ b/keyboards/namecard2x4/rev1/config.h | |||
@@ -60,7 +60,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
60 | //#define BACKLIGHT_LEVELS 1 | 60 | //#define BACKLIGHT_LEVELS 1 |
61 | 61 | ||
62 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 62 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
63 | #define DEBOUNCING_DELAY 5 | 63 | #define DEBOUNCE 5 |
64 | 64 | ||
65 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 65 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
66 | //#define MATRIX_HAS_GHOST | 66 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/namecard2x4/rev2/config.h b/keyboards/namecard2x4/rev2/config.h index 4343dff8c..f2cf053d2 100644 --- a/keyboards/namecard2x4/rev2/config.h +++ b/keyboards/namecard2x4/rev2/config.h | |||
@@ -60,7 +60,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
60 | //#define BACKLIGHT_LEVELS 1 | 60 | //#define BACKLIGHT_LEVELS 1 |
61 | 61 | ||
62 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 62 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
63 | #define DEBOUNCING_DELAY 5 | 63 | #define DEBOUNCE 5 |
64 | 64 | ||
65 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 65 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
66 | //#define MATRIX_HAS_GHOST | 66 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/nek_type_a/config.h b/keyboards/nek_type_a/config.h index 782b91d0e..5b105804d 100644 --- a/keyboards/nek_type_a/config.h +++ b/keyboards/nek_type_a/config.h | |||
@@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
39 | #define DIODE_DIRECTION ROW2COL | 39 | #define DIODE_DIRECTION ROW2COL |
40 | 40 | ||
41 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 41 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
42 | #define DEBOUNCING_DELAY 5 | 42 | #define DEBOUNCE 5 |
43 | 43 | ||
44 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 44 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
45 | #define LOCKING_SUPPORT_ENABLE | 45 | #define LOCKING_SUPPORT_ENABLE |
@@ -51,5 +51,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
51 | #define IS_COMMAND() ( \ | 51 | #define IS_COMMAND() ( \ |
52 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | 52 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ |
53 | ) | 53 | ) |
54 | |||
55 | |||
diff --git a/keyboards/nek_type_a/matrix.c b/keyboards/nek_type_a/matrix.c index 525296b1f..a3c0155e1 100644 --- a/keyboards/nek_type_a/matrix.c +++ b/keyboards/nek_type_a/matrix.c | |||
@@ -38,11 +38,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
38 | 38 | ||
39 | /* Set 0 if debouncing isn't needed */ | 39 | /* Set 0 if debouncing isn't needed */ |
40 | 40 | ||
41 | #ifndef DEBOUNCING_DELAY | 41 | #ifndef DEBOUNCE |
42 | # define DEBOUNCING_DELAY 5 | 42 | # define DEBOUNCE 5 |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | #if (DEBOUNCING_DELAY > 0) | 45 | #if (DEBOUNCE > 0) |
46 | static uint16_t debouncing_time; | 46 | static uint16_t debouncing_time; |
47 | static bool debouncing = false; | 47 | static bool debouncing = false; |
48 | #endif | 48 | #endif |
@@ -160,7 +160,7 @@ uint8_t matrix_scan(void) | |||
160 | 160 | ||
161 | // Set row, read cols | 161 | // Set row, read cols |
162 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { | 162 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { |
163 | # if (DEBOUNCING_DELAY > 0) | 163 | # if (DEBOUNCE > 0) |
164 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); | 164 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); |
165 | 165 | ||
166 | if (matrix_changed) { | 166 | if (matrix_changed) { |
@@ -178,7 +178,7 @@ uint8_t matrix_scan(void) | |||
178 | 178 | ||
179 | // Set col, read rows | 179 | // Set col, read rows |
180 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { | 180 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { |
181 | # if (DEBOUNCING_DELAY > 0) | 181 | # if (DEBOUNCE > 0) |
182 | bool matrix_changed = read_rows_on_col(matrix_debouncing, current_col); | 182 | bool matrix_changed = read_rows_on_col(matrix_debouncing, current_col); |
183 | if (matrix_changed) { | 183 | if (matrix_changed) { |
184 | debouncing = true; | 184 | debouncing = true; |
@@ -192,8 +192,8 @@ uint8_t matrix_scan(void) | |||
192 | 192 | ||
193 | #endif | 193 | #endif |
194 | 194 | ||
195 | # if (DEBOUNCING_DELAY > 0) | 195 | # if (DEBOUNCE > 0) |
196 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 196 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
197 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { | 197 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { |
198 | matrix[i] = matrix_debouncing[i]; | 198 | matrix[i] = matrix_debouncing[i]; |
199 | } | 199 | } |
@@ -207,7 +207,7 @@ uint8_t matrix_scan(void) | |||
207 | 207 | ||
208 | bool matrix_is_modified(void) | 208 | bool matrix_is_modified(void) |
209 | { | 209 | { |
210 | #if (DEBOUNCING_DELAY > 0) | 210 | #if (DEBOUNCE > 0) |
211 | if (debouncing) return false; | 211 | if (debouncing) return false; |
212 | #endif | 212 | #endif |
213 | return true; | 213 | return true; |
diff --git a/keyboards/niu_mini/config.h b/keyboards/niu_mini/config.h index 9a4b43c1e..2c202a8e4 100644 --- a/keyboards/niu_mini/config.h +++ b/keyboards/niu_mini/config.h | |||
@@ -51,7 +51,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | /* Set 0 if debouncing isn't needed */ | 53 | /* Set 0 if debouncing isn't needed */ |
54 | #define DEBOUNCING_DELAY 5 | 54 | #define DEBOUNCE 5 |
55 | 55 | ||
56 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 56 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
57 | #define LOCKING_SUPPORT_ENABLE | 57 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/nk65/config.h b/keyboards/nk65/config.h index 0edb1bb62..791e44468 100755 --- a/keyboards/nk65/config.h +++ b/keyboards/nk65/config.h | |||
@@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
39 | #define DIODE_DIRECTION COL2ROW | 39 | #define DIODE_DIRECTION COL2ROW |
40 | 40 | ||
41 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 41 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
42 | #define DEBOUNCING_DELAY 5 | 42 | #define DEBOUNCE 5 |
43 | 43 | ||
44 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 44 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
45 | //#define MATRIX_HAS_GHOST | 45 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/novelpad/config.h b/keyboards/novelpad/config.h index 3a47c0eb6..c9b6b91a5 100755 --- a/keyboards/novelpad/config.h +++ b/keyboards/novelpad/config.h | |||
@@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
40 | #define DIODE_DIRECTION COL2ROW | 40 | #define DIODE_DIRECTION COL2ROW |
41 | 41 | ||
42 | /* Set 0 if debouncing isn't needed */ | 42 | /* Set 0 if debouncing isn't needed */ |
43 | #define DEBOUNCING_DELAY 5 | 43 | #define DEBOUNCE 5 |
44 | 44 | ||
45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
46 | #define LOCKING_SUPPORT_ENABLE | 46 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/noxary/220/config.h b/keyboards/noxary/220/config.h index e5a6be2de..1242de61b 100644 --- a/keyboards/noxary/220/config.h +++ b/keyboards/noxary/220/config.h | |||
@@ -86,7 +86,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
86 | // #endif | 86 | // #endif |
87 | 87 | ||
88 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 88 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
89 | #define DEBOUNCING_DELAY 5 | 89 | #define DEBOUNCE 5 |
90 | 90 | ||
91 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 91 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
92 | //#define MATRIX_HAS_GHOST | 92 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/noxary/260/config.h b/keyboards/noxary/260/config.h index 984712dd1..379dbbf78 100644 --- a/keyboards/noxary/260/config.h +++ b/keyboards/noxary/260/config.h | |||
@@ -86,7 +86,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
86 | // #endif | 86 | // #endif |
87 | 87 | ||
88 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 88 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
89 | #define DEBOUNCING_DELAY 5 | 89 | #define DEBOUNCE 5 |
90 | 90 | ||
91 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 91 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
92 | //#define MATRIX_HAS_GHOST | 92 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/noxary/268/config.h b/keyboards/noxary/268/config.h index d6f5234cb..8264b8019 100644 --- a/keyboards/noxary/268/config.h +++ b/keyboards/noxary/268/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
53 | #define LOCKING_SUPPORT_ENABLE | 53 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/noxary/268_2/config.h b/keyboards/noxary/268_2/config.h index 733c87990..547c729f9 100644 --- a/keyboards/noxary/268_2/config.h +++ b/keyboards/noxary/268_2/config.h | |||
@@ -56,7 +56,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
56 | #endif | 56 | #endif |
57 | 57 | ||
58 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 58 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
59 | #define DEBOUNCING_DELAY 5 | 59 | #define DEBOUNCE 5 |
60 | 60 | ||
61 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 61 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
62 | //#define MATRIX_HAS_GHOST | 62 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/noxary/280/config.h b/keyboards/noxary/280/config.h index 427709d1b..d0a10866a 100644 --- a/keyboards/noxary/280/config.h +++ b/keyboards/noxary/280/config.h | |||
@@ -86,7 +86,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
86 | // #endif | 86 | // #endif |
87 | 87 | ||
88 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 88 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
89 | #define DEBOUNCING_DELAY 5 | 89 | #define DEBOUNCE 5 |
90 | 90 | ||
91 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 91 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
92 | //#define MATRIX_HAS_GHOST | 92 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/noxary/x268/config.h b/keyboards/noxary/x268/config.h index d2a8c3b9f..0604f6529 100644 --- a/keyboards/noxary/x268/config.h +++ b/keyboards/noxary/x268/config.h | |||
@@ -65,7 +65,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
65 | #endif | 65 | #endif |
66 | 66 | ||
67 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 67 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
68 | #define DEBOUNCING_DELAY 5 | 68 | #define DEBOUNCE 5 |
69 | 69 | ||
70 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 70 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
71 | //#define MATRIX_HAS_GHOST | 71 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/ok60/config.h b/keyboards/ok60/config.h index eb75b71c9..cc056a489 100644 --- a/keyboards/ok60/config.h +++ b/keyboards/ok60/config.h | |||
@@ -52,7 +52,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
52 | #define DIODE_DIRECTION COL2ROW | 52 | #define DIODE_DIRECTION COL2ROW |
53 | 53 | ||
54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
55 | #define DEBOUNCING_DELAY 5 | 55 | #define DEBOUNCE 5 |
56 | 56 | ||
57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
58 | //#define MATRIX_HAS_GHOST | 58 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/omnikey_blackheart/config.h b/keyboards/omnikey_blackheart/config.h index edfd113de..6c9be77b6 100644 --- a/keyboards/omnikey_blackheart/config.h +++ b/keyboards/omnikey_blackheart/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/orange75/config.h b/keyboards/orange75/config.h index 7d1b497be..35399cc60 100644 --- a/keyboards/orange75/config.h +++ b/keyboards/orange75/config.h | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | 27 | ||
28 | /* Set 0 if debouncing isn't needed */ | 28 | /* Set 0 if debouncing isn't needed */ |
29 | #define DEBOUNCING_DELAY 5 | 29 | #define DEBOUNCE 5 |
30 | 30 | ||
31 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 31 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
32 | #define LOCKING_SUPPORT_ENABLE | 32 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/org60/config.h b/keyboards/org60/config.h index 5f3f4f5de..f455fea2a 100644 --- a/keyboards/org60/config.h +++ b/keyboards/org60/config.h | |||
@@ -55,7 +55,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
55 | #define DIODE_DIRECTION COL2ROW | 55 | #define DIODE_DIRECTION COL2ROW |
56 | 56 | ||
57 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 57 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
58 | #define DEBOUNCING_DELAY 5 | 58 | #define DEBOUNCE 5 |
59 | 59 | ||
60 | /* RGB Underglow | 60 | /* RGB Underglow |
61 | * F6 PIN for Org60 that has pre-soldered WS2812 LEDs | 61 | * F6 PIN for Org60 that has pre-soldered WS2812 LEDs |
diff --git a/keyboards/orthodox/rev1/config.h b/keyboards/orthodox/rev1/config.h index 198fff5ac..89e36dce7 100644 --- a/keyboards/orthodox/rev1/config.h +++ b/keyboards/orthodox/rev1/config.h | |||
@@ -57,7 +57,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
57 | // #define BACKLIGHT_LEVELS 3 | 57 | // #define BACKLIGHT_LEVELS 3 |
58 | 58 | ||
59 | /* Set 0 if debouncing isn't needed */ | 59 | /* Set 0 if debouncing isn't needed */ |
60 | #define DEBOUNCING_DELAY 5 | 60 | #define DEBOUNCE 5 |
61 | 61 | ||
62 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 62 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
63 | // #define LOCKING_SUPPORT_ENABLE | 63 | // #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/orthodox/rev3/config.h b/keyboards/orthodox/rev3/config.h index 53e5b15ae..ad3437a62 100644 --- a/keyboards/orthodox/rev3/config.h +++ b/keyboards/orthodox/rev3/config.h | |||
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | // #define BACKLIGHT_LEVELS 3 | 62 | // #define BACKLIGHT_LEVELS 3 |
63 | 63 | ||
64 | /* Set 0 if debouncing isn't needed */ | 64 | /* Set 0 if debouncing isn't needed */ |
65 | #define DEBOUNCING_DELAY 5 | 65 | #define DEBOUNCE 5 |
66 | 66 | ||
67 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 67 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
68 | // #define LOCKING_SUPPORT_ENABLE | 68 | // #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/orthodox/rev3_teensy/config.h b/keyboards/orthodox/rev3_teensy/config.h index 54cbb823e..c26e15dee 100644 --- a/keyboards/orthodox/rev3_teensy/config.h +++ b/keyboards/orthodox/rev3_teensy/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Set 0 if debouncing isn't needed */ | 56 | /* Set 0 if debouncing isn't needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 59 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
60 | // #define LOCKING_SUPPORT_ENABLE | 60 | // #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/paladin64/config.h b/keyboards/paladin64/config.h index 0696fefd0..8d7cef248 100755 --- a/keyboards/paladin64/config.h +++ b/keyboards/paladin64/config.h | |||
@@ -97,7 +97,7 @@ | |||
97 | #endif | 97 | #endif |
98 | 98 | ||
99 | /* Set 0 if debouncing isn't needed */ | 99 | /* Set 0 if debouncing isn't needed */ |
100 | #define DEBOUNCING_DELAY 5 | 100 | #define DEBOUNCE 5 |
101 | 101 | ||
102 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 102 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
103 | #define LOCKING_SUPPORT_ENABLE | 103 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/panc60/config.h b/keyboards/panc60/config.h index edb25ad27..b5889180e 100644 --- a/keyboards/panc60/config.h +++ b/keyboards/panc60/config.h | |||
@@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
34 | #define UNUSED_PINS | 34 | #define UNUSED_PINS |
35 | 35 | ||
36 | #define DIODE_DIRECTION COL2ROW | 36 | #define DIODE_DIRECTION COL2ROW |
37 | #define DEBOUNCING_DELAY 5 | 37 | #define DEBOUNCE 5 |
38 | 38 | ||
39 | #define NO_BACKLIGHT_CLOCK | 39 | #define NO_BACKLIGHT_CLOCK |
40 | #define BACKLIGHT_LEVELS 1 | 40 | #define BACKLIGHT_LEVELS 1 |
diff --git a/keyboards/pearl/config.h b/keyboards/pearl/config.h index 00850b8f0..3dbe5ee03 100644 --- a/keyboards/pearl/config.h +++ b/keyboards/pearl/config.h | |||
@@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
40 | #define UNUSED_PINS | 40 | #define UNUSED_PINS |
41 | 41 | ||
42 | #define DIODE_DIRECTION COL2ROW | 42 | #define DIODE_DIRECTION COL2ROW |
43 | #define DEBOUNCING_DELAY 5 | 43 | #define DEBOUNCE 5 |
44 | 44 | ||
45 | #define NO_ACTION_MACRO | 45 | #define NO_ACTION_MACRO |
46 | #define NO_ACTION_FUNCTION | 46 | #define NO_ACTION_FUNCTION |
diff --git a/keyboards/phantom/config.h b/keyboards/phantom/config.h index 3fa462445..4ca731f2d 100644 --- a/keyboards/phantom/config.h +++ b/keyboards/phantom/config.h | |||
@@ -61,7 +61,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
61 | //#define MATRIX_HAS_GHOST | 61 | //#define MATRIX_HAS_GHOST |
62 | 62 | ||
63 | /* Set 0 if debouncing isn't needed */ | 63 | /* Set 0 if debouncing isn't needed */ |
64 | #define DEBOUNCING_DELAY 5 | 64 | #define DEBOUNCE 5 |
65 | 65 | ||
66 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 66 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
67 | #define LOCKING_SUPPORT_ENABLE | 67 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/pinky/3/config.h b/keyboards/pinky/3/config.h index 370d2a702..8a3f53a17 100644 --- a/keyboards/pinky/3/config.h +++ b/keyboards/pinky/3/config.h | |||
@@ -81,7 +81,7 @@ | |||
81 | // #endif | 81 | // #endif |
82 | 82 | ||
83 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 83 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
84 | #define DEBOUNCING_DELAY 5 | 84 | #define DEBOUNCE 5 |
85 | 85 | ||
86 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 86 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
87 | //#define MATRIX_HAS_GHOST | 87 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/pinky/4/config.h b/keyboards/pinky/4/config.h index a6beaf29d..a1544bc48 100644 --- a/keyboards/pinky/4/config.h +++ b/keyboards/pinky/4/config.h | |||
@@ -81,7 +81,7 @@ | |||
81 | // #endif | 81 | // #endif |
82 | 82 | ||
83 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 83 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
84 | #define DEBOUNCING_DELAY 5 | 84 | #define DEBOUNCE 5 |
85 | 85 | ||
86 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 86 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
87 | //#define MATRIX_HAS_GHOST | 87 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/plaid/config.h b/keyboards/plaid/config.h index efef3ca18..9da31d700 100644 --- a/keyboards/plaid/config.h +++ b/keyboards/plaid/config.h | |||
@@ -83,7 +83,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
83 | // #endif | 83 | // #endif |
84 | 84 | ||
85 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 85 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
86 | #define DEBOUNCING_DELAY 5 | 86 | #define DEBOUNCE 5 |
87 | 87 | ||
88 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 88 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
89 | //#define MATRIX_HAS_GHOST | 89 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/plain60/config.h b/keyboards/plain60/config.h index 5dd784887..a86c23587 100644 --- a/keyboards/plain60/config.h +++ b/keyboards/plain60/config.h | |||
@@ -43,7 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
43 | //#define MATRIX_HAS_GHOST | 43 | //#define MATRIX_HAS_GHOST |
44 | 44 | ||
45 | /* Set 0 if debouncing isn't needed */ | 45 | /* Set 0 if debouncing isn't needed */ |
46 | #define DEBOUNCING_DELAY 5 | 46 | #define DEBOUNCE 5 |
47 | 47 | ||
48 | #define QMK_ESC_OUTPUT D2 // usually COL | 48 | #define QMK_ESC_OUTPUT D2 // usually COL |
49 | #define QMK_ESC_INPUT B4 // usually ROW | 49 | #define QMK_ESC_INPUT B4 // usually ROW |
diff --git a/keyboards/planck/config.h b/keyboards/planck/config.h index 837311c76..e0839a175 100644 --- a/keyboards/planck/config.h +++ b/keyboards/planck/config.h | |||
@@ -56,7 +56,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
56 | #define BACKLIGHT_LEVELS 3 | 56 | #define BACKLIGHT_LEVELS 3 |
57 | 57 | ||
58 | /* Set 0 if debouncing isn't needed */ | 58 | /* Set 0 if debouncing isn't needed */ |
59 | #define DEBOUNCING_DELAY 5 | 59 | #define DEBOUNCE 5 |
60 | 60 | ||
61 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 61 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
62 | #define LOCKING_SUPPORT_ENABLE | 62 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/planck/keymaps/dodger/config.h b/keyboards/planck/keymaps/dodger/config.h index 4b7931e77..f6aaec155 100644 --- a/keyboards/planck/keymaps/dodger/config.h +++ b/keyboards/planck/keymaps/dodger/config.h | |||
@@ -56,7 +56,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
56 | #define BACKLIGHT_LEVELS 15 | 56 | #define BACKLIGHT_LEVELS 15 |
57 | 57 | ||
58 | /* Set 0 if debouncing isn't needed */ | 58 | /* Set 0 if debouncing isn't needed */ |
59 | #define DEBOUNCING_DELAY 5 | 59 | #define DEBOUNCE 5 |
60 | 60 | ||
61 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 61 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
62 | #define LOCKING_SUPPORT_ENABLE | 62 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/playkbtw/ca66/ca66.c b/keyboards/playkbtw/ca66/ca66.c index 6f24a895f..5f61df64e 100644 --- a/keyboards/playkbtw/ca66/ca66.c +++ b/keyboards/playkbtw/ca66/ca66.c | |||
@@ -9,7 +9,7 @@ void bootmagic_lite(void) | |||
9 | 9 | ||
10 | // We need multiple scans because debouncing can't be turned off. | 10 | // We need multiple scans because debouncing can't be turned off. |
11 | matrix_scan(); | 11 | matrix_scan(); |
12 | wait_ms(DEBOUNCING_DELAY); | 12 | wait_ms(DEBOUNCE); |
13 | matrix_scan(); | 13 | matrix_scan(); |
14 | 14 | ||
15 | // If the Esc (matrix 0,0) is held down on power up, | 15 | // If the Esc (matrix 0,0) is held down on power up, |
diff --git a/keyboards/playkbtw/ca66/config.h b/keyboards/playkbtw/ca66/config.h index 958fdd0d4..b4c0e6234 100644 --- a/keyboards/playkbtw/ca66/config.h +++ b/keyboards/playkbtw/ca66/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #define BACKLIGHT_LEVELS 3 | 29 | #define BACKLIGHT_LEVELS 3 |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/playkbtw/pk60/config.h b/keyboards/playkbtw/pk60/config.h index 77822e0a1..93e29951e 100644 --- a/keyboards/playkbtw/pk60/config.h +++ b/keyboards/playkbtw/pk60/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | 34 | ||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
36 | #define LOCKING_SUPPORT_ENABLE | 36 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/preonic/config.h b/keyboards/preonic/config.h index 1887bff5d..7ed4814fa 100644 --- a/keyboards/preonic/config.h +++ b/keyboards/preonic/config.h | |||
@@ -56,7 +56,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
56 | #define BACKLIGHT_LEVELS 3 | 56 | #define BACKLIGHT_LEVELS 3 |
57 | 57 | ||
58 | /* Set 0 if debouncing isn't needed */ | 58 | /* Set 0 if debouncing isn't needed */ |
59 | #define DEBOUNCING_DELAY 5 | 59 | #define DEBOUNCE 5 |
60 | 60 | ||
61 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 61 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
62 | #define LOCKING_SUPPORT_ENABLE | 62 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/preonic/keymaps/kinesis/config.h b/keyboards/preonic/keymaps/kinesis/config.h index 7899408cd..fd934726b 100644 --- a/keyboards/preonic/keymaps/kinesis/config.h +++ b/keyboards/preonic/keymaps/kinesis/config.h | |||
@@ -49,7 +49,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
49 | #define BACKLIGHT_LEVELS 3 | 49 | #define BACKLIGHT_LEVELS 3 |
50 | 50 | ||
51 | /* Set 0 if debouncing isn't needed */ | 51 | /* Set 0 if debouncing isn't needed */ |
52 | #define DEBOUNCING_DELAY 5 | 52 | #define DEBOUNCE 5 |
53 | 53 | ||
54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
55 | #define LOCKING_SUPPORT_ENABLE | 55 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/preonic/keymaps/zach/config.h b/keyboards/preonic/keymaps/zach/config.h index 58690a4ab..66e6b087f 100644 --- a/keyboards/preonic/keymaps/zach/config.h +++ b/keyboards/preonic/keymaps/zach/config.h | |||
@@ -50,7 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
50 | #define BACKLIGHT_LEVELS 5 | 50 | #define BACKLIGHT_LEVELS 5 |
51 | 51 | ||
52 | /* Set 0 if debouncing isn't needed */ | 52 | /* Set 0 if debouncing isn't needed */ |
53 | #define DEBOUNCING_DELAY 5 | 53 | #define DEBOUNCE 5 |
54 | 54 | ||
55 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 55 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
56 | //#define LOCKING_SUPPORT_ENABLE | 56 | //#define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/primekb/prime_e/config.h b/keyboards/primekb/prime_e/config.h index 331993f4b..9ef4edd88 100644 --- a/keyboards/primekb/prime_e/config.h +++ b/keyboards/primekb/prime_e/config.h | |||
@@ -44,7 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
44 | 44 | ||
45 | 45 | ||
46 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 46 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
47 | #define DEBOUNCING_DELAY 5 | 47 | #define DEBOUNCE 5 |
48 | 48 | ||
49 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 49 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
50 | #define LOCKING_SUPPORT_ENABLE | 50 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/primekb/prime_l/config.h b/keyboards/primekb/prime_l/config.h index 8451a7686..786ceb59c 100644 --- a/keyboards/primekb/prime_l/config.h +++ b/keyboards/primekb/prime_l/config.h | |||
@@ -44,7 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
44 | #define BACKLIGHT_LEVELS 4 | 44 | #define BACKLIGHT_LEVELS 4 |
45 | 45 | ||
46 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 46 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
47 | #define DEBOUNCING_DELAY 5 | 47 | #define DEBOUNCE 5 |
48 | 48 | ||
49 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 49 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
50 | #define LOCKING_SUPPORT_ENABLE | 50 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/primekb/prime_m/config.h b/keyboards/primekb/prime_m/config.h index 119e20a40..75731abf7 100644 --- a/keyboards/primekb/prime_m/config.h +++ b/keyboards/primekb/prime_m/config.h | |||
@@ -44,7 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
44 | #define BACKLIGHT_LEVELS 4 | 44 | #define BACKLIGHT_LEVELS 4 |
45 | 45 | ||
46 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 46 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
47 | #define DEBOUNCING_DELAY 5 | 47 | #define DEBOUNCE 5 |
48 | 48 | ||
49 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 49 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
50 | #define LOCKING_SUPPORT_ENABLE | 50 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/primekb/prime_o/config.h b/keyboards/primekb/prime_o/config.h index 2a35785ea..36de49b9e 100644 --- a/keyboards/primekb/prime_o/config.h +++ b/keyboards/primekb/prime_o/config.h | |||
@@ -44,7 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
44 | #define BACKLIGHT_LEVELS 4 | 44 | #define BACKLIGHT_LEVELS 4 |
45 | 45 | ||
46 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 46 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
47 | #define DEBOUNCING_DELAY 5 | 47 | #define DEBOUNCE 5 |
48 | 48 | ||
49 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 49 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
50 | #define LOCKING_SUPPORT_ENABLE | 50 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/primekb/prime_r/config.h b/keyboards/primekb/prime_r/config.h index 345bf91b8..942eced32 100644 --- a/keyboards/primekb/prime_r/config.h +++ b/keyboards/primekb/prime_r/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
53 | #define LOCKING_SUPPORT_ENABLE | 53 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/puck/config.h b/keyboards/puck/config.h index b2cb1b23e..3eaa8cd26 100644 --- a/keyboards/puck/config.h +++ b/keyboards/puck/config.h | |||
@@ -22,7 +22,7 @@ | |||
22 | #define DIODE_DIRECTION ROW2COL | 22 | #define DIODE_DIRECTION ROW2COL |
23 | 23 | ||
24 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 24 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
25 | #define DEBOUNCING_DELAY 5 | 25 | #define DEBOUNCE 5 |
26 | 26 | ||
27 | /* number of backlight levels */ | 27 | /* number of backlight levels */ |
28 | #define BACKLIGHT_LEVELS 3 | 28 | #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/quantrik/kyuu/config.h b/keyboards/quantrik/kyuu/config.h index 655314985..b40ce64cc 100644 --- a/keyboards/quantrik/kyuu/config.h +++ b/keyboards/quantrik/kyuu/config.h | |||
@@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
80 | // #endif | 80 | // #endif |
81 | 81 | ||
82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
83 | #define DEBOUNCING_DELAY 5 | 83 | #define DEBOUNCE 5 |
84 | 84 | ||
85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
86 | //#define MATRIX_HAS_GHOST | 86 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/qwertyydox/config.h b/keyboards/qwertyydox/config.h index 4c651d3c6..67f5d3c16 100644 --- a/keyboards/qwertyydox/config.h +++ b/keyboards/qwertyydox/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | // #define BACKLIGHT_LEVELS 3 | 47 | // #define BACKLIGHT_LEVELS 3 |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* serial.c configuration for split keyboard */ | 52 | /* serial.c configuration for split keyboard */ |
53 | #define SOFT_SERIAL_PIN D0 | 53 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/qwertyydox/rev1/config.h b/keyboards/qwertyydox/rev1/config.h index 5823beb3d..703d62de7 100644 --- a/keyboards/qwertyydox/rev1/config.h +++ b/keyboards/qwertyydox/rev1/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | // #define BACKLIGHT_LEVELS 3 | 47 | // #define BACKLIGHT_LEVELS 3 |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* serial.c configuration for split keyboard */ | 52 | /* serial.c configuration for split keyboard */ |
53 | #define SOFT_SERIAL_PIN D0 | 53 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/rama/koyu/config.h b/keyboards/rama/koyu/config.h index e7817e79a..4fa8c3d8a 100644 --- a/keyboards/rama/koyu/config.h +++ b/keyboards/rama/koyu/config.h | |||
@@ -44,7 +44,7 @@ | |||
44 | #define DIODE_DIRECTION COL2ROW | 44 | #define DIODE_DIRECTION COL2ROW |
45 | 45 | ||
46 | // Set 0 if debouncing isn't needed | 46 | // Set 0 if debouncing isn't needed |
47 | #define DEBOUNCING_DELAY 5 | 47 | #define DEBOUNCE 5 |
48 | 48 | ||
49 | // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap | 49 | // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap |
50 | #define LOCKING_SUPPORT_ENABLE | 50 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/rama/m10_b/config.h b/keyboards/rama/m10_b/config.h index 25fd58d15..32d1d21ed 100644 --- a/keyboards/rama/m10_b/config.h +++ b/keyboards/rama/m10_b/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | #define BACKLIGHT_LEVELS 3 | 54 | #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/rama/m60_a/config.h b/keyboards/rama/m60_a/config.h index 1cbdee5ae..b3e916231 100644 --- a/keyboards/rama/m60_a/config.h +++ b/keyboards/rama/m60_a/config.h | |||
@@ -42,7 +42,7 @@ | |||
42 | #define DIODE_DIRECTION COL2ROW | 42 | #define DIODE_DIRECTION COL2ROW |
43 | 43 | ||
44 | // Set 0 if debouncing isn't needed | 44 | // Set 0 if debouncing isn't needed |
45 | #define DEBOUNCING_DELAY 5 | 45 | #define DEBOUNCE 5 |
46 | 46 | ||
47 | // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap | 47 | // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap |
48 | #define LOCKING_SUPPORT_ENABLE | 48 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/rama/m6_a/config.h b/keyboards/rama/m6_a/config.h index efaf74a93..341e29b95 100644 --- a/keyboards/rama/m6_a/config.h +++ b/keyboards/rama/m6_a/config.h | |||
@@ -51,7 +51,7 @@ | |||
51 | // #define BACKLIGHT_LEVELS 3 | 51 | // #define BACKLIGHT_LEVELS 3 |
52 | 52 | ||
53 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 53 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
54 | #define DEBOUNCING_DELAY 5 | 54 | #define DEBOUNCE 5 |
55 | 55 | ||
56 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 56 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
57 | //#define MATRIX_HAS_GHOST | 57 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/rama/m6_b/config.h b/keyboards/rama/m6_b/config.h index 0d690bffa..015bc6df8 100644 --- a/keyboards/rama/m6_b/config.h +++ b/keyboards/rama/m6_b/config.h | |||
@@ -51,7 +51,7 @@ | |||
51 | // #define BACKLIGHT_LEVELS 3 | 51 | // #define BACKLIGHT_LEVELS 3 |
52 | 52 | ||
53 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 53 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
54 | #define DEBOUNCING_DELAY 5 | 54 | #define DEBOUNCE 5 |
55 | 55 | ||
56 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 56 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
57 | //#define MATRIX_HAS_GHOST | 57 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/rama/u80_a/config.h b/keyboards/rama/u80_a/config.h index 953bf63f2..44d9e2133 100644 --- a/keyboards/rama/u80_a/config.h +++ b/keyboards/rama/u80_a/config.h | |||
@@ -52,7 +52,7 @@ | |||
52 | // #define BACKLIGHT_LEVELS 3 | 52 | // #define BACKLIGHT_LEVELS 3 |
53 | 53 | ||
54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
55 | #define DEBOUNCING_DELAY 5 | 55 | #define DEBOUNCE 5 |
56 | 56 | ||
57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
58 | //#define MATRIX_HAS_GHOST | 58 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/redox/rev1/config.h b/keyboards/redox/rev1/config.h index ce205e02e..72ca94b79 100644 --- a/keyboards/redox/rev1/config.h +++ b/keyboards/redox/rev1/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | // #define BACKLIGHT_LEVELS 3 | 47 | // #define BACKLIGHT_LEVELS 3 |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* serial.c configuration for split keyboard */ | 52 | /* serial.c configuration for split keyboard */ |
53 | #define SOFT_SERIAL_PIN D0 | 53 | #define SOFT_SERIAL_PIN D0 |
diff --git a/keyboards/rgbkb/sol/config.h b/keyboards/rgbkb/sol/config.h index a7317d9d9..1afd973e9 100644 --- a/keyboards/rgbkb/sol/config.h +++ b/keyboards/rgbkb/sol/config.h | |||
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
41 | #define ENCODERS_PAD_B { D6 } | 41 | #define ENCODERS_PAD_B { D6 } |
42 | 42 | ||
43 | /* Set 0 if debouncing isn't needed */ | 43 | /* Set 0 if debouncing isn't needed */ |
44 | #define DEBOUNCING_DELAY 5 | 44 | #define DEBOUNCE 5 |
45 | 45 | ||
46 | /* ws2812 RGB LED */ | 46 | /* ws2812 RGB LED */ |
47 | #define RGB_DI_PIN B3 | 47 | #define RGB_DI_PIN B3 |
diff --git a/keyboards/rgbkb/zen/rev1/config.h b/keyboards/rgbkb/zen/rev1/config.h index 88f39af48..4d81855a8 100644 --- a/keyboards/rgbkb/zen/rev1/config.h +++ b/keyboards/rgbkb/zen/rev1/config.h | |||
@@ -43,7 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
43 | //#define MATRIX_HAS_GHOST | 43 | //#define MATRIX_HAS_GHOST |
44 | 44 | ||
45 | /* Set 0 if debouncing isn't needed */ | 45 | /* Set 0 if debouncing isn't needed */ |
46 | #define DEBOUNCING_DELAY 5 | 46 | #define DEBOUNCE 5 |
47 | 47 | ||
48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
49 | #define LOCKING_SUPPORT_ENABLE | 49 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/rgbkb/zen/rev2/config.h b/keyboards/rgbkb/zen/rev2/config.h index c56956108..b9f3d2228 100644 --- a/keyboards/rgbkb/zen/rev2/config.h +++ b/keyboards/rgbkb/zen/rev2/config.h | |||
@@ -56,7 +56,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
56 | //#define MATRIX_HAS_GHOST | 56 | //#define MATRIX_HAS_GHOST |
57 | 57 | ||
58 | /* Set 0 if debouncing isn't needed */ | 58 | /* Set 0 if debouncing isn't needed */ |
59 | #define DEBOUNCING_DELAY 5 | 59 | #define DEBOUNCE 5 |
60 | 60 | ||
61 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 61 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
62 | #define LOCKING_SUPPORT_ENABLE | 62 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/rgbkb/zygomorph/rev1/config.h b/keyboards/rgbkb/zygomorph/rev1/config.h index 107e58c12..ad58761cc 100644 --- a/keyboards/rgbkb/zygomorph/rev1/config.h +++ b/keyboards/rgbkb/zygomorph/rev1/config.h | |||
@@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
45 | #define ENCODERS_PAD_B { D7 } | 45 | #define ENCODERS_PAD_B { D7 } |
46 | 46 | ||
47 | /* Set 0 if debouncing isn't needed */ | 47 | /* Set 0 if debouncing isn't needed */ |
48 | #define DEBOUNCING_DELAY 5 | 48 | #define DEBOUNCE 5 |
49 | 49 | ||
50 | /* ws2812 RGB LED */ | 50 | /* ws2812 RGB LED */ |
51 | #define RGB_DI_PIN B7 | 51 | #define RGB_DI_PIN B7 |
diff --git a/keyboards/romac/config.h b/keyboards/romac/config.h index b92785fd5..da236c500 100644 --- a/keyboards/romac/config.h +++ b/keyboards/romac/config.h | |||
@@ -26,7 +26,7 @@ | |||
26 | #define BACKLIGHT_LEVELS 0 | 26 | #define BACKLIGHT_LEVELS 0 |
27 | 27 | ||
28 | /* Set 0 if debouncing isn't needed */ | 28 | /* Set 0 if debouncing isn't needed */ |
29 | #define DEBOUNCING_DELAY 5 | 29 | #define DEBOUNCE 5 |
30 | 30 | ||
31 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 31 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
32 | #define LOCKING_SUPPORT_ENABLE | 32 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/s7_elephant/config.h b/keyboards/s7_elephant/config.h index 6335fbc9c..c4f57178d 100644 --- a/keyboards/s7_elephant/config.h +++ b/keyboards/s7_elephant/config.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #define DIODE_DIRECTION COL2ROW | 23 | #define DIODE_DIRECTION COL2ROW |
24 | 24 | ||
25 | /* Set 0 if debouncing isn't needed */ | 25 | /* Set 0 if debouncing isn't needed */ |
26 | #define DEBOUNCING_DELAY 5 | 26 | #define DEBOUNCE 5 |
27 | 27 | ||
28 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 28 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
29 | #define LOCKING_SUPPORT_ENABLE | 29 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/satan/config.h b/keyboards/satan/config.h index c15e5c37c..d8c9ae9ab 100644 --- a/keyboards/satan/config.h +++ b/keyboards/satan/config.h | |||
@@ -46,7 +46,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
46 | //#define MATRIX_HAS_GHOST | 46 | //#define MATRIX_HAS_GHOST |
47 | 47 | ||
48 | /* Set 0 if debouncing isn't needed */ | 48 | /* Set 0 if debouncing isn't needed */ |
49 | #define DEBOUNCING_DELAY 5 | 49 | #define DEBOUNCE 5 |
50 | 50 | ||
51 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 51 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
52 | #define LOCKING_SUPPORT_ENABLE | 52 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/satan/keymaps/admiralStrokers/config.h b/keyboards/satan/keymaps/admiralStrokers/config.h index 17e0ea3b7..c8d40730f 100644 --- a/keyboards/satan/keymaps/admiralStrokers/config.h +++ b/keyboards/satan/keymaps/admiralStrokers/config.h | |||
@@ -48,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
48 | //#define MATRIX_HAS_GHOST | 48 | //#define MATRIX_HAS_GHOST |
49 | 49 | ||
50 | /* Set 0 if debouncing isn't needed */ | 50 | /* Set 0 if debouncing isn't needed */ |
51 | #define DEBOUNCING_DELAY 5 | 51 | #define DEBOUNCE 5 |
52 | 52 | ||
53 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 53 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
54 | #define LOCKING_SUPPORT_ENABLE | 54 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/satan/keymaps/fakb/config.h b/keyboards/satan/keymaps/fakb/config.h index 81598f22e..dc182753d 100644 --- a/keyboards/satan/keymaps/fakb/config.h +++ b/keyboards/satan/keymaps/fakb/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | //#define MATRIX_HAS_GHOST | 30 | //#define MATRIX_HAS_GHOST |
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | 34 | ||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
36 | //#define LOCKING_SUPPORT_ENABLE | 36 | //#define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/scarletbandana/config.h b/keyboards/scarletbandana/config.h index 01cf95065..4e37b4b42 100644 --- a/keyboards/scarletbandana/config.h +++ b/keyboards/scarletbandana/config.h | |||
@@ -55,4 +55,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
55 | #define NO_ACTION_MACRO | 55 | #define NO_ACTION_MACRO |
56 | #define NO_ACTION_FUNCTION | 56 | #define NO_ACTION_FUNCTION |
57 | 57 | ||
58 | #define DEBOUNCING_DELAY 5 | 58 | #define DEBOUNCE 5 |
diff --git a/keyboards/scythe/config.h b/keyboards/scythe/config.h index 76d332364..66d47c356 100644 --- a/keyboards/scythe/config.h +++ b/keyboards/scythe/config.h | |||
@@ -64,7 +64,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
64 | #endif | 64 | #endif |
65 | 65 | ||
66 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 66 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
67 | #define DEBOUNCING_DELAY 5 | 67 | #define DEBOUNCE 5 |
68 | 68 | ||
69 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 69 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
70 | //#define MATRIX_HAS_GHOST | 70 | //#define MATRIX_HAS_GHOST |
@@ -237,4 +237,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
237 | //#define I2C_MASTER_RIGHT | 237 | //#define I2C_MASTER_RIGHT |
238 | 238 | ||
239 | #define TAPPING_TERM 120 | 239 | #define TAPPING_TERM 120 |
240 | |||
diff --git a/keyboards/sentraq/number_pad/config.h b/keyboards/sentraq/number_pad/config.h index f02e537b6..a5df625aa 100644 --- a/keyboards/sentraq/number_pad/config.h +++ b/keyboards/sentraq/number_pad/config.h | |||
@@ -75,4 +75,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
75 | #endif | 75 | #endif |
76 | 76 | ||
77 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 77 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
78 | #define DEBOUNCING_DELAY 5 | 78 | #define DEBOUNCE 5 |
diff --git a/keyboards/sentraq/s60_x/default/config.h b/keyboards/sentraq/s60_x/default/config.h index d7fb79625..dc4114143 100644 --- a/keyboards/sentraq/s60_x/default/config.h +++ b/keyboards/sentraq/s60_x/default/config.h | |||
@@ -36,7 +36,7 @@ | |||
36 | #define DIODE_DIRECTION COL2ROW | 36 | #define DIODE_DIRECTION COL2ROW |
37 | 37 | ||
38 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 38 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
39 | #define DEBOUNCING_DELAY 5 | 39 | #define DEBOUNCE 5 |
40 | 40 | ||
41 | #define LOCKING_SUPPORT_ENABLE | 41 | #define LOCKING_SUPPORT_ENABLE |
42 | #define LOCKING_RESYNC_ENABLE | 42 | #define LOCKING_RESYNC_ENABLE |
@@ -44,4 +44,3 @@ | |||
44 | #define NO_ACTION_ONESHOT | 44 | #define NO_ACTION_ONESHOT |
45 | #define NO_ACTION_MACRO | 45 | #define NO_ACTION_MACRO |
46 | #define NO_ACTION_FUNCTION | 46 | #define NO_ACTION_FUNCTION |
47 | |||
diff --git a/keyboards/sentraq/s60_x/keymaps/bluebear/config.h b/keyboards/sentraq/s60_x/keymaps/bluebear/config.h index c1db5f64a..0a6ce8178 100644 --- a/keyboards/sentraq/s60_x/keymaps/bluebear/config.h +++ b/keyboards/sentraq/s60_x/keymaps/bluebear/config.h | |||
@@ -31,7 +31,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
31 | //#define MATRIX_HAS_GHOST | 31 | //#define MATRIX_HAS_GHOST |
32 | 32 | ||
33 | /* Set 0 if debouncing isn't needed */ | 33 | /* Set 0 if debouncing isn't needed */ |
34 | #define DEBOUNCING_DELAY 5 | 34 | #define DEBOUNCE 5 |
35 | 35 | ||
36 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 36 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
37 | #define LOCKING_SUPPORT_ENABLE | 37 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/sentraq/s60_x/rgb/config.h b/keyboards/sentraq/s60_x/rgb/config.h index 0e231a722..57e736a05 100644 --- a/keyboards/sentraq/s60_x/rgb/config.h +++ b/keyboards/sentraq/s60_x/rgb/config.h | |||
@@ -36,7 +36,7 @@ | |||
36 | #define DIODE_DIRECTION COL2ROW | 36 | #define DIODE_DIRECTION COL2ROW |
37 | 37 | ||
38 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 38 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
39 | #define DEBOUNCING_DELAY 5 | 39 | #define DEBOUNCE 5 |
40 | 40 | ||
41 | #define RGB_DI_PIN F6 | 41 | #define RGB_DI_PIN F6 |
42 | #ifdef RGB_DI_PIN | 42 | #ifdef RGB_DI_PIN |
@@ -46,4 +46,3 @@ | |||
46 | #define RGBLIGHT_SAT_STEP 8 | 46 | #define RGBLIGHT_SAT_STEP 8 |
47 | #define RGBLIGHT_VAL_STEP 8 | 47 | #define RGBLIGHT_VAL_STEP 8 |
48 | #endif | 48 | #endif |
49 | |||
diff --git a/keyboards/sentraq/s65_plus/config.h b/keyboards/sentraq/s65_plus/config.h index c45fd2412..51aacfc19 100644 --- a/keyboards/sentraq/s65_plus/config.h +++ b/keyboards/sentraq/s65_plus/config.h | |||
@@ -36,7 +36,7 @@ | |||
36 | #define DIODE_DIRECTION COL2ROW | 36 | #define DIODE_DIRECTION COL2ROW |
37 | 37 | ||
38 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 38 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
39 | #define DEBOUNCING_DELAY 5 | 39 | #define DEBOUNCE 5 |
40 | 40 | ||
41 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 41 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
42 | #define LOCKING_SUPPORT_ENABLE | 42 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/sentraq/s65_x/config.h b/keyboards/sentraq/s65_x/config.h index 486765273..9c337bde4 100644 --- a/keyboards/sentraq/s65_x/config.h +++ b/keyboards/sentraq/s65_x/config.h | |||
@@ -38,7 +38,7 @@ | |||
38 | #define DIODE_DIRECTION COL2ROW | 38 | #define DIODE_DIRECTION COL2ROW |
39 | 39 | ||
40 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 40 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
41 | #define DEBOUNCING_DELAY 5 | 41 | #define DEBOUNCE 5 |
42 | 42 | ||
43 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 43 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
44 | #define LOCKING_SUPPORT_ENABLE | 44 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/signum/3_0/elitec/config.h b/keyboards/signum/3_0/elitec/config.h index 3df07d17f..88e45ef45 100644 --- a/keyboards/signum/3_0/elitec/config.h +++ b/keyboards/signum/3_0/elitec/config.h | |||
@@ -20,7 +20,7 @@ | |||
20 | #define UNUSED_PINS | 20 | #define UNUSED_PINS |
21 | 21 | ||
22 | /* Set 0 if debouncing isn't needed */ | 22 | /* Set 0 if debouncing isn't needed */ |
23 | #define DEBOUNCING_DELAY 5 | 23 | #define DEBOUNCE 5 |
24 | 24 | ||
25 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 25 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
26 | #define LOCKING_SUPPORT_ENABLE | 26 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/singa/config.h b/keyboards/singa/config.h index aca1153d7..29110bd4e 100644 --- a/keyboards/singa/config.h +++ b/keyboards/singa/config.h | |||
@@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
34 | #define UNUSED_PINS | 34 | #define UNUSED_PINS |
35 | 35 | ||
36 | #define DIODE_DIRECTION COL2ROW | 36 | #define DIODE_DIRECTION COL2ROW |
37 | #define DEBOUNCING_DELAY 5 | 37 | #define DEBOUNCE 5 |
38 | 38 | ||
39 | #define NO_BACKLIGHT_CLOCK | 39 | #define NO_BACKLIGHT_CLOCK |
40 | #define BACKLIGHT_LEVELS 1 | 40 | #define BACKLIGHT_LEVELS 1 |
diff --git a/keyboards/sixkeyboard/config.h b/keyboards/sixkeyboard/config.h index 3a672788b..a825467af 100644 --- a/keyboards/sixkeyboard/config.h +++ b/keyboards/sixkeyboard/config.h | |||
@@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
39 | #define BACKLIGHT_LEVELS 0 | 39 | #define BACKLIGHT_LEVELS 0 |
40 | 40 | ||
41 | /* Set 0 if debouncing isn't needed */ | 41 | /* Set 0 if debouncing isn't needed */ |
42 | #define DEBOUNCING_DELAY 5 | 42 | #define DEBOUNCE 5 |
43 | 43 | ||
44 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 44 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
45 | #define LOCKING_SUPPORT_ENABLE | 45 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/snagpad/config.h b/keyboards/snagpad/config.h index d0c55cf97..9503ae25f 100644 --- a/keyboards/snagpad/config.h +++ b/keyboards/snagpad/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/southpole/config.h b/keyboards/southpole/config.h index 5992a360f..396384040 100644 --- a/keyboards/southpole/config.h +++ b/keyboards/southpole/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/speedo/config.h b/keyboards/speedo/config.h index ac9d5e4f1..04195b866 100644 --- a/keyboards/speedo/config.h +++ b/keyboards/speedo/config.h | |||
@@ -55,7 +55,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
55 | // #define BACKLIGHT_LEVELS 3 | 55 | // #define BACKLIGHT_LEVELS 3 |
56 | 56 | ||
57 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 57 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
58 | #define DEBOUNCING_DELAY 5 | 58 | #define DEBOUNCE 5 |
59 | 59 | ||
60 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 60 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
61 | //#define MATRIX_HAS_GHOST | 61 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/standaside/config.h b/keyboards/standaside/config.h index fa3576ca5..80c9f8d21 100644 --- a/keyboards/standaside/config.h +++ b/keyboards/standaside/config.h | |||
@@ -40,7 +40,7 @@ | |||
40 | 40 | ||
41 | 41 | ||
42 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 42 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
43 | #define DEBOUNCING_DELAY 5 | 43 | #define DEBOUNCE 5 |
44 | 44 | ||
45 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 45 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
46 | //#define MATRIX_HAS_GHOST | 46 | //#define MATRIX_HAS_GHOST |
@@ -201,4 +201,3 @@ | |||
201 | #define LCD_E_PIN 1 //< pin for Enable line | 201 | #define LCD_E_PIN 1 //< pin for Enable line |
202 | #endif | 202 | #endif |
203 | */ | 203 | */ |
204 | |||
diff --git a/keyboards/staryu/config.h b/keyboards/staryu/config.h index 05131b68b..dc7353fcc 100755 --- a/keyboards/staryu/config.h +++ b/keyboards/staryu/config.h | |||
@@ -68,7 +68,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
68 | #define BACKLIGHT_ON_STATE 1 | 68 | #define BACKLIGHT_ON_STATE 1 |
69 | 69 | ||
70 | /* Set 0 if debouncing isn't needed */ | 70 | /* Set 0 if debouncing isn't needed */ |
71 | #define DEBOUNCING_DELAY 5 | 71 | #define DEBOUNCE 5 |
72 | 72 | ||
73 | /* Bootmagic Lite key configuration */ | 73 | /* Bootmagic Lite key configuration */ |
74 | #define BOOTMAGIC_LITE_ROW 0 | 74 | #define BOOTMAGIC_LITE_ROW 0 |
diff --git a/keyboards/subatomic/config.h b/keyboards/subatomic/config.h index d4ace70d8..f509ca53e 100644 --- a/keyboards/subatomic/config.h +++ b/keyboards/subatomic/config.h | |||
@@ -52,7 +52,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
52 | #define BACKLIGHT_LEVELS 3 | 52 | #define BACKLIGHT_LEVELS 3 |
53 | 53 | ||
54 | /* Set 0 if debouncing isn't needed */ | 54 | /* Set 0 if debouncing isn't needed */ |
55 | #define DEBOUNCING_DELAY 5 | 55 | #define DEBOUNCE 5 |
56 | 56 | ||
57 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 57 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
58 | #define LOCKING_SUPPORT_ENABLE | 58 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/sx60/config.h b/keyboards/sx60/config.h index cad8b0ba4..d75e19b29 100755 --- a/keyboards/sx60/config.h +++ b/keyboards/sx60/config.h | |||
@@ -31,7 +31,7 @@ | |||
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | /* Set 0 if debouncing isn't needed */ | 33 | /* Set 0 if debouncing isn't needed */ |
34 | #define DEBOUNCING_DELAY 5 | 34 | #define DEBOUNCE 5 |
35 | 35 | ||
36 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 36 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
37 | #define LOCKING_SUPPORT_ENABLE | 37 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/sx60/matrix.c b/keyboards/sx60/matrix.c index 634a98a12..e8e9d6574 100644 --- a/keyboards/sx60/matrix.c +++ b/keyboards/sx60/matrix.c | |||
@@ -30,11 +30,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | 32 | ||
33 | #ifndef DEBOUNCING_DELAY | 33 | #ifndef DEBOUNCE |
34 | # define DEBOUNCING_DELAY 5 | 34 | # define DEBOUNCE 5 |
35 | #endif | 35 | #endif |
36 | 36 | ||
37 | #if (DEBOUNCING_DELAY > 0) | 37 | #if (DEBOUNCE > 0) |
38 | static uint16_t debouncing_time; | 38 | static uint16_t debouncing_time; |
39 | static bool debouncing = false; | 39 | static bool debouncing = false; |
40 | #endif | 40 | #endif |
@@ -154,7 +154,7 @@ uint8_t matrix_scan(void) | |||
154 | 154 | ||
155 | /* Set row, read cols */ | 155 | /* Set row, read cols */ |
156 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { | 156 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { |
157 | # if (DEBOUNCING_DELAY > 0) | 157 | # if (DEBOUNCE > 0) |
158 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); | 158 | bool matrix_changed = read_cols_on_row(matrix_debouncing, current_row); |
159 | 159 | ||
160 | if (matrix_changed) { | 160 | if (matrix_changed) { |
@@ -166,8 +166,8 @@ uint8_t matrix_scan(void) | |||
166 | # endif | 166 | # endif |
167 | } | 167 | } |
168 | 168 | ||
169 | # if (DEBOUNCING_DELAY > 0) | 169 | # if (DEBOUNCE > 0) |
170 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 170 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
171 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { | 171 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { |
172 | matrix[i] = matrix_debouncing[i]; | 172 | matrix[i] = matrix_debouncing[i]; |
173 | } | 173 | } |
@@ -181,7 +181,7 @@ uint8_t matrix_scan(void) | |||
181 | 181 | ||
182 | bool matrix_is_modified(void) | 182 | bool matrix_is_modified(void) |
183 | { | 183 | { |
184 | #if (DEBOUNCING_DELAY > 0) | 184 | #if (DEBOUNCE > 0) |
185 | if (debouncing) return false; | 185 | if (debouncing) return false; |
186 | #endif | 186 | #endif |
187 | return true; | 187 | return true; |
diff --git a/keyboards/tada68/config.h b/keyboards/tada68/config.h index ab564cd3b..a8fa37a5b 100755 --- a/keyboards/tada68/config.h +++ b/keyboards/tada68/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | //#define MATRIX_HAS_GHOST | 47 | //#define MATRIX_HAS_GHOST |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
53 | #define LOCKING_SUPPORT_ENABLE | 53 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/tetris/config.h b/keyboards/tetris/config.h index 2cc7d2951..7fe0c2d64 100755 --- a/keyboards/tetris/config.h +++ b/keyboards/tetris/config.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #define DIODE_DIRECTION COL2ROW | 23 | #define DIODE_DIRECTION COL2ROW |
24 | 24 | ||
25 | /* Set 0 if debouncing isn't needed */ | 25 | /* Set 0 if debouncing isn't needed */ |
26 | #define DEBOUNCING_DELAY 5 | 26 | #define DEBOUNCE 5 |
27 | 27 | ||
28 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 28 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
29 | #define LOCKING_SUPPORT_ENABLE | 29 | #define LOCKING_SUPPORT_ENABLE |
@@ -52,4 +52,3 @@ | |||
52 | #define RGBLIGHT_SAT_STEP 8 | 52 | #define RGBLIGHT_SAT_STEP 8 |
53 | #define RGBLIGHT_VAL_STEP 8 | 53 | #define RGBLIGHT_VAL_STEP 8 |
54 | #define RGBLIGHT_EFFECT_KNIGHT_LED_NUM 12 | 54 | #define RGBLIGHT_EFFECT_KNIGHT_LED_NUM 12 |
55 | |||
diff --git a/keyboards/the_ruler/config.h b/keyboards/the_ruler/config.h index c340019be..ecae3a4f2 100644 --- a/keyboards/the_ruler/config.h +++ b/keyboards/the_ruler/config.h | |||
@@ -50,7 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
50 | #define DIODE_DIRECTION COL2ROW | 50 | #define DIODE_DIRECTION COL2ROW |
51 | 51 | ||
52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
53 | #define DEBOUNCING_DELAY 5 | 53 | #define DEBOUNCE 5 |
54 | 54 | ||
55 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 55 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
56 | //#define MATRIX_HAS_GHOST | 56 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/thevankeyboards/bananasplit/config.h b/keyboards/thevankeyboards/bananasplit/config.h index a96c59dbb..7c0b5b201 100644 --- a/keyboards/thevankeyboards/bananasplit/config.h +++ b/keyboards/thevankeyboards/bananasplit/config.h | |||
@@ -48,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
48 | #define BACKLIGHT_PIN B7 | 48 | #define BACKLIGHT_PIN B7 |
49 | 49 | ||
50 | /* Set 0 if debouncing isn't needed */ | 50 | /* Set 0 if debouncing isn't needed */ |
51 | #define DEBOUNCING_DELAY 5 | 51 | #define DEBOUNCE 5 |
52 | #define TAPPING_TERM 175 | 52 | #define TAPPING_TERM 175 |
53 | 53 | ||
54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
diff --git a/keyboards/thevankeyboards/minivan/config.h b/keyboards/thevankeyboards/minivan/config.h index 38207d38d..22fb37762 100644 --- a/keyboards/thevankeyboards/minivan/config.h +++ b/keyboards/thevankeyboards/minivan/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/thevankeyboards/minivan/keymaps/budi/config.h b/keyboards/thevankeyboards/minivan/keymaps/budi/config.h index 67bcf3546..dc36b7380 100644 --- a/keyboards/thevankeyboards/minivan/keymaps/budi/config.h +++ b/keyboards/thevankeyboards/minivan/keymaps/budi/config.h | |||
@@ -4,10 +4,10 @@ | |||
4 | #include "../../config.h" | 4 | #include "../../config.h" |
5 | 5 | ||
6 | // place overrides here | 6 | // place overrides here |
7 | #ifdef DEBOUNCING_DELAY | 7 | #ifdef DEBOUNCE |
8 | #undef DEBOUNCING_DELAY | 8 | #undef DEBOUNCE |
9 | #endif | 9 | #endif |
10 | #define DEBOUNCING_DELAY 2 | 10 | #define DEBOUNCE 2 |
11 | #define MOUSEKEY_INTERVAL 10 | 11 | #define MOUSEKEY_INTERVAL 10 |
12 | #define MOUSEKEY_DELAY 0 | 12 | #define MOUSEKEY_DELAY 0 |
13 | #define MOUSEKEY_TIME_TO_MAX 120 | 13 | #define MOUSEKEY_TIME_TO_MAX 120 |
diff --git a/keyboards/thevankeyboards/roadkit/config.h b/keyboards/thevankeyboards/roadkit/config.h index 3f7178039..71bd6ba6b 100644 --- a/keyboards/thevankeyboards/roadkit/config.h +++ b/keyboards/thevankeyboards/roadkit/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | // #define BACKLIGHT_LEVELS 3 | 54 | // #define BACKLIGHT_LEVELS 3 |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/tkc1800/config.h b/keyboards/tkc1800/config.h index 2f45d04de..a45fb677e 100644 --- a/keyboards/tkc1800/config.h +++ b/keyboards/tkc1800/config.h | |||
@@ -60,7 +60,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
60 | //#define MATRIX_HAS_GHOST | 60 | //#define MATRIX_HAS_GHOST |
61 | 61 | ||
62 | /* Set 0 if debouncing isn't needed */ | 62 | /* Set 0 if debouncing isn't needed */ |
63 | #define DEBOUNCING_DELAY 5 | 63 | #define DEBOUNCE 5 |
64 | 64 | ||
65 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 65 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
66 | #define LOCKING_SUPPORT_ENABLE | 66 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/tmo50/config.h b/keyboards/tmo50/config.h index 3af322e9b..ee7f0e34a 100644 --- a/keyboards/tmo50/config.h +++ b/keyboards/tmo50/config.h | |||
@@ -76,7 +76,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
76 | #endif | 76 | #endif |
77 | 77 | ||
78 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 78 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
79 | #define DEBOUNCING_DELAY 5 | 79 | #define DEBOUNCE 5 |
80 | 80 | ||
81 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 81 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
82 | //#define MATRIX_HAS_GHOST | 82 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/toad/config.h b/keyboards/toad/config.h index f750b52bf..5f3eb43c2 100644 --- a/keyboards/toad/config.h +++ b/keyboards/toad/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | 34 | ||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
36 | #define LOCKING_SUPPORT_ENABLE | 36 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/tokyo60/config.h b/keyboards/tokyo60/config.h index fddb37d28..2c1326c0a 100644 --- a/keyboards/tokyo60/config.h +++ b/keyboards/tokyo60/config.h | |||
@@ -26,7 +26,7 @@ | |||
26 | #define DIODE_DIRECTION ROW2COL | 26 | #define DIODE_DIRECTION ROW2COL |
27 | 27 | ||
28 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 28 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
29 | #define DEBOUNCING_DELAY 5 | 29 | #define DEBOUNCE 5 |
30 | 30 | ||
31 | /* Set power consumption to work with mobile devices */ | 31 | /* Set power consumption to work with mobile devices */ |
32 | #define USB_MAX_POWER_CONSUMPTION 100 | 32 | #define USB_MAX_POWER_CONSUMPTION 100 |
diff --git a/keyboards/touchpad/config.h b/keyboards/touchpad/config.h index 8e93c9427..b953b4f49 100644 --- a/keyboards/touchpad/config.h +++ b/keyboards/touchpad/config.h | |||
@@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
39 | #define BACKLIGHT_LEVELS 3 | 39 | #define BACKLIGHT_LEVELS 3 |
40 | 40 | ||
41 | /* Set 0 if debouncing isn't needed */ | 41 | /* Set 0 if debouncing isn't needed */ |
42 | #define DEBOUNCING_DELAY 5 | 42 | #define DEBOUNCE 5 |
43 | 43 | ||
44 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 44 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
45 | #define LOCKING_SUPPORT_ENABLE | 45 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/treadstone32/config.h b/keyboards/treadstone32/config.h index 6151d6e82..a7f991453 100644 --- a/keyboards/treadstone32/config.h +++ b/keyboards/treadstone32/config.h | |||
@@ -49,7 +49,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
49 | #define DIODE_DIRECTION COL2ROW | 49 | #define DIODE_DIRECTION COL2ROW |
50 | 50 | ||
51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
52 | #define DEBOUNCING_DELAY 5 | 52 | #define DEBOUNCE 5 |
53 | 53 | ||
54 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 54 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
55 | //#define MATRIX_HAS_GHOST | 55 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/treadstone48/rev1/config.h b/keyboards/treadstone48/rev1/config.h index d8ecf170d..09fb62154 100644 --- a/keyboards/treadstone48/rev1/config.h +++ b/keyboards/treadstone48/rev1/config.h | |||
@@ -63,7 +63,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
63 | // #define BACKLIGHT_LEVELS 3 | 63 | // #define BACKLIGHT_LEVELS 3 |
64 | 64 | ||
65 | /* Set 0 if debouncing isn't needed */ | 65 | /* Set 0 if debouncing isn't needed */ |
66 | #define DEBOUNCING_DELAY 5 | 66 | #define DEBOUNCE 5 |
67 | 67 | ||
68 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 68 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
69 | //#define LOCKING_SUPPORT_ENABLE | 69 | //#define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/treasure/type9/config.h b/keyboards/treasure/type9/config.h index 6115880d0..220b7f780 100644 --- a/keyboards/treasure/type9/config.h +++ b/keyboards/treasure/type9/config.h | |||
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | // #endif | 62 | // #endif |
63 | 63 | ||
64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
65 | #define DEBOUNCING_DELAY 5 | 65 | #define DEBOUNCE 5 |
66 | 66 | ||
67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
68 | //#define MATRIX_HAS_GHOST | 68 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/uk78/config.h b/keyboards/uk78/config.h index eff8d1d62..879360773 100644 --- a/keyboards/uk78/config.h +++ b/keyboards/uk78/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
53 | #define LOCKING_SUPPORT_ENABLE | 53 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/ut472/config.h b/keyboards/ut472/config.h index 8f0d76271..c71995ec7 100644 --- a/keyboards/ut472/config.h +++ b/keyboards/ut472/config.h | |||
@@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
40 | #define DIODE_DIRECTION COL2ROW | 40 | #define DIODE_DIRECTION COL2ROW |
41 | 41 | ||
42 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 42 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
43 | #define DEBOUNCING_DELAY 5 | 43 | #define DEBOUNCE 5 |
44 | 44 | ||
45 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 45 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
46 | //#define MATRIX_HAS_GHOST | 46 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/v60_type_r/config.h b/keyboards/v60_type_r/config.h index e3e00a9f8..51ca6def9 100644 --- a/keyboards/v60_type_r/config.h +++ b/keyboards/v60_type_r/config.h | |||
@@ -63,7 +63,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
63 | #define RGB_STEP 16 | 63 | #define RGB_STEP 16 |
64 | 64 | ||
65 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 65 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
66 | #define DEBOUNCING_DELAY 5 | 66 | #define DEBOUNCE 5 |
67 | 67 | ||
68 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 68 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
69 | //#define MATRIX_HAS_GHOST | 69 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/vision_division/config.h b/keyboards/vision_division/config.h index c80a011e2..249431b87 100644 --- a/keyboards/vision_division/config.h +++ b/keyboards/vision_division/config.h | |||
@@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
30 | #define BACKLIGHT_LEVELS 3 | 30 | #define BACKLIGHT_LEVELS 3 |
31 | 31 | ||
32 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 32 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
33 | #define DEBOUNCING_DELAY 0 | 33 | #define DEBOUNCE 0 |
34 | 34 | ||
35 | #define MATRIX_MASKED | 35 | #define MATRIX_MASKED |
36 | 36 | ||
diff --git a/keyboards/vitamins_included/matrix.c b/keyboards/vitamins_included/matrix.c index cf4c1064f..1f5071c69 100644 --- a/keyboards/vitamins_included/matrix.c +++ b/keyboards/vitamins_included/matrix.c | |||
@@ -45,11 +45,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
45 | # include "serial.h" | 45 | # include "serial.h" |
46 | #endif | 46 | #endif |
47 | 47 | ||
48 | #ifndef DEBOUNCING_DELAY | 48 | #ifndef DEBOUNCE |
49 | # define DEBOUNCING_DELAY 5 | 49 | # define DEBOUNCE 5 |
50 | #endif | 50 | #endif |
51 | 51 | ||
52 | #if (DEBOUNCING_DELAY > 0) | 52 | #if (DEBOUNCE > 0) |
53 | static uint16_t debouncing_time; | 53 | static uint16_t debouncing_time; |
54 | static bool debouncing = false; | 54 | static bool debouncing = false; |
55 | #endif | 55 | #endif |
@@ -192,7 +192,7 @@ uint8_t _matrix_scan(void) | |||
192 | #if (DIODE_DIRECTION == COL2ROW) | 192 | #if (DIODE_DIRECTION == COL2ROW) |
193 | // Set row, read cols | 193 | // Set row, read cols |
194 | for (uint8_t current_row = 0; current_row < ROWS_PER_HAND; current_row++) { | 194 | for (uint8_t current_row = 0; current_row < ROWS_PER_HAND; current_row++) { |
195 | # if (DEBOUNCING_DELAY > 0) | 195 | # if (DEBOUNCE > 0) |
196 | bool matrix_changed = read_cols_on_row(matrix_debouncing+offset, current_row); | 196 | bool matrix_changed = read_cols_on_row(matrix_debouncing+offset, current_row); |
197 | 197 | ||
198 | if (matrix_changed) { | 198 | if (matrix_changed) { |
@@ -209,7 +209,7 @@ uint8_t _matrix_scan(void) | |||
209 | #elif (DIODE_DIRECTION == ROW2COL) | 209 | #elif (DIODE_DIRECTION == ROW2COL) |
210 | // Set col, read rows | 210 | // Set col, read rows |
211 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { | 211 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { |
212 | # if (DEBOUNCING_DELAY > 0) | 212 | # if (DEBOUNCE > 0) |
213 | bool matrix_changed = read_rows_on_col(matrix_debouncing+offset, current_col); | 213 | bool matrix_changed = read_rows_on_col(matrix_debouncing+offset, current_col); |
214 | if (matrix_changed) { | 214 | if (matrix_changed) { |
215 | debouncing = true; | 215 | debouncing = true; |
@@ -222,8 +222,8 @@ uint8_t _matrix_scan(void) | |||
222 | } | 222 | } |
223 | #endif | 223 | #endif |
224 | 224 | ||
225 | # if (DEBOUNCING_DELAY > 0) | 225 | # if (DEBOUNCE > 0) |
226 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { | 226 | if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { |
227 | for (uint8_t i = 0; i < ROWS_PER_HAND; i++) { | 227 | for (uint8_t i = 0; i < ROWS_PER_HAND; i++) { |
228 | matrix[i+offset] = matrix_debouncing[i+offset]; | 228 | matrix[i+offset] = matrix_debouncing[i+offset]; |
229 | } | 229 | } |
diff --git a/keyboards/vitamins_included/rev1/config.h b/keyboards/vitamins_included/rev1/config.h index 7112c7891..f4e5666fe 100644 --- a/keyboards/vitamins_included/rev1/config.h +++ b/keyboards/vitamins_included/rev1/config.h | |||
@@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
45 | // #define BACKLIGHT_LEVELS 3 | 45 | // #define BACKLIGHT_LEVELS 3 |
46 | 46 | ||
47 | /* Set 0 if debouncing isn't needed */ | 47 | /* Set 0 if debouncing isn't needed */ |
48 | #define DEBOUNCING_DELAY 5 | 48 | #define DEBOUNCE 5 |
49 | 49 | ||
50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
51 | #define LOCKING_SUPPORT_ENABLE | 51 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/waldo/config.h b/keyboards/waldo/config.h index c460e7c27..c913ae771 100644 --- a/keyboards/waldo/config.h +++ b/keyboards/waldo/config.h | |||
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | #define BACKLIGHT_LEVELS 3 | 47 | #define BACKLIGHT_LEVELS 3 |
48 | 48 | ||
49 | /* Set 0 if debouncing isn't needed */ | 49 | /* Set 0 if debouncing isn't needed */ |
50 | #define DEBOUNCING_DELAY 5 | 50 | #define DEBOUNCE 5 |
51 | 51 | ||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
53 | #define LOCKING_SUPPORT_ENABLE | 53 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/wasdat/config.h b/keyboards/wasdat/config.h index 73dcdc536..b5c4d3bc2 100644 --- a/keyboards/wasdat/config.h +++ b/keyboards/wasdat/config.h | |||
@@ -91,7 +91,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
91 | // #endif | 91 | // #endif |
92 | 92 | ||
93 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 93 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
94 | #define DEBOUNCING_DELAY 5 | 94 | #define DEBOUNCE 5 |
95 | 95 | ||
96 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 96 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
97 | //#define MATRIX_HAS_GHOST | 97 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/westfoxtrot/aanzee/config.h b/keyboards/westfoxtrot/aanzee/config.h index 3959066b2..d88101fdc 100644 --- a/keyboards/westfoxtrot/aanzee/config.h +++ b/keyboards/westfoxtrot/aanzee/config.h | |||
@@ -68,7 +68,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
68 | #define RGBW | 68 | #define RGBW |
69 | 69 | ||
70 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 70 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
71 | #define DEBOUNCING_DELAY 5 | 71 | #define DEBOUNCE 5 |
72 | 72 | ||
73 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 73 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
74 | //#define MATRIX_HAS_GHOST | 74 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/westfoxtrot/cyclops/config.h b/keyboards/westfoxtrot/cyclops/config.h index b9a8fb28b..3af607031 100644 --- a/keyboards/westfoxtrot/cyclops/config.h +++ b/keyboards/westfoxtrot/cyclops/config.h | |||
@@ -49,7 +49,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
49 | #define DIODE_DIRECTION COL2ROW | 49 | #define DIODE_DIRECTION COL2ROW |
50 | 50 | ||
51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
52 | #define DEBOUNCING_DELAY 5 | 52 | #define DEBOUNCE 5 |
53 | 53 | ||
54 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 54 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
55 | //#define MATRIX_HAS_GHOST | 55 | //#define MATRIX_HAS_GHOST |
@@ -204,4 +204,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
204 | 204 | ||
205 | /* Bootmagic Lite key configuration */ | 205 | /* Bootmagic Lite key configuration */ |
206 | // #define BOOTMAGIC_LITE_ROW 0 | 206 | // #define BOOTMAGIC_LITE_ROW 0 |
207 | // #define BOOTMAGIC_LITE_COLUMN 0 \ No newline at end of file | 207 | // #define BOOTMAGIC_LITE_COLUMN 0 |
diff --git a/keyboards/westfoxtrot/cypher/config.h b/keyboards/westfoxtrot/cypher/config.h index 48ff816f9..137883703 100644 --- a/keyboards/westfoxtrot/cypher/config.h +++ b/keyboards/westfoxtrot/cypher/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | #define BACKLIGHT_LEVELS 5 | 53 | #define BACKLIGHT_LEVELS 5 |
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 5 | 56 | #define DEBOUNCE 5 |
57 | 57 | ||
58 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 58 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
59 | #define LOCKING_SUPPORT_ENABLE | 59 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/wilba_tech/wt60_a/config.h b/keyboards/wilba_tech/wt60_a/config.h index f492074e3..3a2adb3c4 100644 --- a/keyboards/wilba_tech/wt60_a/config.h +++ b/keyboards/wilba_tech/wt60_a/config.h | |||
@@ -46,7 +46,7 @@ | |||
46 | 46 | ||
47 | /* COL2ROW, ROW2COL*/ | 47 | /* COL2ROW, ROW2COL*/ |
48 | #define DIODE_DIRECTION ROW2COL | 48 | #define DIODE_DIRECTION ROW2COL |
49 | 49 | ||
50 | // #define BACKLIGHT_PIN B7 | 50 | // #define BACKLIGHT_PIN B7 |
51 | // #define BACKLIGHT_BREATHING | 51 | // #define BACKLIGHT_BREATHING |
52 | // #define BACKLIGHT_LEVELS 3 | 52 | // #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/wilba_tech/wt65_a/config.h b/keyboards/wilba_tech/wt65_a/config.h index ec488fb50..cb0df1460 100644 --- a/keyboards/wilba_tech/wt65_a/config.h +++ b/keyboards/wilba_tech/wt65_a/config.h | |||
@@ -46,7 +46,7 @@ | |||
46 | 46 | ||
47 | /* COL2ROW, ROW2COL*/ | 47 | /* COL2ROW, ROW2COL*/ |
48 | #define DIODE_DIRECTION ROW2COL | 48 | #define DIODE_DIRECTION ROW2COL |
49 | 49 | ||
50 | // #define BACKLIGHT_PIN B7 | 50 | // #define BACKLIGHT_PIN B7 |
51 | // #define BACKLIGHT_BREATHING | 51 | // #define BACKLIGHT_BREATHING |
52 | // #define BACKLIGHT_LEVELS 3 | 52 | // #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/wilba_tech/wt69_a/config.h b/keyboards/wilba_tech/wt69_a/config.h index 653e90d47..0ed40b27e 100644 --- a/keyboards/wilba_tech/wt69_a/config.h +++ b/keyboards/wilba_tech/wt69_a/config.h | |||
@@ -46,7 +46,7 @@ | |||
46 | 46 | ||
47 | /* COL2ROW, ROW2COL*/ | 47 | /* COL2ROW, ROW2COL*/ |
48 | #define DIODE_DIRECTION ROW2COL | 48 | #define DIODE_DIRECTION ROW2COL |
49 | 49 | ||
50 | // #define BACKLIGHT_PIN B7 | 50 | // #define BACKLIGHT_PIN B7 |
51 | // #define BACKLIGHT_BREATHING | 51 | // #define BACKLIGHT_BREATHING |
52 | // #define BACKLIGHT_LEVELS 3 | 52 | // #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/wilba_tech/wt75_a/config.h b/keyboards/wilba_tech/wt75_a/config.h index 8d7025a60..d1ae33156 100644 --- a/keyboards/wilba_tech/wt75_a/config.h +++ b/keyboards/wilba_tech/wt75_a/config.h | |||
@@ -46,7 +46,7 @@ | |||
46 | 46 | ||
47 | /* COL2ROW, ROW2COL */ | 47 | /* COL2ROW, ROW2COL */ |
48 | #define DIODE_DIRECTION ROW2COL | 48 | #define DIODE_DIRECTION ROW2COL |
49 | 49 | ||
50 | // #define BACKLIGHT_PIN B7 | 50 | // #define BACKLIGHT_PIN B7 |
51 | // #define BACKLIGHT_BREATHING | 51 | // #define BACKLIGHT_BREATHING |
52 | // #define BACKLIGHT_LEVELS 3 | 52 | // #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/wilba_tech/wt80_a/config.h b/keyboards/wilba_tech/wt80_a/config.h index 5a825c3f7..7d974193c 100644 --- a/keyboards/wilba_tech/wt80_a/config.h +++ b/keyboards/wilba_tech/wt80_a/config.h | |||
@@ -46,7 +46,7 @@ | |||
46 | 46 | ||
47 | /* COL2ROW, ROW2COL*/ | 47 | /* COL2ROW, ROW2COL*/ |
48 | #define DIODE_DIRECTION ROW2COL | 48 | #define DIODE_DIRECTION ROW2COL |
49 | 49 | ||
50 | // #define BACKLIGHT_PIN B7 | 50 | // #define BACKLIGHT_PIN B7 |
51 | // #define BACKLIGHT_BREATHING | 51 | // #define BACKLIGHT_BREATHING |
52 | // #define BACKLIGHT_LEVELS 3 | 52 | // #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/wilba_tech/wt8_a/config.h b/keyboards/wilba_tech/wt8_a/config.h index 43f692e0f..6604b7ce8 100644 --- a/keyboards/wilba_tech/wt8_a/config.h +++ b/keyboards/wilba_tech/wt8_a/config.h | |||
@@ -46,7 +46,7 @@ | |||
46 | 46 | ||
47 | /* COL2ROW, ROW2COL*/ | 47 | /* COL2ROW, ROW2COL*/ |
48 | #define DIODE_DIRECTION COL2ROW | 48 | #define DIODE_DIRECTION COL2ROW |
49 | 49 | ||
50 | // #define BACKLIGHT_PIN B7 | 50 | // #define BACKLIGHT_PIN B7 |
51 | // #define BACKLIGHT_BREATHING | 51 | // #define BACKLIGHT_BREATHING |
52 | // #define BACKLIGHT_LEVELS 3 | 52 | // #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/xd60/rev2/config.h b/keyboards/xd60/rev2/config.h index 6c447b89f..5f23f6eac 100644 --- a/keyboards/xd60/rev2/config.h +++ b/keyboards/xd60/rev2/config.h | |||
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
54 | #define DIODE_DIRECTION COL2ROW | 54 | #define DIODE_DIRECTION COL2ROW |
55 | 55 | ||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
57 | #define DEBOUNCING_DELAY 5 | 57 | #define DEBOUNCE 5 |
58 | 58 | ||
59 | /* RGB Underglow | 59 | /* RGB Underglow |
60 | * F6 PIN for XD60v2 that has pre-soldered WS2812 LEDs | 60 | * F6 PIN for XD60v2 that has pre-soldered WS2812 LEDs |
diff --git a/keyboards/xd60/rev3/config.h b/keyboards/xd60/rev3/config.h index d88330cf7..861755e45 100644 --- a/keyboards/xd60/rev3/config.h +++ b/keyboards/xd60/rev3/config.h | |||
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | #define DIODE_DIRECTION COL2ROW | 53 | #define DIODE_DIRECTION COL2ROW |
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 5 | 56 | #define DEBOUNCE 5 |
57 | 57 | ||
58 | /* RGB Underglow | 58 | /* RGB Underglow |
59 | * F6 PIN for XD60v3 that has pre-soldered LEDs | 59 | * F6 PIN for XD60v3 that has pre-soldered LEDs |
diff --git a/keyboards/xd75/config.h b/keyboards/xd75/config.h index bc1f1860f..7f8b71c45 100644 --- a/keyboards/xd75/config.h +++ b/keyboards/xd75/config.h | |||
@@ -48,12 +48,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
48 | 48 | ||
49 | /* COL2ROW, ROW2COL*/ | 49 | /* COL2ROW, ROW2COL*/ |
50 | #define DIODE_DIRECTION COL2ROW | 50 | #define DIODE_DIRECTION COL2ROW |
51 | 51 | ||
52 | #define BACKLIGHT_PIN F5 | 52 | #define BACKLIGHT_PIN F5 |
53 | #define BACKLIGHT_LEVELS 6 | 53 | #define BACKLIGHT_LEVELS 6 |
54 | 54 | ||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
56 | #define DEBOUNCING_DELAY 5 | 56 | #define DEBOUNCE 5 |
57 | 57 | ||
58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
59 | //#define MATRIX_HAS_GHOST | 59 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/xd84/config.h b/keyboards/xd84/config.h index abb9f17a5..138c2c4c8 100644 --- a/keyboards/xd84/config.h +++ b/keyboards/xd84/config.h | |||
@@ -75,7 +75,7 @@ | |||
75 | // #endif | 75 | // #endif |
76 | 76 | ||
77 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 77 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
78 | #define DEBOUNCING_DELAY 5 | 78 | #define DEBOUNCE 5 |
79 | 79 | ||
80 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 80 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
81 | //#define MATRIX_HAS_GHOST | 81 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/xd87/config.h b/keyboards/xd87/config.h index 4fb52be6e..dae9d3db8 100644 --- a/keyboards/xd87/config.h +++ b/keyboards/xd87/config.h | |||
@@ -64,7 +64,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
64 | // #endif | 64 | // #endif |
65 | 65 | ||
66 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 66 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
67 | #define DEBOUNCING_DELAY 5 | 67 | #define DEBOUNCE 5 |
68 | 68 | ||
69 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 69 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
70 | //#define MATRIX_HAS_GHOST | 70 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/xd96/config.h b/keyboards/xd96/config.h index df21205f8..ea6c878e9 100644 --- a/keyboards/xd96/config.h +++ b/keyboards/xd96/config.h | |||
@@ -76,7 +76,7 @@ | |||
76 | // #endif | 76 | // #endif |
77 | 77 | ||
78 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 78 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
79 | #define DEBOUNCING_DELAY 5 | 79 | #define DEBOUNCE 5 |
80 | 80 | ||
81 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 81 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
82 | //#define MATRIX_HAS_GHOST | 82 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/xmmx/config.h b/keyboards/xmmx/config.h index c08829ce3..bee047bf0 100644 --- a/keyboards/xmmx/config.h +++ b/keyboards/xmmx/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | 34 | ||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
36 | #define LOCKING_SUPPORT_ENABLE | 36 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/yd60mq/config.h b/keyboards/yd60mq/config.h index 2a899fa3e..75e697802 100644 --- a/keyboards/yd60mq/config.h +++ b/keyboards/yd60mq/config.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* Set 0 if debouncing isn't needed */ | 31 | /* Set 0 if debouncing isn't needed */ |
32 | #define DEBOUNCING_DELAY 5 | 32 | #define DEBOUNCE 5 |
33 | 33 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 35 | #define LOCKING_SUPPORT_ENABLE |
@@ -44,4 +44,3 @@ | |||
44 | #define RGBLIGHT_SAT_STEP 8 | 44 | #define RGBLIGHT_SAT_STEP 8 |
45 | #define RGBLIGHT_VAL_STEP 8 | 45 | #define RGBLIGHT_VAL_STEP 8 |
46 | #endif | 46 | #endif |
47 | |||
diff --git a/keyboards/yd68/config.h b/keyboards/yd68/config.h index 4caedb0b5..17461c5dc 100644 --- a/keyboards/yd68/config.h +++ b/keyboards/yd68/config.h | |||
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 64 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
65 | #define DEBOUNCING_DELAY 5 | 65 | #define DEBOUNCE 5 |
66 | 66 | ||
67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 67 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
68 | //#define MATRIX_HAS_GHOST | 68 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/yosino58/rev1/config.h b/keyboards/yosino58/rev1/config.h index 8a0cf151b..0214bc102 100644 --- a/keyboards/yosino58/rev1/config.h +++ b/keyboards/yosino58/rev1/config.h | |||
@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
20 | 20 | ||
21 | /* USB Device descriptor parameter */ | 21 | /* USB Device descriptor parameter */ |
22 | #define VENDOR_ID 0x0F6A | 22 | #define VENDOR_ID 0x0F6A |
23 | #define PRODUCT_ID 0x01B8 | 23 | #define PRODUCT_ID 0x01B8 |
24 | #define DEVICE_VER 0x0001 | 24 | #define DEVICE_VER 0x0001 |
25 | #define MANUFACTURER sakuranbo0046 | 25 | #define MANUFACTURER sakuranbo0046 |
26 | #define PRODUCT yosino58 | 26 | #define PRODUCT yosino58 |
@@ -42,7 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
42 | // #define BACKLIGHT_LEVELS 3 | 42 | // #define BACKLIGHT_LEVELS 3 |
43 | 43 | ||
44 | /* Set 0 if debouncing isn't needed */ | 44 | /* Set 0 if debouncing isn't needed */ |
45 | #define DEBOUNCING_DELAY 5 | 45 | #define DEBOUNCE 5 |
46 | 46 | ||
47 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 47 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
48 | //#define LOCKING_SUPPORT_ENABLE | 48 | //#define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/z150_blackheart/config.h b/keyboards/z150_blackheart/config.h index c8a38b038..fc33021ff 100644 --- a/keyboards/z150_blackheart/config.h +++ b/keyboards/z150_blackheart/config.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #define DIODE_DIRECTION COL2ROW | 23 | #define DIODE_DIRECTION COL2ROW |
24 | 24 | ||
25 | /* Set 0 if debouncing isn't needed */ | 25 | /* Set 0 if debouncing isn't needed */ |
26 | #define DEBOUNCING_DELAY 5 | 26 | #define DEBOUNCE 5 |
27 | 27 | ||
28 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 28 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
29 | #define LOCKING_SUPPORT_ENABLE | 29 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/zeal60/config.h b/keyboards/zeal60/config.h index a5e41116d..7c5340e73 100644 --- a/keyboards/zeal60/config.h +++ b/keyboards/zeal60/config.h | |||
@@ -42,7 +42,7 @@ | |||
42 | #define DIODE_DIRECTION COL2ROW | 42 | #define DIODE_DIRECTION COL2ROW |
43 | 43 | ||
44 | // Set 0 if debouncing isn't needed | 44 | // Set 0 if debouncing isn't needed |
45 | #define DEBOUNCING_DELAY 5 | 45 | #define DEBOUNCE 5 |
46 | 46 | ||
47 | // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap | 47 | // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap |
48 | #define LOCKING_SUPPORT_ENABLE | 48 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/zeal60/zeal60.c b/keyboards/zeal60/zeal60.c index 5f93c571a..93f442f55 100644 --- a/keyboards/zeal60/zeal60.c +++ b/keyboards/zeal60/zeal60.c | |||
@@ -234,8 +234,8 @@ void bootmagic_lite(void) | |||
234 | 234 | ||
235 | // We need multiple scans because debouncing can't be turned off. | 235 | // We need multiple scans because debouncing can't be turned off. |
236 | matrix_scan(); | 236 | matrix_scan(); |
237 | wait_ms(DEBOUNCING_DELAY); | 237 | wait_ms(DEBOUNCE); |
238 | wait_ms(DEBOUNCING_DELAY); | 238 | wait_ms(DEBOUNCE); |
239 | matrix_scan(); | 239 | matrix_scan(); |
240 | 240 | ||
241 | // If the Esc (matrix 0,0) is held down on power up, | 241 | // If the Esc (matrix 0,0) is held down on power up, |
@@ -374,4 +374,3 @@ void suspend_wakeup_init_kb(void) | |||
374 | backlight_set_suspend_state(false); | 374 | backlight_set_suspend_state(false); |
375 | #endif // RGB_BACKLIGHT_ENABLED | 375 | #endif // RGB_BACKLIGHT_ENABLED |
376 | } | 376 | } |
377 | |||
diff --git a/keyboards/zeal65/config.h b/keyboards/zeal65/config.h index 224fce1f6..7217c6ed1 100644 --- a/keyboards/zeal65/config.h +++ b/keyboards/zeal65/config.h | |||
@@ -42,7 +42,7 @@ | |||
42 | #define DIODE_DIRECTION COL2ROW | 42 | #define DIODE_DIRECTION COL2ROW |
43 | 43 | ||
44 | // Set 0 if debouncing isn't needed | 44 | // Set 0 if debouncing isn't needed |
45 | #define DEBOUNCING_DELAY 5 | 45 | #define DEBOUNCE 5 |
46 | 46 | ||
47 | // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap | 47 | // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap |
48 | #define LOCKING_SUPPORT_ENABLE | 48 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/zinc/rev1/config.h b/keyboards/zinc/rev1/config.h index 370b5c203..c8560233d 100644 --- a/keyboards/zinc/rev1/config.h +++ b/keyboards/zinc/rev1/config.h | |||
@@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
27 | #define DEVICE_VER 0x0001 | 27 | #define DEVICE_VER 0x0001 |
28 | #define MANUFACTURER monksoffunk | 28 | #define MANUFACTURER monksoffunk |
29 | #define PRODUCT zinc rev.1 | 29 | #define PRODUCT zinc rev.1 |
30 | #define DESCRIPTION A split keyboard | 30 | #define DESCRIPTION A split keyboard |
31 | 31 | ||
32 | #define PREVENT_STUCK_MODIFIERS | 32 | #define PREVENT_STUCK_MODIFIERS |
33 | #define TAPPING_FORCE_HOLD | 33 | #define TAPPING_FORCE_HOLD |
@@ -59,7 +59,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
59 | // #define BACKLIGHT_LEVELS 3 | 59 | // #define BACKLIGHT_LEVELS 3 |
60 | 60 | ||
61 | /* Set 0 if debouncing isn't needed */ | 61 | /* Set 0 if debouncing isn't needed */ |
62 | #define DEBOUNCING_DELAY 5 | 62 | #define DEBOUNCE 5 |
63 | 63 | ||
64 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 64 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
65 | //#define LOCKING_SUPPORT_ENABLE | 65 | //#define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/zinc/reva/config.h b/keyboards/zinc/reva/config.h index f4277f713..6ae12d54c 100644 --- a/keyboards/zinc/reva/config.h +++ b/keyboards/zinc/reva/config.h | |||
@@ -24,7 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
24 | #define DEVICE_VER 0x0001 | 24 | #define DEVICE_VER 0x0001 |
25 | #define MANUFACTURER monksoffunk | 25 | #define MANUFACTURER monksoffunk |
26 | #define PRODUCT zinc rev.A | 26 | #define PRODUCT zinc rev.A |
27 | #define DESCRIPTION A split keyboard | 27 | #define DESCRIPTION A split keyboard |
28 | 28 | ||
29 | #define PREVENT_STUCK_MODIFIERS | 29 | #define PREVENT_STUCK_MODIFIERS |
30 | #define TAPPING_FORCE_HOLD | 30 | #define TAPPING_FORCE_HOLD |
@@ -56,7 +56,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
56 | // #define BACKLIGHT_LEVELS 3 | 56 | // #define BACKLIGHT_LEVELS 3 |
57 | 57 | ||
58 | /* Set 0 if debouncing isn't needed */ | 58 | /* Set 0 if debouncing isn't needed */ |
59 | #define DEBOUNCING_DELAY 5 | 59 | #define DEBOUNCE 5 |
60 | 60 | ||
61 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 61 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
62 | //#define LOCKING_SUPPORT_ENABLE | 62 | //#define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/zlant/config.h b/keyboards/zlant/config.h index 8732a6d37..a6b5227d6 100755 --- a/keyboards/zlant/config.h +++ b/keyboards/zlant/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | /* Set 0 if debouncing isn't needed */ | 32 | /* Set 0 if debouncing isn't needed */ |
33 | #define DEBOUNCING_DELAY 5 | 33 | #define DEBOUNCE 5 |
34 | 34 | ||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
36 | #define LOCKING_SUPPORT_ENABLE | 36 | #define LOCKING_SUPPORT_ENABLE |