diff options
author | fauxpark <fauxpark@gmail.com> | 2020-01-19 14:11:57 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-19 14:11:57 +1100 |
commit | eb5d267e637db4c2c639932b8c8176bf47dff78f (patch) | |
tree | 8e9f36d80dac91f40b95eb53022118bb7deb94a3 | |
parent | eaed517c0bfb10c9169457ba2a187c0c4b0eef2e (diff) | |
download | qmk_firmware-eb5d267e637db4c2c639932b8c8176bf47dff78f.tar.gz qmk_firmware-eb5d267e637db4c2c639932b8c8176bf47dff78f.zip |
Enforce definition of `DIODE_DIRECTION` for non-custom matrix boards (#7915)
* Enforce definition of `DIODE_DIRECTION` for non-custom matrix boards
* Define diode direction for failing boards
* Matching parentheses
* Put onekey diode directions in top level config
54 files changed, 120 insertions, 6 deletions
diff --git a/keyboards/40percentclub/luddite/config.h b/keyboards/40percentclub/luddite/config.h index 36bda0614..005cb7a70 100644 --- a/keyboards/40percentclub/luddite/config.h +++ b/keyboards/40percentclub/luddite/config.h | |||
@@ -19,6 +19,8 @@ | |||
19 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6 } | 19 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6 } |
20 | #define UNUSED_PINS | 20 | #define UNUSED_PINS |
21 | 21 | ||
22 | #define DIODE_DIRECTION COL2ROW | ||
23 | |||
22 | /* number of backlight levels */ | 24 | /* number of backlight levels */ |
23 | #define BACKLIGHT_PIN B5 | 25 | #define BACKLIGHT_PIN B5 |
24 | #ifdef BACKLIGHT_PIN | 26 | #ifdef BACKLIGHT_PIN |
diff --git a/keyboards/7skb/rev1/config.h b/keyboards/7skb/rev1/config.h index 01b1ef4a1..b1096c4d6 100644 --- a/keyboards/7skb/rev1/config.h +++ b/keyboards/7skb/rev1/config.h | |||
@@ -34,6 +34,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
34 | #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 } | 34 | #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 } |
35 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B5 } | 35 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B5 } |
36 | 36 | ||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
37 | /* Set 0 if debouncing isn't needed */ | 39 | /* Set 0 if debouncing isn't needed */ |
38 | #define DEBOUNCE 5 | 40 | #define DEBOUNCE 5 |
39 | 41 | ||
diff --git a/keyboards/adkb96/rev1/config.h b/keyboards/adkb96/rev1/config.h index cff135c26..42685123b 100644 --- a/keyboards/adkb96/rev1/config.h +++ b/keyboards/adkb96/rev1/config.h | |||
@@ -33,6 +33,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
33 | #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4, B5 } | 33 | #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4, B5 } |
34 | #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4 } | 34 | #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4 } |
35 | 35 | ||
36 | #define DIODE_DIRECTION COL2ROW | ||
37 | |||
36 | #define SOFT_SERIAL_PIN D0 | 38 | #define SOFT_SERIAL_PIN D0 |
37 | 39 | ||
38 | /* define tapping term */ | 40 | /* define tapping term */ |
diff --git a/keyboards/alps64/config.h b/keyboards/alps64/config.h index cc7eada11..237dfbbe7 100644 --- a/keyboards/alps64/config.h +++ b/keyboards/alps64/config.h | |||
@@ -35,6 +35,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
35 | #define MATRIX_ROW_PINS { D0, D1, D2, D3, D4, D5, D6, C2 } | 35 | #define MATRIX_ROW_PINS { D0, D1, D2, D3, D4, D5, D6, C2 } |
36 | #define UNUSED_PINS | 36 | #define UNUSED_PINS |
37 | 37 | ||
38 | #define DIODE_DIRECTION COL2ROW | ||
39 | |||
38 | /* define if matrix has ghost */ | 40 | /* define if matrix has ghost */ |
39 | //#define MATRIX_HAS_GHOST | 41 | //#define MATRIX_HAS_GHOST |
40 | 42 | ||
diff --git a/keyboards/blackplum/config.h b/keyboards/blackplum/config.h index 0fd7e21cb..256603744 100644 --- a/keyboards/blackplum/config.h +++ b/keyboards/blackplum/config.h | |||
@@ -19,6 +19,8 @@ | |||
19 | #define MATRIX_COL_PINS { D0, D1, D2, F7, F6, F5, F4, F1 } | 19 | #define MATRIX_COL_PINS { D0, D1, D2, F7, F6, F5, F4, F1 } |
20 | #define UNUSED_PINS | 20 | #define UNUSED_PINS |
21 | 21 | ||
22 | #define DIODE_DIRECTION COL2ROW | ||
23 | |||
22 | /* Set 0 if debouncing isn't needed */ | 24 | /* Set 0 if debouncing isn't needed */ |
23 | #define DEBOUNCE 5 | 25 | #define DEBOUNCE 5 |
24 | 26 | ||
diff --git a/keyboards/db/db63/config.h b/keyboards/db/db63/config.h index 468e0f8a9..488409e3a 100644 --- a/keyboards/db/db63/config.h +++ b/keyboards/db/db63/config.h | |||
@@ -32,6 +32,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
32 | #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2 } | 32 | #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2 } |
33 | #define UNUSED_PINS | 33 | #define UNUSED_PINS |
34 | 34 | ||
35 | #define DIODE_DIRECTION COL2ROW | ||
36 | |||
35 | #define RGBLED_NUM 18 | 37 | #define RGBLED_NUM 18 |
36 | #define RGBLIGHT_ANIMATIONS | 38 | #define RGBLIGHT_ANIMATIONS |
37 | 39 | ||
diff --git a/keyboards/ergodash/mini/config.h b/keyboards/ergodash/mini/config.h index 2fa51dcc1..1a0ecc0a7 100644 --- a/keyboards/ergodash/mini/config.h +++ b/keyboards/ergodash/mini/config.h | |||
@@ -38,6 +38,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
38 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 } | 38 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 } |
39 | // #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order | 39 | // #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order |
40 | 40 | ||
41 | #define DIODE_DIRECTION COL2ROW | ||
42 | |||
41 | /* define tapping term */ | 43 | /* define tapping term */ |
42 | #define TAPPING_TERM 120 | 44 | #define TAPPING_TERM 120 |
43 | 45 | ||
diff --git a/keyboards/ergodash/rev1/config.h b/keyboards/ergodash/rev1/config.h index 7e84a3cab..0e89ca340 100644 --- a/keyboards/ergodash/rev1/config.h +++ b/keyboards/ergodash/rev1/config.h | |||
@@ -38,6 +38,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
38 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 } | 38 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 } |
39 | // #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order | 39 | // #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order |
40 | 40 | ||
41 | #define DIODE_DIRECTION COL2ROW | ||
42 | |||
41 | /* define tapping term */ | 43 | /* define tapping term */ |
42 | #define TAPPING_TERM 120 | 44 | #define TAPPING_TERM 120 |
43 | 45 | ||
diff --git a/keyboards/handwired/aek64/config.h b/keyboards/handwired/aek64/config.h index 7d235358c..a072d562a 100644 --- a/keyboards/handwired/aek64/config.h +++ b/keyboards/handwired/aek64/config.h | |||
@@ -39,6 +39,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
39 | #define MATRIX_ROW_PINS { E0, E1, C0, C1, C2 } | 39 | #define MATRIX_ROW_PINS { E0, E1, C0, C1, C2 } |
40 | #define UNUSED_PINS | 40 | #define UNUSED_PINS |
41 | 41 | ||
42 | #define DIODE_DIRECTION COL2ROW | ||
43 | |||
42 | /* Set 0 if debouncing isn't needed */ | 44 | /* Set 0 if debouncing isn't needed */ |
43 | #define DEBOUNCE 5 | 45 | #define DEBOUNCE 5 |
44 | 46 | ||
diff --git a/keyboards/handwired/dactyl_manuform/4x5/config.h b/keyboards/handwired/dactyl_manuform/4x5/config.h index 1f24c9aca..698418fb7 100644 --- a/keyboards/handwired/dactyl_manuform/4x5/config.h +++ b/keyboards/handwired/dactyl_manuform/4x5/config.h | |||
@@ -37,6 +37,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
37 | // #define MATRIX_COL_PINS { B5, B4, E6, D7, C6 } | 37 | // #define MATRIX_COL_PINS { B5, B4, E6, D7, C6 } |
38 | #define MATRIX_COL_PINS { C6, D7, E6, B4, B5 } | 38 | #define MATRIX_COL_PINS { C6, D7, E6, B4, B5 } |
39 | 39 | ||
40 | #define DIODE_DIRECTION COL2ROW | ||
41 | |||
40 | /* define if matrix has ghost */ | 42 | /* define if matrix has ghost */ |
41 | //#define MATRIX_HAS_GHOST | 43 | //#define MATRIX_HAS_GHOST |
42 | 44 | ||
diff --git a/keyboards/handwired/dactyl_manuform/5x6/config.h b/keyboards/handwired/dactyl_manuform/5x6/config.h index 413039449..fd0c23961 100644 --- a/keyboards/handwired/dactyl_manuform/5x6/config.h +++ b/keyboards/handwired/dactyl_manuform/5x6/config.h | |||
@@ -32,6 +32,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
32 | #define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5 } | 32 | #define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5 } |
33 | #define MATRIX_ROW_PINS { F6, F7, B1, B3, B2, B6 } | 33 | #define MATRIX_ROW_PINS { F6, F7, B1, B3, B2, B6 } |
34 | 34 | ||
35 | #define DIODE_DIRECTION COL2ROW | ||
36 | |||
35 | // WS2812 RGB LED strip input and number of LEDs | 37 | // WS2812 RGB LED strip input and number of LEDs |
36 | #define RGB_DI_PIN D3 | 38 | #define RGB_DI_PIN D3 |
37 | #define RGBLED_NUM 12 | 39 | #define RGBLED_NUM 12 |
diff --git a/keyboards/handwired/dactyl_manuform/5x7/config.h b/keyboards/handwired/dactyl_manuform/5x7/config.h index 435837498..bf56d0825 100644 --- a/keyboards/handwired/dactyl_manuform/5x7/config.h +++ b/keyboards/handwired/dactyl_manuform/5x7/config.h | |||
@@ -32,6 +32,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
32 | #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4, B5 } | 32 | #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4, B5 } |
33 | #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2, B6 } | 33 | #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2, B6 } |
34 | 34 | ||
35 | #define DIODE_DIRECTION COL2ROW | ||
36 | |||
35 | // WS2812 RGB LED strip input and number of LEDs | 37 | // WS2812 RGB LED strip input and number of LEDs |
36 | #define RGB_DI_PIN D3 | 38 | #define RGB_DI_PIN D3 |
37 | #define RGBLED_NUM 12 | 39 | #define RGBLED_NUM 12 |
diff --git a/keyboards/handwired/dactyl_manuform/6x6/config.h b/keyboards/handwired/dactyl_manuform/6x6/config.h index 9bc501c5e..522e98b68 100644 --- a/keyboards/handwired/dactyl_manuform/6x6/config.h +++ b/keyboards/handwired/dactyl_manuform/6x6/config.h | |||
@@ -32,6 +32,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
32 | #define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5 } | 32 | #define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5 } |
33 | #define MATRIX_ROW_PINS { F5, F6, F7, B1, B3, B2, B6 } | 33 | #define MATRIX_ROW_PINS { F5, F6, F7, B1, B3, B2, B6 } |
34 | 34 | ||
35 | #define DIODE_DIRECTION COL2ROW | ||
36 | |||
35 | // WS2812 RGB LED strip input and number of LEDs | 37 | // WS2812 RGB LED strip input and number of LEDs |
36 | #define RGB_DI_PIN D3 | 38 | #define RGB_DI_PIN D3 |
37 | #define RGBLED_NUM 12 | 39 | #define RGBLED_NUM 12 |
diff --git a/keyboards/handwired/dactyl_manuform/dmote/62key/config.h b/keyboards/handwired/dactyl_manuform/dmote/62key/config.h index 7db3ceb75..d315cb180 100644 --- a/keyboards/handwired/dactyl_manuform/dmote/62key/config.h +++ b/keyboards/handwired/dactyl_manuform/dmote/62key/config.h | |||
@@ -37,6 +37,8 @@ | |||
37 | #define MATRIX_ROW_PINS { F6, F7, B1, B3, B2, B6 } | 37 | #define MATRIX_ROW_PINS { F6, F7, B1, B3, B2, B6 } |
38 | #define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5 } | 38 | #define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5 } |
39 | 39 | ||
40 | #define DIODE_DIRECTION COL2ROW | ||
41 | |||
40 | // WS2812 RGB LED, normally used to indicate keyboard state: | 42 | // WS2812 RGB LED, normally used to indicate keyboard state: |
41 | #define RGBLIGHT_EFFECT_KNIGHT | 43 | #define RGBLIGHT_EFFECT_KNIGHT |
42 | #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2 | 44 | #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2 |
diff --git a/keyboards/handwired/dactyl_promicro/config.h b/keyboards/handwired/dactyl_promicro/config.h index 3c0b541d1..c57e76624 100644 --- a/keyboards/handwired/dactyl_promicro/config.h +++ b/keyboards/handwired/dactyl_promicro/config.h | |||
@@ -30,6 +30,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
30 | #define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5 } | 30 | #define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5 } |
31 | #define MATRIX_ROW_PINS { F6, F7, B1, B3, B2, B6 } | 31 | #define MATRIX_ROW_PINS { F6, F7, B1, B3, B2, B6 } |
32 | 32 | ||
33 | #define DIODE_DIRECTION COL2ROW | ||
34 | |||
33 | /* USB Device descriptor parameter */ | 35 | /* USB Device descriptor parameter */ |
34 | #define VENDOR_ID 0xFEED | 36 | #define VENDOR_ID 0xFEED |
35 | #define PRODUCT_ID 0x3060 | 37 | #define PRODUCT_ID 0x3060 |
diff --git a/keyboards/handwired/hacked_motospeed/config.h b/keyboards/handwired/hacked_motospeed/config.h index d4bf11f23..0035a5e28 100644 --- a/keyboards/handwired/hacked_motospeed/config.h +++ b/keyboards/handwired/hacked_motospeed/config.h | |||
@@ -50,7 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
50 | #define UNUSED_PINS | 50 | #define UNUSED_PINS |
51 | 51 | ||
52 | /* COL2ROW, ROW2COL*/ | 52 | /* COL2ROW, ROW2COL*/ |
53 | //#define DIODE_DIRECTION COL2ROW | 53 | #define DIODE_DIRECTION COL2ROW |
54 | 54 | ||
55 | /* | 55 | /* |
56 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | 56 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. |
@@ -245,4 +245,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
245 | 245 | ||
246 | /* Bootmagic Lite key configuration */ | 246 | /* Bootmagic Lite key configuration */ |
247 | // #define BOOTMAGIC_LITE_ROW 0 | 247 | // #define BOOTMAGIC_LITE_ROW 0 |
248 | // #define BOOTMAGIC_LITE_COLUMN 0 \ No newline at end of file | 248 | // #define BOOTMAGIC_LITE_COLUMN 0 |
diff --git a/keyboards/handwired/lovelive9/config.h b/keyboards/handwired/lovelive9/config.h index c11a25df6..f1f6f69c5 100644 --- a/keyboards/handwired/lovelive9/config.h +++ b/keyboards/handwired/lovelive9/config.h | |||
@@ -19,6 +19,8 @@ | |||
19 | #define MATRIX_ROW_PINS { NO_PIN } | 19 | #define MATRIX_ROW_PINS { NO_PIN } |
20 | #define MATRIX_COL_PINS { B4, B6, B2, D7, B1, F7, F6, F5, F4 } | 20 | #define MATRIX_COL_PINS { B4, B6, B2, D7, B1, F7, F6, F5, F4 } |
21 | 21 | ||
22 | #define DIODE_DIRECTION COL2ROW | ||
23 | |||
22 | #define UNUSED_PINS | 24 | #define UNUSED_PINS |
23 | 25 | ||
24 | /* ws2812 RGB LED */ | 26 | /* ws2812 RGB LED */ |
diff --git a/keyboards/handwired/nicekey/config.h b/keyboards/handwired/nicekey/config.h index 4af56cc52..9c1b18117 100644 --- a/keyboards/handwired/nicekey/config.h +++ b/keyboards/handwired/nicekey/config.h | |||
@@ -36,6 +36,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | #define MATRIX_ROW_PINS { B6 } | 36 | #define MATRIX_ROW_PINS { B6 } |
37 | #define UNUSED_PINS | 37 | #define UNUSED_PINS |
38 | 38 | ||
39 | #define DIODE_DIRECTION COL2ROW | ||
40 | |||
39 | /* define if matrix has ghost */ | 41 | /* define if matrix has ghost */ |
40 | //#define MATRIX_HAS_GHOST | 42 | //#define MATRIX_HAS_GHOST |
41 | 43 | ||
diff --git a/keyboards/handwired/onekey/config.h b/keyboards/handwired/onekey/config.h index 64a447481..652a99cab 100644 --- a/keyboards/handwired/onekey/config.h +++ b/keyboards/handwired/onekey/config.h | |||
@@ -29,6 +29,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
29 | #define MATRIX_ROWS 1 | 29 | #define MATRIX_ROWS 1 |
30 | #define MATRIX_COLS 1 | 30 | #define MATRIX_COLS 1 |
31 | 31 | ||
32 | #define DIODE_DIRECTION COL2ROW | ||
33 | |||
32 | /* define if matrix has ghost */ | 34 | /* define if matrix has ghost */ |
33 | //#define MATRIX_HAS_GHOST | 35 | //#define MATRIX_HAS_GHOST |
34 | 36 | ||
diff --git a/keyboards/handwired/splittest/config.h b/keyboards/handwired/splittest/config.h index 56574f752..3ff8547fc 100644 --- a/keyboards/handwired/splittest/config.h +++ b/keyboards/handwired/splittest/config.h | |||
@@ -33,6 +33,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
33 | #define MATRIX_ROWS 2 | 33 | #define MATRIX_ROWS 2 |
34 | #define MATRIX_COLS 1 | 34 | #define MATRIX_COLS 1 |
35 | 35 | ||
36 | #define DIODE_DIRECTION COL2ROW | ||
37 | |||
36 | /* define if matrix has ghost */ | 38 | /* define if matrix has ghost */ |
37 | //#define MATRIX_HAS_GHOST | 39 | //#define MATRIX_HAS_GHOST |
38 | 40 | ||
diff --git a/keyboards/handwired/wulkan/config.h b/keyboards/handwired/wulkan/config.h index 4a9cbada7..628206535 100644 --- a/keyboards/handwired/wulkan/config.h +++ b/keyboards/handwired/wulkan/config.h | |||
@@ -17,6 +17,8 @@ | |||
17 | #define MATRIX_ROW_PINS { B8, A0, A1, A2 } | 17 | #define MATRIX_ROW_PINS { B8, A0, A1, A2 } |
18 | #define MATRIX_COL_PINS { B13, B14, B15, B9, B7, B6, B5, B4, B3, B2, B1, B0 } | 18 | #define MATRIX_COL_PINS { B13, B14, B15, B9, B7, B6, B5, B4, B3, B2, B1, B0 } |
19 | 19 | ||
20 | #define DIODE_DIRECTION COL2ROW | ||
21 | |||
20 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 22 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
21 | #define DEBOUNCE 5 | 23 | #define DEBOUNCE 5 |
22 | 24 | ||
diff --git a/keyboards/keebio/bfo9000/config.h b/keyboards/keebio/bfo9000/config.h index b45ec9c2f..0b279bc34 100644 --- a/keyboards/keebio/bfo9000/config.h +++ b/keyboards/keebio/bfo9000/config.h | |||
@@ -37,6 +37,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
37 | #define MATRIX_ROW_PINS { D3, D2, D4, C6, D7, E6 } | 37 | #define MATRIX_ROW_PINS { D3, D2, D4, C6, D7, E6 } |
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 | #define DIODE_DIRECTION COL2ROW | ||
41 | |||
40 | /* Set 0 if debouncing isn't needed */ | 42 | /* Set 0 if debouncing isn't needed */ |
41 | #define DEBOUNCE 5 | 43 | #define DEBOUNCE 5 |
42 | 44 | ||
diff --git a/keyboards/keebio/fourier/config.h b/keyboards/keebio/fourier/config.h index 9ddc53a0c..a0e85a3b1 100644 --- a/keyboards/keebio/fourier/config.h +++ b/keyboards/keebio/fourier/config.h | |||
@@ -37,6 +37,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
37 | #define MATRIX_ROW_PINS { F4, D7, E6, B4 } | 37 | #define MATRIX_ROW_PINS { F4, D7, E6, B4 } |
38 | #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2, B6 } | 38 | #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2, B6 } |
39 | 39 | ||
40 | #define DIODE_DIRECTION COL2ROW | ||
41 | |||
40 | #define QMK_ESC_OUTPUT F5 | 42 | #define QMK_ESC_OUTPUT F5 |
41 | #define QMK_ESC_INPUT F4 | 43 | #define QMK_ESC_INPUT F4 |
42 | #define QMK_LED B0 | 44 | #define QMK_LED B0 |
diff --git a/keyboards/keebio/levinson/rev1/config.h b/keyboards/keebio/levinson/rev1/config.h index a34c8bdcc..5b23f18c1 100644 --- a/keyboards/keebio/levinson/rev1/config.h +++ b/keyboards/keebio/levinson/rev1/config.h | |||
@@ -36,6 +36,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | #define MATRIX_ROW_PINS { D7, E6, B4, B5 } | 36 | #define MATRIX_ROW_PINS { D7, E6, B4, B5 } |
37 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 } | 37 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 } |
38 | 38 | ||
39 | #define DIODE_DIRECTION COL2ROW | ||
40 | |||
39 | /* Set 0 if debouncing isn't needed */ | 41 | /* Set 0 if debouncing isn't needed */ |
40 | #define DEBOUNCE 5 | 42 | #define DEBOUNCE 5 |
41 | 43 | ||
diff --git a/keyboards/keebio/levinson/rev2/config.h b/keyboards/keebio/levinson/rev2/config.h index 9d6947125..e8e7294dd 100644 --- a/keyboards/keebio/levinson/rev2/config.h +++ b/keyboards/keebio/levinson/rev2/config.h | |||
@@ -36,6 +36,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | #define MATRIX_ROW_PINS { D4, D7, E6, B4 } | 36 | #define MATRIX_ROW_PINS { D4, D7, E6, B4 } |
37 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 } | 37 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 } |
38 | 38 | ||
39 | #define DIODE_DIRECTION COL2ROW | ||
40 | |||
39 | /* Set 0 if debouncing isn't needed */ | 41 | /* Set 0 if debouncing isn't needed */ |
40 | #define DEBOUNCE 5 | 42 | #define DEBOUNCE 5 |
41 | 43 | ||
diff --git a/keyboards/keebio/levinson/rev3/config.h b/keyboards/keebio/levinson/rev3/config.h index 3e45b9d42..da5f4e741 100644 --- a/keyboards/keebio/levinson/rev3/config.h +++ b/keyboards/keebio/levinson/rev3/config.h | |||
@@ -40,6 +40,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
40 | #define MATRIX_COL_PINS_RIGHT { F4, F7, D3, B5, B4, E6 } | 40 | #define MATRIX_COL_PINS_RIGHT { F4, F7, D3, B5, B4, E6 } |
41 | #define SPLIT_HAND_PIN D2 | 41 | #define SPLIT_HAND_PIN D2 |
42 | 42 | ||
43 | #define DIODE_DIRECTION COL2ROW | ||
44 | |||
43 | /* Set 0 if debouncing isn't needed */ | 45 | /* Set 0 if debouncing isn't needed */ |
44 | #define DEBOUNCE 5 | 46 | #define DEBOUNCE 5 |
45 | 47 | ||
diff --git a/keyboards/keebio/quefrency/rev1/config.h b/keyboards/keebio/quefrency/rev1/config.h index 1d726a0fc..1e3be6347 100644 --- a/keyboards/keebio/quefrency/rev1/config.h +++ b/keyboards/keebio/quefrency/rev1/config.h | |||
@@ -38,6 +38,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
38 | #define MATRIX_COL_PINS_RIGHT { F5, F6, F7, B1, B3, B2, B6, C6 } | 38 | #define MATRIX_COL_PINS_RIGHT { F5, F6, F7, B1, B3, B2, B6, C6 } |
39 | #define SPLIT_HAND_PIN D2 | 39 | #define SPLIT_HAND_PIN D2 |
40 | 40 | ||
41 | #define DIODE_DIRECTION COL2ROW | ||
42 | |||
41 | /* Set 0 if debouncing isn't needed */ | 43 | /* Set 0 if debouncing isn't needed */ |
42 | #define DEBOUNCE 5 | 44 | #define DEBOUNCE 5 |
43 | 45 | ||
diff --git a/keyboards/keebio/wavelet/config.h b/keyboards/keebio/wavelet/config.h index 6f67fdbaf..71366ec24 100644 --- a/keyboards/keebio/wavelet/config.h +++ b/keyboards/keebio/wavelet/config.h | |||
@@ -37,6 +37,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
37 | #define MATRIX_ROW_PINS { F4, F5, F7, B3, D2, D1, D4, D7 } | 37 | #define MATRIX_ROW_PINS { F4, F5, F7, B3, D2, D1, D4, D7 } |
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 | #define DIODE_DIRECTION COL2ROW | ||
41 | |||
40 | /* Set 0 if debouncing isn't needed */ | 42 | /* Set 0 if debouncing isn't needed */ |
41 | #define DEBOUNCE 5 | 43 | #define DEBOUNCE 5 |
42 | 44 | ||
diff --git a/keyboards/lets_split/rev1/config.h b/keyboards/lets_split/rev1/config.h index c6e7f6479..d75343735 100644 --- a/keyboards/lets_split/rev1/config.h +++ b/keyboards/lets_split/rev1/config.h | |||
@@ -36,6 +36,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3 } | 36 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3 } |
37 | // #define MATRIX_COL_PINS { B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order | 37 | // #define MATRIX_COL_PINS { B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order |
38 | 38 | ||
39 | #define DIODE_DIRECTION COL2ROW | ||
40 | |||
39 | /* define if matrix has ghost */ | 41 | /* define if matrix has ghost */ |
40 | //#define MATRIX_HAS_GHOST | 42 | //#define MATRIX_HAS_GHOST |
41 | 43 | ||
diff --git a/keyboards/lets_split/rev2/config.h b/keyboards/lets_split/rev2/config.h index 2481ce041..0977d7c67 100644 --- a/keyboards/lets_split/rev2/config.h +++ b/keyboards/lets_split/rev2/config.h | |||
@@ -36,6 +36,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 } | 36 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 } |
37 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6 } //uncomment this line and comment line above if you need to reverse left-to-right key order | 37 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6 } //uncomment this line and comment line above if you need to reverse left-to-right key order |
38 | 38 | ||
39 | #define DIODE_DIRECTION COL2ROW | ||
40 | |||
39 | /* define if matrix has ghost */ | 41 | /* define if matrix has ghost */ |
40 | //#define MATRIX_HAS_GHOST | 42 | //#define MATRIX_HAS_GHOST |
41 | 43 | ||
diff --git a/keyboards/lets_split/sockets/config.h b/keyboards/lets_split/sockets/config.h index eb8092a8f..f6ecb7094 100644 --- a/keyboards/lets_split/sockets/config.h +++ b/keyboards/lets_split/sockets/config.h | |||
@@ -36,6 +36,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | #define MATRIX_COL_PINS { F4, F7, D7, B3, B2, B6} | 36 | #define MATRIX_COL_PINS { F4, F7, D7, B3, B2, B6} |
37 | // #define MATRIX_COL_PINS { B6, B2, B3, D7, F7, F4} //uncomment this line and comment line above if you need to reverse left-to-right key order | 37 | // #define MATRIX_COL_PINS { B6, B2, B3, D7, F7, F4} //uncomment this line and comment line above if you need to reverse left-to-right key order |
38 | 38 | ||
39 | #define DIODE_DIRECTION COL2ROW | ||
40 | |||
39 | /* define if matrix has ghost */ | 41 | /* define if matrix has ghost */ |
40 | //#define MATRIX_HAS_GHOST | 42 | //#define MATRIX_HAS_GHOST |
41 | 43 | ||
diff --git a/keyboards/nafuda/config.h b/keyboards/nafuda/config.h index 3db4401d4..be3348668 100644 --- a/keyboards/nafuda/config.h +++ b/keyboards/nafuda/config.h | |||
@@ -36,6 +36,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | #define MATRIX_ROW_PINS { D1, D0, D4 } | 36 | #define MATRIX_ROW_PINS { D1, D0, D4 } |
37 | #define MATRIX_COL_PINS { F4, F5, F6 } | 37 | #define MATRIX_COL_PINS { F4, F5, F6 } |
38 | 38 | ||
39 | #define DIODE_DIRECTION COL2ROW | ||
40 | |||
39 | /* Set 0 if debouncing isn't needed */ | 41 | /* Set 0 if debouncing isn't needed */ |
40 | #define DEBOUNCE 5 | 42 | #define DEBOUNCE 5 |
41 | 43 | ||
diff --git a/keyboards/naked48/rev1/config.h b/keyboards/naked48/rev1/config.h index d770fefb4..21f7aa55e 100644 --- a/keyboards/naked48/rev1/config.h +++ b/keyboards/naked48/rev1/config.h | |||
@@ -37,6 +37,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
37 | #define MATRIX_ROW_PINS_RIGHT { D4, C6, D7, E6 } | 37 | #define MATRIX_ROW_PINS_RIGHT { D4, C6, D7, E6 } |
38 | #define MATRIX_COL_PINS_RIGHT { F4, F5, F6, F7, B1, B3, B2, B6, B4, B5, B2, B2 } | 38 | #define MATRIX_COL_PINS_RIGHT { F4, F5, F6, F7, B1, B3, B2, B6, B4, B5, B2, B2 } |
39 | 39 | ||
40 | #define DIODE_DIRECTION COL2ROW | ||
41 | |||
40 | /* Set 0 if debouncing isn't needed */ | 42 | /* Set 0 if debouncing isn't needed */ |
41 | #define DEBOUNCE 5 | 43 | #define DEBOUNCE 5 |
42 | 44 | ||
diff --git a/keyboards/naked60/rev1/config.h b/keyboards/naked60/rev1/config.h index ac0c0ab2f..b082e1227 100644 --- a/keyboards/naked60/rev1/config.h +++ b/keyboards/naked60/rev1/config.h | |||
@@ -41,6 +41,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
41 | //#define MATRIX_ROW_PINS_RIGHT { D1, D0, D4, C6, B6 } | 41 | //#define MATRIX_ROW_PINS_RIGHT { D1, D0, D4, C6, B6 } |
42 | //#define MATRIX_COL_PINS_RIGHT { F4, F5, F6, F7, B1, B3, B2, D7, E6, B4, B5, D3 } | 42 | //#define MATRIX_COL_PINS_RIGHT { F4, F5, F6, F7, B1, B3, B2, D7, E6, B4, B5, D3 } |
43 | 43 | ||
44 | #define DIODE_DIRECTION COL2ROW | ||
45 | |||
44 | /* Set 0 if debouncing isn't needed */ | 46 | /* Set 0 if debouncing isn't needed */ |
45 | #define DEBOUNCE 5 | 47 | #define DEBOUNCE 5 |
46 | 48 | ||
diff --git a/keyboards/naked64/rev1/config.h b/keyboards/naked64/rev1/config.h index 2e48edbc0..d9aff6be1 100644 --- a/keyboards/naked64/rev1/config.h +++ b/keyboards/naked64/rev1/config.h | |||
@@ -36,6 +36,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | #define MATRIX_ROW_PINS_RIGHT { D4, C6, D7, E6, B4, B5, B2, B2 } | 36 | #define MATRIX_ROW_PINS_RIGHT { D4, C6, D7, E6, B4, B5, B2, B2 } |
37 | #define MATRIX_COL_PINS_RIGHT { F4, F5, F6, F7, B1, B3, B2, B6 } | 37 | #define MATRIX_COL_PINS_RIGHT { F4, F5, F6, F7, B1, B3, B2, B6 } |
38 | 38 | ||
39 | #define DIODE_DIRECTION COL2ROW | ||
40 | |||
39 | /* Set 0 if debouncing isn't needed */ | 41 | /* Set 0 if debouncing isn't needed */ |
40 | #define DEBOUNCE 5 | 42 | #define DEBOUNCE 5 |
41 | 43 | ||
diff --git a/keyboards/rgbkb/sol/config.h b/keyboards/rgbkb/sol/config.h index 9b136db05..f42783f71 100644 --- a/keyboards/rgbkb/sol/config.h +++ b/keyboards/rgbkb/sol/config.h | |||
@@ -35,6 +35,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
35 | #define MATRIX_COLS 7 | 35 | #define MATRIX_COLS 7 |
36 | #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, C7 } | 36 | #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, C7 } |
37 | 37 | ||
38 | #define DIODE_DIRECTION COL2ROW | ||
39 | |||
38 | /* Set 0 if debouncing isn't needed */ | 40 | /* Set 0 if debouncing isn't needed */ |
39 | #define DEBOUNCE 5 | 41 | #define DEBOUNCE 5 |
40 | 42 | ||
diff --git a/keyboards/rgbkb/zygomorph/rev1/config.h b/keyboards/rgbkb/zygomorph/rev1/config.h index 6e55a6a5f..246e391ac 100644 --- a/keyboards/rgbkb/zygomorph/rev1/config.h +++ b/keyboards/rgbkb/zygomorph/rev1/config.h | |||
@@ -38,6 +38,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
38 | #define MATRIX_COLS 6 | 38 | #define MATRIX_COLS 6 |
39 | #define MATRIX_COL_PINS { F4, F6, C7, C6, B6, D4 } | 39 | #define MATRIX_COL_PINS { F4, F6, C7, C6, B6, D4 } |
40 | 40 | ||
41 | #define DIODE_DIRECTION COL2ROW | ||
42 | |||
41 | #define SOFT_SERIAL_PIN D3 | 43 | #define SOFT_SERIAL_PIN D3 |
42 | 44 | ||
43 | #define ENCODERS_PAD_A { D2 } | 45 | #define ENCODERS_PAD_A { D2 } |
diff --git a/keyboards/runner3680/3x6/config.h b/keyboards/runner3680/3x6/config.h index d3f3605f5..fd462afb2 100644 --- a/keyboards/runner3680/3x6/config.h +++ b/keyboards/runner3680/3x6/config.h | |||
@@ -34,6 +34,8 @@ | |||
34 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2 ,B6 } | 34 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2 ,B6 } |
35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6} //uncomment this line and comment line above if you need to reverse left-to-right key order | 35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6} //uncomment this line and comment line above if you need to reverse left-to-right key order |
36 | 36 | ||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
37 | /* define tapping term */ | 39 | /* define tapping term */ |
38 | #define TAPPING_TERM 120 | 40 | #define TAPPING_TERM 120 |
39 | 41 | ||
diff --git a/keyboards/runner3680/3x7/config.h b/keyboards/runner3680/3x7/config.h index e0e6ae8e0..e6acb3735 100644 --- a/keyboards/runner3680/3x7/config.h +++ b/keyboards/runner3680/3x7/config.h | |||
@@ -34,6 +34,8 @@ | |||
34 | #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2 ,B6 } | 34 | #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2 ,B6 } |
35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5 } //uncomment this line and comment line above if you need to reverse left-to-right key order | 35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5 } //uncomment this line and comment line above if you need to reverse left-to-right key order |
36 | 36 | ||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
37 | /* define tapping term */ | 39 | /* define tapping term */ |
38 | #define TAPPING_TERM 120 | 40 | #define TAPPING_TERM 120 |
39 | 41 | ||
diff --git a/keyboards/runner3680/3x8/config.h b/keyboards/runner3680/3x8/config.h index 0d4e3296a..257f63a8f 100644 --- a/keyboards/runner3680/3x8/config.h +++ b/keyboards/runner3680/3x8/config.h | |||
@@ -34,6 +34,8 @@ | |||
34 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 ,B6 } | 34 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 ,B6 } |
35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order | 35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order |
36 | 36 | ||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
37 | /* define tapping term */ | 39 | /* define tapping term */ |
38 | #define TAPPING_TERM 120 | 40 | #define TAPPING_TERM 120 |
39 | 41 | ||
diff --git a/keyboards/runner3680/4x6/config.h b/keyboards/runner3680/4x6/config.h index 08838d1b6..06b9bc4df 100644 --- a/keyboards/runner3680/4x6/config.h +++ b/keyboards/runner3680/4x6/config.h | |||
@@ -34,6 +34,8 @@ | |||
34 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2 ,B6 } | 34 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2 ,B6 } |
35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6} //uncomment this line and comment line above if you need to reverse left-to-right key order | 35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6} //uncomment this line and comment line above if you need to reverse left-to-right key order |
36 | 36 | ||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
37 | /* define tapping term */ | 39 | /* define tapping term */ |
38 | #define TAPPING_TERM 120 | 40 | #define TAPPING_TERM 120 |
39 | 41 | ||
diff --git a/keyboards/runner3680/4x7/config.h b/keyboards/runner3680/4x7/config.h index f33f8f9f2..8bc2da4cd 100644 --- a/keyboards/runner3680/4x7/config.h +++ b/keyboards/runner3680/4x7/config.h | |||
@@ -34,6 +34,8 @@ | |||
34 | #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2 ,B6 } | 34 | #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2 ,B6 } |
35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5 } //uncomment this line and comment line above if you need to reverse left-to-right key order | 35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5 } //uncomment this line and comment line above if you need to reverse left-to-right key order |
36 | 36 | ||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
37 | /* define tapping term */ | 39 | /* define tapping term */ |
38 | #define TAPPING_TERM 120 | 40 | #define TAPPING_TERM 120 |
39 | 41 | ||
diff --git a/keyboards/runner3680/4x8/config.h b/keyboards/runner3680/4x8/config.h index d85ebb29c..9f9adfa9d 100644 --- a/keyboards/runner3680/4x8/config.h +++ b/keyboards/runner3680/4x8/config.h | |||
@@ -34,6 +34,8 @@ | |||
34 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 ,B6 } | 34 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 ,B6 } |
35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order | 35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order |
36 | 36 | ||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
37 | /* define tapping term */ | 39 | /* define tapping term */ |
38 | #define TAPPING_TERM 120 | 40 | #define TAPPING_TERM 120 |
39 | 41 | ||
diff --git a/keyboards/runner3680/5x6/config.h b/keyboards/runner3680/5x6/config.h index ae3853a8e..3ae72dcfd 100644 --- a/keyboards/runner3680/5x6/config.h +++ b/keyboards/runner3680/5x6/config.h | |||
@@ -34,6 +34,8 @@ | |||
34 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2 ,B6 } | 34 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2 ,B6 } |
35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6} //uncomment this line and comment line above if you need to reverse left-to-right key order | 35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6} //uncomment this line and comment line above if you need to reverse left-to-right key order |
36 | 36 | ||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
37 | /* define tapping term */ | 39 | /* define tapping term */ |
38 | #define TAPPING_TERM 120 | 40 | #define TAPPING_TERM 120 |
39 | 41 | ||
diff --git a/keyboards/runner3680/5x7/config.h b/keyboards/runner3680/5x7/config.h index 1d56608e6..004f84edd 100644 --- a/keyboards/runner3680/5x7/config.h +++ b/keyboards/runner3680/5x7/config.h | |||
@@ -34,6 +34,8 @@ | |||
34 | #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2 ,B6 } | 34 | #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2 ,B6 } |
35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5 } //uncomment this line and comment line above if you need to reverse left-to-right key order | 35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5 } //uncomment this line and comment line above if you need to reverse left-to-right key order |
36 | 36 | ||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
37 | /* define tapping term */ | 39 | /* define tapping term */ |
38 | #define TAPPING_TERM 120 | 40 | #define TAPPING_TERM 120 |
39 | 41 | ||
diff --git a/keyboards/runner3680/5x8/config.h b/keyboards/runner3680/5x8/config.h index 5349fa06a..11b7d647e 100644 --- a/keyboards/runner3680/5x8/config.h +++ b/keyboards/runner3680/5x8/config.h | |||
@@ -34,6 +34,8 @@ | |||
34 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 ,B6 } | 34 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 ,B6 } |
35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order | 35 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order |
36 | 36 | ||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
37 | /* define tapping term */ | 39 | /* define tapping term */ |
38 | #define TAPPING_TERM 120 | 40 | #define TAPPING_TERM 120 |
39 | 41 | ||
diff --git a/keyboards/setta21/rev1/config.h b/keyboards/setta21/rev1/config.h index 57451a7e3..c6c1357d0 100644 --- a/keyboards/setta21/rev1/config.h +++ b/keyboards/setta21/rev1/config.h | |||
@@ -34,6 +34,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
34 | #define MATRIX_ROW_PINS { D4, C6, D7, E6 } | 34 | #define MATRIX_ROW_PINS { D4, C6, D7, E6 } |
35 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3 } | 35 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3 } |
36 | 36 | ||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
37 | /* Set 0 if debouncing isn't needed */ | 39 | /* Set 0 if debouncing isn't needed */ |
38 | #define DEBOUNCE 5 | 40 | #define DEBOUNCE 5 |
39 | 41 | ||
diff --git a/keyboards/signum/3_0/elitec/config.h b/keyboards/signum/3_0/elitec/config.h index 1e045e2e1..eeafb7236 100644 --- a/keyboards/signum/3_0/elitec/config.h +++ b/keyboards/signum/3_0/elitec/config.h | |||
@@ -22,6 +22,8 @@ | |||
22 | #define MATRIX_COL_PINS { B4, D7, D0, E6, D4, F6, F4, F7, B1, B3, C6, B2 } | 22 | #define MATRIX_COL_PINS { B4, D7, D0, E6, D4, F6, F4, F7, B1, B3, C6, B2 } |
23 | #define UNUSED_PINS | 23 | #define UNUSED_PINS |
24 | 24 | ||
25 | #define DIODE_DIRECTION COL2ROW | ||
26 | |||
25 | /* Set 0 if debouncing isn't needed */ | 27 | /* Set 0 if debouncing isn't needed */ |
26 | #define DEBOUNCE 5 | 28 | #define DEBOUNCE 5 |
27 | 29 | ||
diff --git a/keyboards/tanuki/config.h b/keyboards/tanuki/config.h index 1439ed43e..2dcd7b27d 100644 --- a/keyboards/tanuki/config.h +++ b/keyboards/tanuki/config.h | |||
@@ -36,6 +36,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | #define MATRIX_ROW_PINS { F7 , B1 , D4 , D0 } | 36 | #define MATRIX_ROW_PINS { F7 , B1 , D4 , D0 } |
37 | #define UNUSED_PINS | 37 | #define UNUSED_PINS |
38 | 38 | ||
39 | #define DIODE_DIRECTION COL2ROW | ||
40 | |||
39 | /* define if matrix has ghost */ | 41 | /* define if matrix has ghost */ |
40 | //#define MATRIX_HAS_GHOST | 42 | //#define MATRIX_HAS_GHOST |
41 | 43 | ||
diff --git a/keyboards/uzu42/rev1/config.h b/keyboards/uzu42/rev1/config.h index 8f86d22bf..13b278970 100644 --- a/keyboards/uzu42/rev1/config.h +++ b/keyboards/uzu42/rev1/config.h | |||
@@ -36,6 +36,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
36 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3 } | 36 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3 } |
37 | // #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order | 37 | // #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order |
38 | 38 | ||
39 | #define DIODE_DIRECTION COL2ROW | ||
40 | |||
39 | /* define if matrix has ghost */ | 41 | /* define if matrix has ghost */ |
40 | //#define MATRIX_HAS_GHOST | 42 | //#define MATRIX_HAS_GHOST |
41 | 43 | ||
diff --git a/keyboards/vitamins_included/rev1/config.h b/keyboards/vitamins_included/rev1/config.h index c4881db01..88b43ffc3 100644 --- a/keyboards/vitamins_included/rev1/config.h +++ b/keyboards/vitamins_included/rev1/config.h | |||
@@ -38,6 +38,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
38 | #define MATRIX_ROW_PINS { F5, F6, C7, F7 } | 38 | #define MATRIX_ROW_PINS { F5, F6, C7, F7 } |
39 | #define MATRIX_COL_PINS { F1, F4, E2, B6, D7, D6} | 39 | #define MATRIX_COL_PINS { F1, F4, E2, B6, D7, D6} |
40 | 40 | ||
41 | #define DIODE_DIRECTION COL2ROW | ||
42 | |||
41 | /* define if matrix has ghost */ | 43 | /* define if matrix has ghost */ |
42 | //#define MATRIX_HAS_GHOST | 44 | //#define MATRIX_HAS_GHOST |
43 | 45 | ||
diff --git a/keyboards/vitamins_included/rev2/config.h b/keyboards/vitamins_included/rev2/config.h index 0aa0e7063..d0f9e6400 100644 --- a/keyboards/vitamins_included/rev2/config.h +++ b/keyboards/vitamins_included/rev2/config.h | |||
@@ -37,6 +37,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
37 | #define MATRIX_ROW_PINS { F5, F6, C7, F7 } | 37 | #define MATRIX_ROW_PINS { F5, F6, C7, F7 } |
38 | #define MATRIX_COL_PINS { F1, F4, E2, B6, D7, D6} | 38 | #define MATRIX_COL_PINS { F1, F4, E2, B6, D7, D6} |
39 | 39 | ||
40 | #define DIODE_DIRECTION COL2ROW | ||
41 | |||
40 | /* define if matrix has ghost */ | 42 | /* define if matrix has ghost */ |
41 | //#define MATRIX_HAS_GHOST | 43 | //#define MATRIX_HAS_GHOST |
42 | 44 | ||
diff --git a/quantum/matrix.c b/quantum/matrix.c index 1675f2477..6bd604bb7 100644 --- a/quantum/matrix.c +++ b/quantum/matrix.c | |||
@@ -62,7 +62,8 @@ static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) | |||
62 | return (last_row_value != current_matrix[current_row]); | 62 | return (last_row_value != current_matrix[current_row]); |
63 | } | 63 | } |
64 | 64 | ||
65 | #elif (DIODE_DIRECTION == COL2ROW) | 65 | #elif defined(DIODE_DIRECTION) |
66 | # if (DIODE_DIRECTION == COL2ROW) | ||
66 | 67 | ||
67 | static void select_row(uint8_t row) { | 68 | static void select_row(uint8_t row) { |
68 | setPinOutput(row_pins[row]); | 69 | setPinOutput(row_pins[row]); |
@@ -110,7 +111,7 @@ static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) | |||
110 | return (last_row_value != current_matrix[current_row]); | 111 | return (last_row_value != current_matrix[current_row]); |
111 | } | 112 | } |
112 | 113 | ||
113 | #elif (DIODE_DIRECTION == ROW2COL) | 114 | # elif (DIODE_DIRECTION == ROW2COL) |
114 | 115 | ||
115 | static void select_col(uint8_t col) { | 116 | static void select_col(uint8_t col) { |
116 | setPinOutput(col_pins[col]); | 117 | setPinOutput(col_pins[col]); |
@@ -165,6 +166,11 @@ static bool read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col) | |||
165 | return matrix_changed; | 166 | return matrix_changed; |
166 | } | 167 | } |
167 | 168 | ||
169 | # else | ||
170 | # error DIODE_DIRECTION must be one of COL2ROW or ROW2COL! | ||
171 | # endif | ||
172 | #else | ||
173 | # error DIODE_DIRECTION is not defined! | ||
168 | #endif | 174 | #endif |
169 | 175 | ||
170 | void matrix_init(void) { | 176 | void matrix_init(void) { |
diff --git a/quantum/split_common/matrix.c b/quantum/split_common/matrix.c index ed1ff5acf..454ea59c3 100644 --- a/quantum/split_common/matrix.c +++ b/quantum/split_common/matrix.c | |||
@@ -79,7 +79,8 @@ static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) | |||
79 | return (last_row_value != current_matrix[current_row]); | 79 | return (last_row_value != current_matrix[current_row]); |
80 | } | 80 | } |
81 | 81 | ||
82 | #elif (DIODE_DIRECTION == COL2ROW) | 82 | #elif defined(DIODE_DIRECTION) |
83 | # if (DIODE_DIRECTION == COL2ROW) | ||
83 | 84 | ||
84 | static void select_row(uint8_t row) { | 85 | static void select_row(uint8_t row) { |
85 | setPinOutput(row_pins[row]); | 86 | setPinOutput(row_pins[row]); |
@@ -124,7 +125,7 @@ static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) | |||
124 | return (last_row_value != current_matrix[current_row]); | 125 | return (last_row_value != current_matrix[current_row]); |
125 | } | 126 | } |
126 | 127 | ||
127 | #elif (DIODE_DIRECTION == ROW2COL) | 128 | # elif (DIODE_DIRECTION == ROW2COL) |
128 | 129 | ||
129 | static void select_col(uint8_t col) { | 130 | static void select_col(uint8_t col) { |
130 | setPinOutput(col_pins[col]); | 131 | setPinOutput(col_pins[col]); |
@@ -179,6 +180,11 @@ static bool read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col) | |||
179 | return matrix_changed; | 180 | return matrix_changed; |
180 | } | 181 | } |
181 | 182 | ||
183 | # else | ||
184 | # error DIODE_DIRECTION must be one of COL2ROW or ROW2COL! | ||
185 | # endif | ||
186 | #else | ||
187 | # error DIODE_DIRECTION is not defined! | ||
182 | #endif | 188 | #endif |
183 | 189 | ||
184 | void matrix_init(void) { | 190 | void matrix_init(void) { |