Skip to content

Commit 39f860c

Browse files
drashnadoughsay
authored andcommitted
Replace DEBOUNCING_DELAY (deprecated) with DEBOUNCE (qmk#5997)
1 parent 431d979 commit 39f860c

File tree

448 files changed

+594
-627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

448 files changed

+594
-627
lines changed

docs/config_options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ This is a C header file that is one of the first things included, and will persi
8383
* enables backlight breathing (only works with backlight pins B5, B6 and B7)
8484
* `#define BREATHING_PERIOD 6`
8585
* the length of one backlight "breath" in seconds
86-
* `#define DEBOUNCING_DELAY 5`
86+
* `#define DEBOUNCE 5`
8787
* the delay when reading the value of the pin (5 is default)
8888
* `#define LOCKING_SUPPORT_ENABLE`
8989
* mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap

docs/feature_bootmagic.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ To replace the function, all you need to do is add something like this to your c
140140
```c
141141
void bootmagic_lite(void) {
142142
matrix_scan();
143-
wait_ms(DEBOUNCING_DELAY * 2);
143+
wait_ms(DEBOUNCE * 2);
144144
matrix_scan();
145145
146146
if (matrix_get_row(BOOTMAGIC_LITE_ROW) & (1 << BOOTMAGIC_LITE_COLUMN)) {

keyboards/1upkeyboards/1up60hse/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
6262
#endif
6363

6464
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
65-
#define DEBOUNCING_DELAY 5
65+
#define DEBOUNCE 5
6666

6767
/* define if matrix has ghost (lacks anti-ghosting diodes) */
6868
//#define MATRIX_HAS_GHOST

keyboards/1upkeyboards/1up60hte/config.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
4747
#endif
4848

4949
/* Set 0 if debouncing isn't needed */
50-
#define DEBOUNCING_DELAY 5
50+
#define DEBOUNCE 5
5151

5252
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
5353
#define LOCKING_SUPPORT_ENABLE
@@ -62,4 +62,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
6262
#define RGBLIGHT_HUE_STEP 8
6363
#define RGBLIGHT_SAT_STEP 8
6464
#define RGBLIGHT_VAL_STEP 8
65-
#endif
65+
#endif

keyboards/1upkeyboards/1up60rgb/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#endif
3030

3131
/* Set 0 if debouncing isn't needed */
32-
#define DEBOUNCING_DELAY 5
32+
#define DEBOUNCE 5
3333

3434
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
3535
#define LOCKING_SUPPORT_ENABLE

keyboards/1upkeyboards/super16/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
8080
#endif
8181

8282
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
83-
#define DEBOUNCING_DELAY 5
83+
#define DEBOUNCE 5
8484

8585
/* define if matrix has ghost (lacks anti-ghosting diodes) */
8686
//#define MATRIX_HAS_GHOST

keyboards/1upkeyboards/sweet16/config.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#endif
3030

3131
/* Set 0 if debouncing isn't needed */
32-
#define DEBOUNCING_DELAY 5
32+
#define DEBOUNCE 5
3333

3434
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
3535
#define LOCKING_SUPPORT_ENABLE
@@ -45,4 +45,3 @@
4545
#define RGBLIGHT_SAT_STEP 8
4646
#define RGBLIGHT_VAL_STEP 8
4747
#endif
48-

keyboards/40percentclub/25/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
// #endif
7272

7373
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
74-
#define DEBOUNCING_DELAY 5
74+
#define DEBOUNCE 5
7575

7676
/* define if matrix has ghost (lacks anti-ghosting diodes) */
7777
//#define MATRIX_HAS_GHOST

keyboards/40percentclub/4x4/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
// #define BACKLIGHT_LEVELS 3
3939

4040
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
41-
#define DEBOUNCING_DELAY 5
41+
#define DEBOUNCE 5
4242

4343
/* define if matrix has ghost (lacks anti-ghosting diodes) */
4444
//#define MATRIX_HAS_GHOST

keyboards/40percentclub/5x5/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
// #endif
4848

4949
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
50-
#define DEBOUNCING_DELAY 5
50+
#define DEBOUNCE 5
5151

5252
/* define if matrix has ghost (lacks anti-ghosting diodes) */
5353
//#define MATRIX_HAS_GHOST

keyboards/40percentclub/6lit/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
// #endif
7373

7474
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
75-
#define DEBOUNCING_DELAY 5
75+
#define DEBOUNCE 5
7676

7777
/* define if matrix has ghost (lacks anti-ghosting diodes) */
7878
//#define MATRIX_HAS_GHOST

keyboards/40percentclub/foobar/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
// #endif
7373

7474
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
75-
#define DEBOUNCING_DELAY 5
75+
#define DEBOUNCE 5
7676

7777
/* define if matrix has ghost (lacks anti-ghosting diodes) */
7878
//#define MATRIX_HAS_GHOST

keyboards/40percentclub/gherkin/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#endif
3030

3131
/* Set 0 if debouncing isn't needed */
32-
#define DEBOUNCING_DELAY 5
32+
#define DEBOUNCE 5
3333

3434
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
3535
#define LOCKING_SUPPORT_ENABLE

keyboards/40percentclub/half_n_half/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
8181
// #endif
8282

8383
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
84-
#define DEBOUNCING_DELAY 5
84+
#define DEBOUNCE 5
8585

8686
/* define if matrix has ghost (lacks anti-ghosting diodes) */
8787
//#define MATRIX_HAS_GHOST

keyboards/40percentclub/i75/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#define DESCRIPTION i75 15x5 ortholinear keyboard
2828

2929
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
30-
#define DEBOUNCING_DELAY 5
30+
#define DEBOUNCE 5
3131

3232
/* define if matrix has ghost (lacks anti-ghosting diodes) */
3333
//#define MATRIX_HAS_GHOST

keyboards/40percentclub/luddite/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#endif
2727

2828
/* Set 0 if debouncing isn't needed */
29-
#define DEBOUNCING_DELAY 5
29+
#define DEBOUNCE 5
3030

3131
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
3232
#define LOCKING_SUPPORT_ENABLE

keyboards/40percentclub/mf68/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
7575
// #endif
7676

7777
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
78-
#define DEBOUNCING_DELAY 5
78+
#define DEBOUNCE 5
7979

8080
/* define if matrix has ghost (lacks anti-ghosting diodes) */
8181
//#define MATRIX_HAS_GHOST

keyboards/40percentclub/nein/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
// #endif
7777

7878
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
79-
#define DEBOUNCING_DELAY 5
79+
#define DEBOUNCE 5
8080

8181
/* define if matrix has ghost (lacks anti-ghosting diodes) */
8282
//#define MATRIX_HAS_GHOST

keyboards/40percentclub/nori/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
#define RGBLIGHT_VAL_STEP 8
6161

6262
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
63-
#define DEBOUNCING_DELAY 5
63+
#define DEBOUNCE 5
6464

6565
/* define if matrix has ghost (lacks anti-ghosting diodes) */
6666
//#define MATRIX_HAS_GHOST

keyboards/40percentclub/tomato/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define DIODE_DIRECTION COL2ROW
2424

2525
/* Set 0 if debouncing isn't needed */
26-
#define DEBOUNCING_DELAY 5
26+
#define DEBOUNCE 5
2727

2828
/* Locking resynchronize hack */
2929
#define LOCKING_RESYNC_ENABLE

keyboards/40percentclub/ut47/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
4343
// #define BACKLIGHT_LEVELS 3
4444

4545
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
46-
#define DEBOUNCING_DELAY 5
46+
#define DEBOUNCE 5
4747

4848
/* define if matrix has ghost (lacks anti-ghosting diodes) */
4949
//#define MATRIX_HAS_GHOST

keyboards/abstract/ellipse/rev1/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
7575
#endif
7676

7777
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
78-
#define DEBOUNCING_DELAY 5
78+
#define DEBOUNCE 5
7979

8080
/* define if matrix has ghost (lacks anti-ghosting diodes) */
8181
//#define MATRIX_HAS_GHOST

keyboards/acr60/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define BACKLIGHT_LEVELS 5
2929

3030
/* Set 0 if debouncing isn't needed */
31-
#define DEBOUNCING_DELAY 5
31+
#define DEBOUNCE 5
3232

3333
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
3434
#define LOCKING_SUPPORT_ENABLE

keyboards/adkb96/rev1/config.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2222
#define DEVICE_VER 0x0001
2323
#define MANUFACTURER Bit Trade One
2424
#define PRODUCT ADKB96
25-
#define DESCRIPTION
25+
#define DESCRIPTION
2626

2727
/* key matrix size */
2828
// Rows are doubled-up
@@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
4545
// #define BACKLIGHT_LEVELS 3
4646

4747
/* Set 0 if debouncing isn't needed */
48-
#define DEBOUNCING_DELAY 5
48+
#define DEBOUNCE 5
4949

5050
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
5151
#define LOCKING_SUPPORT_ENABLE
@@ -75,4 +75,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
7575
//#define NO_ACTION_ONESHOT
7676
//#define NO_ACTION_MACRO
7777
//#define NO_ACTION_FUNCTION
78-

keyboards/aeboards/aegis/config.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#define DIODE_DIRECTION COL2ROW
4040

4141
/* Set 0 if debouncing isn't needed */
42-
#define DEBOUNCING_DELAY 5
42+
#define DEBOUNCE 5
4343

4444
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
4545
#define LOCKING_SUPPORT_ENABLE
@@ -68,4 +68,3 @@
6868
#define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 899
6969
#define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 125
7070
#define DYNAMIC_KEYMAP_MACRO_COUNT 16
71-

keyboards/ai03/lunar/config.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
8080
// #endif
8181

8282
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
83-
#define DEBOUNCING_DELAY 5
83+
#define DEBOUNCE 5
8484

8585
/* define if matrix has ghost (lacks anti-ghosting diodes) */
8686
//#define MATRIX_HAS_GHOST
@@ -262,5 +262,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
262262
// DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR = DYNAMIC_KEYMAP_EEPROM_ADDR + (DYNAMIC_KEYMAP_LAYER_COUNT * MATRIX_ROWS * MATRIX_COLS * 2)
263263
#define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 635
264264
// 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
266266
#define DYNAMIC_KEYMAP_MACRO_COUNT 16

keyboards/ai03/orbit/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
8989
// #endif
9090

9191
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
92-
#define DEBOUNCING_DELAY 5
92+
#define DEBOUNCE 5
9393

9494
/* define if matrix has ghost (lacks anti-ghosting diodes) */
9595
//#define MATRIX_HAS_GHOST

keyboards/al1/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
5151
#define BACKLIGHT_LEVELS 3
5252

5353
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
54-
#define DEBOUNCING_DELAY 5
54+
#define DEBOUNCE 5
5555

5656
/* define if matrix has ghost (lacks anti-ghosting diodes) */
5757
//#define MATRIX_HAS_GHOST

keyboards/al1/matrix.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
#include "util.h"
88
#include "matrix.h"
99

10-
#ifndef DEBOUNCING_DELAY
11-
# define DEBOUNCING_DELAY 5
10+
#ifndef DEBOUNCE
11+
# define DEBOUNCE 5
1212
#endif
13-
static uint8_t debouncing = DEBOUNCING_DELAY;
13+
static uint8_t debouncing = DEBOUNCE;
1414

1515
static matrix_row_t matrix[MATRIX_ROWS];
1616
static matrix_row_t matrix_debouncing[MATRIX_ROWS];
@@ -69,7 +69,7 @@ uint8_t matrix_scan(void) {
6969
bool curr_bit = rows & (1<<row);
7070
if (prev_bit != curr_bit) {
7171
matrix_debouncing[row] ^= ((matrix_row_t)1<<col);
72-
debouncing = DEBOUNCING_DELAY;
72+
debouncing = DEBOUNCE;
7373
}
7474
}
7575
unselect_cols();

keyboards/alf/dc60/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
6262
#endif
6363

6464
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
65-
#define DEBOUNCING_DELAY 5
65+
#define DEBOUNCE 5
6666

6767
/* define if matrix has ghost (lacks anti-ghosting diodes) */
6868
//#define MATRIX_HAS_GHOST

keyboards/alf/x11/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
8080
#endif
8181

8282
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
83-
#define DEBOUNCING_DELAY 5
83+
#define DEBOUNCE 5
8484

8585
/* define if matrix has ghost (lacks anti-ghosting diodes) */
8686
//#define MATRIX_HAS_GHOST

keyboards/alf/x2/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#endif
3131

3232
/* Set 0 if debouncing isn't needed */
33-
#define DEBOUNCING_DELAY 5
33+
#define DEBOUNCE 5
3434

3535
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
3636
#define LOCKING_SUPPORT_ENABLE

keyboards/alpha/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#endif
3131

3232
/* Set 0 if debouncing isn't needed */
33-
#define DEBOUNCING_DELAY 5
33+
#define DEBOUNCE 5
3434

3535
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
3636
#define LOCKING_SUPPORT_ENABLE

keyboards/alu84/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#endif
4747

4848
/* Set 0 if debouncing isn't needed */
49-
#define DEBOUNCING_DELAY 5
49+
#define DEBOUNCE 5
5050

5151
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
5252
#define LOCKING_SUPPORT_ENABLE

keyboards/amj40/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
4747
//#define MATRIX_HAS_GHOST
4848

4949
/* Set 0 if debouncing isn't needed */
50-
#define DEBOUNCING_DELAY 5
50+
#define DEBOUNCE 5
5151

5252
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
5353
#define LOCKING_SUPPORT_ENABLE

keyboards/amj60/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
4747
//#define MATRIX_HAS_GHOST
4848

4949
/* Set 0 if debouncing isn't needed */
50-
#define DEBOUNCING_DELAY 5
50+
#define DEBOUNCE 5
5151

5252
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
5353
#define LOCKING_SUPPORT_ENABLE

keyboards/amj96/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
6464
#define BACKLIGHT_CUSTOM
6565

6666
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
67-
#define DEBOUNCING_DELAY 5
67+
#define DEBOUNCE 5
6868

6969
/* define if matrix has ghost (lacks anti-ghosting diodes) */
7070
//#define MATRIX_HAS_GHOST

keyboards/amjpad/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
4747
//#define MATRIX_HAS_GHOST
4848

4949
/* Set 0 if debouncing isn't needed */
50-
#define DEBOUNCING_DELAY 5
50+
#define DEBOUNCE 5
5151

5252
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
5353
#define LOCKING_SUPPORT_ENABLE

0 commit comments

Comments
 (0)