diff options
| author | Ryan <fauxpark@gmail.com> | 2023-02-04 06:19:58 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-03 19:19:58 +0000 |
| commit | ebb512db827e84619e7151fcf76e3daf9328fe59 (patch) | |
| tree | dbe23d5eab663a4d5437432652186f2765602a53 /keyboards/qpockets | |
| parent | fb6c9eaed4806d5cc0cc42ce2be8219190b6e564 (diff) | |
Debounce defines cleanup (#19742)
* Clean up `DEBOUNCE` in config.h, 0-9
* Clean up `DEBOUNCE` in config.h, A
* Clean up `DEBOUNCE` in config.h, B
* Clean up `DEBOUNCE` in config.h, C
* Clean up `DEBOUNCE` in config.h, D
* Clean up `DEBOUNCE` in config.h, E
* Clean up `DEBOUNCE` in config.h, F
* Clean up `DEBOUNCE` in config.h, G
* Clean up `DEBOUNCE` in config.h, H
* Clean up `DEBOUNCE` in config.h, handwired
* Clean up `DEBOUNCE` in config.h, I
* Clean up `DEBOUNCE` in config.h, J
* Clean up `DEBOUNCE` in config.h, K
* Clean up `DEBOUNCE` in config.h, L
* Clean up `DEBOUNCE` in config.h, M
* Clean up `DEBOUNCE` in config.h, N
* Clean up `DEBOUNCE` in config.h, O
* Clean up `DEBOUNCE` in config.h, P
* Clean up `DEBOUNCE` in config.h, Q
* Clean up `DEBOUNCE` in config.h, R
* Clean up `DEBOUNCE` in config.h, S
* Clean up `DEBOUNCE` in config.h, T
* Clean up `DEBOUNCE` in config.h, U
* Clean up `DEBOUNCE` in config.h, V
* Clean up `DEBOUNCE` in config.h, W
* Clean up `DEBOUNCE` in config.h, X
* Clean up `DEBOUNCE` in config.h, Y
* Clean up `DEBOUNCE` in config.h, Z
* Remove default debounce from info.json
* Migrate non-default debounce to info.json
Diffstat (limited to 'keyboards/qpockets')
| -rw-r--r-- | keyboards/qpockets/eggman/config.h | 3 | ||||
| -rw-r--r-- | keyboards/qpockets/space_space/rev1/config.h | 2 | ||||
| -rw-r--r-- | keyboards/qpockets/space_space/rev1/info.json | 1 | ||||
| -rw-r--r-- | keyboards/qpockets/space_space/rev2/config.h | 2 | ||||
| -rw-r--r-- | keyboards/qpockets/wanten/config.h | 3 | ||||
| -rw-r--r-- | keyboards/qpockets/wanten/info.json | 1 |
6 files changed, 2 insertions, 10 deletions
diff --git a/keyboards/qpockets/eggman/config.h b/keyboards/qpockets/eggman/config.h index 83ebf8ba93..a5f64d4050 100644 --- a/keyboards/qpockets/eggman/config.h +++ b/keyboards/qpockets/eggman/config.h | |||
| @@ -34,6 +34,3 @@ | |||
| 34 | 34 | ||
| 35 | #define ENCODER_RESOLUTION 4 | 35 | #define ENCODER_RESOLUTION 4 |
| 36 | //#define ENCODER_DIRECTION_FLIP | 36 | //#define ENCODER_DIRECTION_FLIP |
| 37 | |||
| 38 | #define DEBOUNCE 5 | ||
| 39 | |||
diff --git a/keyboards/qpockets/space_space/rev1/config.h b/keyboards/qpockets/space_space/rev1/config.h index c105f84eac..3f900afabb 100644 --- a/keyboards/qpockets/space_space/rev1/config.h +++ b/keyboards/qpockets/space_space/rev1/config.h | |||
| @@ -40,6 +40,4 @@ | |||
| 40 | { 3, 4 } | 40 | { 3, 4 } |
| 41 | //#define ENCODER_DIRECTION_FLIP | 41 | //#define ENCODER_DIRECTION_FLIP |
| 42 | 42 | ||
| 43 | #define DEBOUNCE 7 | ||
| 44 | |||
| 45 | #define LOCKING_SUPPORT_ENABLE | 43 | #define LOCKING_SUPPORT_ENABLE |
diff --git a/keyboards/qpockets/space_space/rev1/info.json b/keyboards/qpockets/space_space/rev1/info.json index f882474efe..b73e3a434c 100644 --- a/keyboards/qpockets/space_space/rev1/info.json +++ b/keyboards/qpockets/space_space/rev1/info.json | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | "pid": "0x7373", | 8 | "pid": "0x7373", |
| 9 | "device_version": "30.0.0" | 9 | "device_version": "30.0.0" |
| 10 | }, | 10 | }, |
| 11 | "debounce": 7, | ||
| 11 | "layouts": { | 12 | "layouts": { |
| 12 | "LAYOUT_default": { | 13 | "LAYOUT_default": { |
| 13 | "layout": [ | 14 | "layout": [ |
diff --git a/keyboards/qpockets/space_space/rev2/config.h b/keyboards/qpockets/space_space/rev2/config.h index c89045230c..6b1aa96219 100644 --- a/keyboards/qpockets/space_space/rev2/config.h +++ b/keyboards/qpockets/space_space/rev2/config.h | |||
| @@ -38,8 +38,6 @@ | |||
| 38 | 38 | ||
| 39 | #define ENCODER_RESOLUTION 3 | 39 | #define ENCODER_RESOLUTION 3 |
| 40 | 40 | ||
| 41 | #define DEBOUNCE 5 | ||
| 42 | |||
| 43 | #define LOCKING_SUPPORT_ENABLE | 41 | #define LOCKING_SUPPORT_ENABLE |
| 44 | 42 | ||
| 45 | #define RGB_DI_PIN F0 | 43 | #define RGB_DI_PIN F0 |
diff --git a/keyboards/qpockets/wanten/config.h b/keyboards/qpockets/wanten/config.h index 86e4835666..44d5c477e0 100644 --- a/keyboards/qpockets/wanten/config.h +++ b/keyboards/qpockets/wanten/config.h | |||
| @@ -45,9 +45,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 45 | #define ENCODER_RESOLUTION 4 | 45 | #define ENCODER_RESOLUTION 4 |
| 46 | //#define ENCODER_DIRECTION_FLIP | 46 | //#define ENCODER_DIRECTION_FLIP |
| 47 | 47 | ||
| 48 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 49 | #define DEBOUNCE 4 | ||
| 50 | |||
| 51 | /*nothing below here is needed for wanten unless enabling RGB. the correct RGB_DI_PIN is defined, the rest is up to you o7 */ | 48 | /*nothing below here is needed for wanten unless enabling RGB. the correct RGB_DI_PIN is defined, the rest is up to you o7 */ |
| 52 | 49 | ||
| 53 | //#define RGB_DI_PIN B0 | 50 | //#define RGB_DI_PIN B0 |
diff --git a/keyboards/qpockets/wanten/info.json b/keyboards/qpockets/wanten/info.json index d78efd2758..8ce7326062 100644 --- a/keyboards/qpockets/wanten/info.json +++ b/keyboards/qpockets/wanten/info.json | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | "pid": "0x7774", | 8 | "pid": "0x7774", |
| 9 | "device_version": "0.0.1" | 9 | "device_version": "0.0.1" |
| 10 | }, | 10 | }, |
| 11 | "debounce": 4, | ||
| 11 | "layouts": { | 12 | "layouts": { |
| 12 | "LAYOUT_default": { | 13 | "LAYOUT_default": { |
| 13 | "layout": [ | 14 | "layout": [ |
