summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/0xcb/1337/config.h10
-rw-r--r--keyboards/0xcb/1337/info.json7
-rw-r--r--keyboards/0xcb/tutelpad/config.h21
-rw-r--r--keyboards/0xcb/tutelpad/info.json6
-rw-r--r--keyboards/1k/config.h12
-rw-r--r--keyboards/1k/info.json5
-rw-r--r--keyboards/25keys/cassette42/config.h7
-rw-r--r--keyboards/25keys/cassette42/info.json5
-rw-r--r--keyboards/40percentclub/4pack/config.h24
-rw-r--r--keyboards/40percentclub/4pack/info.json5
-rw-r--r--keyboards/40percentclub/nano/config.h23
-rw-r--r--keyboards/40percentclub/nano/info.json6
-rw-r--r--keyboards/40percentclub/nein/config.h12
-rw-r--r--keyboards/40percentclub/nein/info.json7
-rw-r--r--keyboards/40percentclub/sixpack/config.h23
-rw-r--r--keyboards/40percentclub/sixpack/info.json6
-rw-r--r--keyboards/8pack/config.h12
-rw-r--r--keyboards/8pack/info.json6
-rw-r--r--keyboards/a_dux/config.h30
-rw-r--r--keyboards/a_dux/info.json20
-rw-r--r--keyboards/adafruit/macropad/config.h16
-rw-r--r--keyboards/adafruit/macropad/info.json9
-rw-r--r--keyboards/anavi/knob1/config.h11
-rw-r--r--keyboards/anavi/knob1/info.json5
-rw-r--r--keyboards/anavi/macropad8/config.h21
-rw-r--r--keyboards/anavi/macropad8/info.json6
-rw-r--r--keyboards/arrayperipherals/1x4p1/config.h10
-rw-r--r--keyboards/arrayperipherals/1x4p1/info.json5
-rw-r--r--keyboards/beekeeb/piantor/config.h18
-rw-r--r--keyboards/beekeeb/piantor/info.json20
-rw-r--r--keyboards/botanicalkeyboards/fm2u/config.h45
-rw-r--r--keyboards/botanicalkeyboards/fm2u/info.json5
-rw-r--r--keyboards/bpiphany/sixshooter/config.h28
-rw-r--r--keyboards/bpiphany/sixshooter/info.json6
-rw-r--r--keyboards/cantor/config.h14
-rw-r--r--keyboards/cantor/info.json20
-rw-r--r--keyboards/crypt_macro/config.h9
-rw-r--r--keyboards/crypt_macro/info.json6
-rw-r--r--keyboards/dailycraft/owl8/config.h22
-rw-r--r--keyboards/dailycraft/owl8/info.json5
-rw-r--r--keyboards/dailycraft/stickey4/config.h22
-rw-r--r--keyboards/dailycraft/stickey4/info.json5
-rw-r--r--keyboards/dekunukem/duckypad/config.h6
-rw-r--r--keyboards/dekunukem/duckypad/info.json5
-rw-r--r--keyboards/ferris/sweep/config.h19
-rw-r--r--keyboards/ferris/sweep/info.json22
-rw-r--r--keyboards/geekboards/macropad_v2/config.h6
-rw-r--r--keyboards/geekboards/macropad_v2/info.json6
-rw-r--r--keyboards/handwired/aball/config.h7
-rw-r--r--keyboards/handwired/aball/info.json5
-rw-r--r--keyboards/handwired/bdn9_ble/config.h12
-rw-r--r--keyboards/handwired/bdn9_ble/info.json7
-rw-r--r--keyboards/handwired/bento/rev1/config.h11
-rw-r--r--keyboards/handwired/bento/rev1/info.json6
-rw-r--r--keyboards/handwired/dc/mc/001/config.h13
-rw-r--r--keyboards/handwired/dc/mc/001/info.json5
-rw-r--r--keyboards/handwired/lemonpad/config.h21
-rw-r--r--keyboards/handwired/lemonpad/info.json6
-rw-r--r--keyboards/handwired/stream_cheap/2x3/config.h8
-rw-r--r--keyboards/handwired/stream_cheap/2x3/info.json6
-rw-r--r--keyboards/handwired/stream_cheap/2x4/config.h11
-rw-r--r--keyboards/handwired/stream_cheap/2x4/info.json6
-rw-r--r--keyboards/handwired/stream_cheap/2x5/config.h8
-rw-r--r--keyboards/handwired/stream_cheap/2x5/info.json6
-rw-r--r--keyboards/ianklug/grooveboard/config.h24
-rw-r--r--keyboards/ianklug/grooveboard/info.json5
-rw-r--r--keyboards/kb_elmo/isolation/config.h8
-rw-r--r--keyboards/kb_elmo/isolation/info.json5
-rw-r--r--keyboards/keebio/bamfk1/config.h13
-rw-r--r--keyboards/keebio/bamfk1/info.json6
-rw-r--r--keyboards/keebio/bdn9/rev1/config.h12
-rw-r--r--keyboards/keebio/bdn9/rev1/info.json9
-rw-r--r--keyboards/keebio/bdn9/rev2/config.h12
-rw-r--r--keyboards/keebio/bdn9/rev2/info.json9
-rw-r--r--keyboards/keebio/choconum/config.h15
-rw-r--r--keyboards/keebio/choconum/info.json9
-rw-r--r--keyboards/keebio/stick/config.h13
-rw-r--r--keyboards/keebio/stick/info.json5
-rw-r--r--keyboards/keebio/tukey/config.h11
-rw-r--r--keyboards/keebio/tukey/info.json5
-rw-r--r--keyboards/keyhive/uno/rev1/config.h9
-rw-r--r--keyboards/keyhive/uno/rev1/info.json7
-rw-r--r--keyboards/keyhive/uno/rev2/config.h9
-rw-r--r--keyboards/keyhive/uno/rev2/info.json7
-rwxr-xr-xkeyboards/ktec/staryu/config.h11
-rw-r--r--keyboards/ktec/staryu/info.json6
-rw-r--r--keyboards/leafcutterlabs/bigknob/config.h22
-rw-r--r--keyboards/leafcutterlabs/bigknob/info.json5
-rw-r--r--keyboards/littlealby/mute/config.h13
-rw-r--r--keyboards/littlealby/mute/info.json5
-rw-r--r--keyboards/macro3/config.h10
-rw-r--r--keyboards/macro3/info.json6
-rw-r--r--keyboards/makeymakey/config.h12
-rw-r--r--keyboards/makeymakey/info.json7
-rw-r--r--keyboards/miniaxe/config.h28
-rw-r--r--keyboards/miniaxe/info.json8
-rw-r--r--keyboards/minimacro5/config.h21
-rw-r--r--keyboards/minimacro5/info.json5
-rw-r--r--keyboards/mixi/config.h12
-rw-r--r--keyboards/mixi/info.json7
-rw-r--r--keyboards/novelkeys/nk1/config.h10
-rwxr-xr-xkeyboards/novelkeys/nk1/info.json5
-rw-r--r--keyboards/nullbitsco/scramble/v1/config.h7
-rw-r--r--keyboards/nullbitsco/scramble/v1/info.json8
-rw-r--r--keyboards/nullbitsco/scramble/v2/config.h6
-rw-r--r--keyboards/nullbitsco/scramble/v2/info.json8
-rw-r--r--keyboards/obosob/steal_this_keyboard/config.h30
-rw-r--r--keyboards/obosob/steal_this_keyboard/info.json20
-rw-r--r--keyboards/peranekofactory/tone/rev1/config.h23
-rw-r--r--keyboards/peranekofactory/tone/rev1/info.json5
-rw-r--r--keyboards/peranekofactory/tone/rev2/config.h23
-rw-r--r--keyboards/peranekofactory/tone/rev2/info.json5
-rw-r--r--keyboards/ploopyco/mouse/config.h20
-rw-r--r--keyboards/ploopyco/mouse/info.json5
-rw-r--r--keyboards/ploopyco/trackball/rev1/config.h15
-rw-r--r--keyboards/ploopyco/trackball/rev1/info.json7
-rw-r--r--keyboards/ploopyco/trackball/rev1_005/config.h15
-rw-r--r--keyboards/ploopyco/trackball/rev1_005/info.json7
-rw-r--r--keyboards/ploopyco/trackball_mini/rev1_001/config.h15
-rw-r--r--keyboards/ploopyco/trackball_mini/rev1_001/info.json7
-rw-r--r--keyboards/ploopyco/trackball_mini/rev1_002/config.h15
-rw-r--r--keyboards/ploopyco/trackball_mini/rev1_002/info.json7
-rw-r--r--keyboards/ploopyco/trackball_nano/rev1_001/config.h12
-rw-r--r--keyboards/ploopyco/trackball_nano/rev1_001/info.json7
-rw-r--r--keyboards/ryanbaekr/rb1/config.h10
-rw-r--r--keyboards/ryanbaekr/rb1/info.json5
-rw-r--r--keyboards/sendyyeah/pix/config.h10
-rw-r--r--keyboards/sendyyeah/pix/info.json5
-rw-r--r--keyboards/sergiopoverony/creator_pro/config.h10
-rw-r--r--keyboards/sergiopoverony/creator_pro/info.json5
-rw-r--r--keyboards/spaceman/2_milk/config.h10
-rw-r--r--keyboards/spaceman/2_milk/info.json6
-rw-r--r--keyboards/splitkb/zima/config.h15
-rw-r--r--keyboards/splitkb/zima/info.json8
-rwxr-xr-xkeyboards/tominabox1/bigboy/config.h8
-rw-r--r--keyboards/tominabox1/bigboy/info.json6
-rw-r--r--keyboards/ungodly/nines/config.h12
-rw-r--r--keyboards/ungodly/nines/info.json7
-rw-r--r--keyboards/winkeys/mini_winni/config.h8
-rw-r--r--keyboards/winkeys/mini_winni/info.json6
-rw-r--r--keyboards/winry/winry315/config.h12
-rw-r--r--keyboards/winry/winry315/info.json5
-rw-r--r--keyboards/xiudi/xd002/config.h12
-rw-r--r--keyboards/xiudi/xd002/info.json5
-rw-r--r--keyboards/xiudi/xd004/info.json5
-rw-r--r--keyboards/xiudi/xd004/v1/config.h18
-rw-r--r--keyboards/yatara/drink_me/config.h27
-rw-r--r--keyboards/yatara/drink_me/info.json5
-rw-r--r--keyboards/yeehaw/config.h10
-rw-r--r--keyboards/yeehaw/info.json5
-rw-r--r--keyboards/yushakobo/quick7/config.h27
-rw-r--r--keyboards/yushakobo/quick7/info.json7
-rw-r--r--keyboards/yynmt/acperience12/rev1/config.h6
-rw-r--r--keyboards/yynmt/acperience12/rev1/info.json10
-rw-r--r--keyboards/z12/config.h13
-rw-r--r--keyboards/z12/info.json8
-rw-r--r--keyboards/z34/config.h21
-rw-r--r--keyboards/z34/info.json20
158 files changed, 560 insertions, 1197 deletions
diff --git a/keyboards/0xcb/1337/config.h b/keyboards/0xcb/1337/config.h
index 17ae0d55fb..10f946592f 100644
--- a/keyboards/0xcb/1337/config.h
+++ b/keyboards/0xcb/1337/config.h
@@ -18,16 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// clang-format off
-/* key matrix size */
-#define MATRIX_ROWS 3
-#define MATRIX_COLS 3
-
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
- { D2, D4, F4 }, \
- { D7, B1, B3 }, \
- { E6, B4, B2 } \
-}
#define TAP_CODE_DELAY 10
#define ENCODER_RESOLUTION 4
#define ENCODERS_PAD_A { F6 }
diff --git a/keyboards/0xcb/1337/info.json b/keyboards/0xcb/1337/info.json
index 3da716aa37..ca04777536 100644
--- a/keyboards/0xcb/1337/info.json
+++ b/keyboards/0xcb/1337/info.json
@@ -10,6 +10,13 @@
},
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["D2", "D4", "F4"],
+ ["D7", "B1", "B3"],
+ ["E6", "B4", "B2"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/0xcb/tutelpad/config.h b/keyboards/0xcb/tutelpad/config.h
index 21f22620ad..d4ba1d439f 100644
--- a/keyboards/0xcb/tutelpad/config.h
+++ b/keyboards/0xcb/tutelpad/config.h
@@ -16,27 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 4
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
- { E6, D7, B1, B3 }, \
- { B5, B4, B2, B6 } \
-}
-
#define RGB_DI_PIN D3 // LED data pin on controller
#define RGBLED_NUM 4 // Number of LEDs connected
diff --git a/keyboards/0xcb/tutelpad/info.json b/keyboards/0xcb/tutelpad/info.json
index 96e61924b9..25c0ca51c4 100644
--- a/keyboards/0xcb/tutelpad/info.json
+++ b/keyboards/0xcb/tutelpad/info.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["E6", "D7", "B1", "B3"],
+ ["B5", "B4", "B2", "B6"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/1k/config.h b/keyboards/1k/config.h
index f5d74426ef..1e970661c0 100644
--- a/keyboards/1k/config.h
+++ b/keyboards/1k/config.h
@@ -15,18 +15,6 @@
*/
#pragma once
-
-/* matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 1
-
-/*
- * Keyboard Matrix Assignments
- *
- * On this board we have direct connection: no diodes.
- */
-#define DIRECT_PINS {{ B0 }}
-
#define RGBLED_NUM 1
#define RGB_DI_PIN B2
diff --git a/keyboards/1k/info.json b/keyboards/1k/info.json
index 0c2de31808..8a27d94862 100644
--- a/keyboards/1k/info.json
+++ b/keyboards/1k/info.json
@@ -8,6 +8,11 @@
"pid": "0x0001",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "direct": [
+ ["B0"]
+ ]
+ },
"layouts": {
"LAYOUT_ortho_1x1": {
"layout": [
diff --git a/keyboards/25keys/cassette42/config.h b/keyboards/25keys/cassette42/config.h
index fe43496227..c57f66da5d 100644
--- a/keyboards/25keys/cassette42/config.h
+++ b/keyboards/25keys/cassette42/config.h
@@ -17,13 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 6
-
-#define DIRECT_PINS {{ B4, F6, F5, F4, B5, F7 }}
-
#define ENCODERS_PAD_A { B6, B3 }
#define ENCODERS_PAD_B { B2, B1 }
#define ENCODER_RESOLUTION 4
diff --git a/keyboards/25keys/cassette42/info.json b/keyboards/25keys/cassette42/info.json
index 5150c28422..546e02ab63 100644
--- a/keyboards/25keys/cassette42/info.json
+++ b/keyboards/25keys/cassette42/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["B4", "F6", "F5", "F4", "B5", "F7"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [{"x":0.5, "y":0.75}, {"x":2.5, "y":0.75}, {"x":0, "y":1.75}, {"x":1, "y":1.75}, {"x":2, "y":1.75}, {"x":3, "y":1.75}]
diff --git a/keyboards/40percentclub/4pack/config.h b/keyboards/40percentclub/4pack/config.h
index 3a8a54d4fa..d289f893ec 100644
--- a/keyboards/40percentclub/4pack/config.h
+++ b/keyboards/40percentclub/4pack/config.h
@@ -17,30 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 4
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-// #define MATRIX_ROW_PINS { B0 } // B0 equivalents the ground pin
-// #define MATRIX_COL_PINS { E6, D7, C6, D4 }
-#define DIRECT_PINS { \
- { E6, D7, C6, D4 } \
-}
-
-/* COL2ROW, ROW2COL*/
-#define DIODE_DIRECTION COL2ROW
-
#define BACKLIGHT_LED_COUNT 2
#undef BACKLIGHT_PIN
#define BACKLIGHT_PINS { F6, F7 }
diff --git a/keyboards/40percentclub/4pack/info.json b/keyboards/40percentclub/4pack/info.json
index 91c6171dff..1665c7b35b 100644
--- a/keyboards/40percentclub/4pack/info.json
+++ b/keyboards/40percentclub/4pack/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["E6", "D7", "C6", "D4"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}]
diff --git a/keyboards/40percentclub/nano/config.h b/keyboards/40percentclub/nano/config.h
index 7d3c140923..39aa83e067 100644
--- a/keyboards/40percentclub/nano/config.h
+++ b/keyboards/40percentclub/nano/config.h
@@ -17,29 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 4
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- * NO_DIODE = switches are directly connected to AVR pins
- *
-*/
-// #define MATRIX_ROW_PINS { D0, D5 }
-// #define MATRIX_COL_PINS { F1, F0, B0 }
-#define DIRECT_PINS { \
- { F4, F5, F6, F7 }, \
- { D1, D0, D4, C6 }, \
-}
-
/* ws2812 RGB LED */
#define RGB_DI_PIN D3
# define RGBLIGHT_EFFECT_BREATHING
diff --git a/keyboards/40percentclub/nano/info.json b/keyboards/40percentclub/nano/info.json
index 1821a684ac..430129a6a1 100644
--- a/keyboards/40percentclub/nano/info.json
+++ b/keyboards/40percentclub/nano/info.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["F4", "F5", "F6", "F7"],
+ ["D1", "D0", "D4", "C6"]
+ ]
+ },
"layouts": {
"LAYOUT_ortho_2x4": {
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}]
diff --git a/keyboards/40percentclub/nein/config.h b/keyboards/40percentclub/nein/config.h
index 0cc521499e..e89243f55e 100644
--- a/keyboards/40percentclub/nein/config.h
+++ b/keyboards/40percentclub/nein/config.h
@@ -16,18 +16,6 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 3
-#define MATRIX_COLS 3
-
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
- { F4, F5, F6 }, \
- { F7, B1, B3 }, \
- { B2, B6, B5 } \
-}
-
// #define RGB_DI_PIN E2
// #ifdef RGB_DI_PIN
// #define RGBLED_NUM 16
diff --git a/keyboards/40percentclub/nein/info.json b/keyboards/40percentclub/nein/info.json
index 82d03395d8..ba39cb834d 100644
--- a/keyboards/40percentclub/nein/info.json
+++ b/keyboards/40percentclub/nein/info.json
@@ -10,6 +10,13 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["F4", "F5", "F6"],
+ ["F7", "B1", "B3"],
+ ["B2", "B6", "B5"]
+ ]
+ },
"layouts": {
"LAYOUT_ortho_3x3": {
"layout": [
diff --git a/keyboards/40percentclub/sixpack/config.h b/keyboards/40percentclub/sixpack/config.h
index 9c384ef2aa..c94721d714 100644
--- a/keyboards/40percentclub/sixpack/config.h
+++ b/keyboards/40percentclub/sixpack/config.h
@@ -17,29 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 3
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-#define DIRECT_PINS { \
- { D4, C6, D7 }, \
- { E6, B4, B5 } \
-}
-
-/* COL2ROW, ROW2COL*/
-#define DIODE_DIRECTION COL2ROW
-
/* Backlight */
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 6
diff --git a/keyboards/40percentclub/sixpack/info.json b/keyboards/40percentclub/sixpack/info.json
index 78ca5bda58..ea7e6281a9 100644
--- a/keyboards/40percentclub/sixpack/info.json
+++ b/keyboards/40percentclub/sixpack/info.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D4", "C6", "D7"],
+ ["E6", "B4", "B5"]
+ ]
+ },
"community_layouts": ["ortho_2x3"],
"layouts": {
"LAYOUT_ortho_2x3": {
diff --git a/keyboards/8pack/config.h b/keyboards/8pack/config.h
index ddd88f1303..a9564f1bcf 100644
--- a/keyboards/8pack/config.h
+++ b/keyboards/8pack/config.h
@@ -1,23 +1,11 @@
#pragma once
-
-/* COL2ROW or ROW2COL */
-#define DIODE_DIRECTION COL2ROW
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 4
-
-/* key matrix pins */
-
-#define DIRECT_PINS { { F4, F5, F6, F7 }, { B1, B3, B2, B6 } }
-
#define BACKLIGHT_LED_COUNT 8
#undef BACKLIGHT_PIN
#define BACKLIGHT_PINS { D1, D0, D4, C6, D7, E6, B4, B5 }
diff --git a/keyboards/8pack/info.json b/keyboards/8pack/info.json
index 4520540642..fa33b2644f 100644
--- a/keyboards/8pack/info.json
+++ b/keyboards/8pack/info.json
@@ -9,6 +9,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["F4", "F5", "F6", "F7"],
+ ["B1", "B3", "B2", "B6"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/a_dux/config.h b/keyboards/a_dux/config.h
index d6551e60c4..d636139928 100644
--- a/keyboards/a_dux/config.h
+++ b/keyboards/a_dux/config.h
@@ -16,36 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 8
-#define MATRIX_COLS 5
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- * NO_DIODE = switches are directly connected to AVR pins
- *
-*/
-#define DIRECT_PINS { \
- { C6, D2, F7, B2, F4 }, \
- { D7, D0, F6, B3, F5 }, \
- { E6, D4, D3, B1, B6 }, \
- { B4, B5, NO_PIN, NO_PIN, NO_PIN } \
-}
-
-#define DIRECT_PINS_RIGHT { \
- { F4, B2, F7, D2, C6 }, \
- { F5, B3, F6, D0, D7 }, \
- { B6, B1, D3, D4, E6 }, \
- { B5, B4, NO_PIN, NO_PIN, NO_PIN } \
-}
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
diff --git a/keyboards/a_dux/info.json b/keyboards/a_dux/info.json
index d5a8365279..6292d5e707 100644
--- a/keyboards/a_dux/info.json
+++ b/keyboards/a_dux/info.json
@@ -10,6 +10,26 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["C6", "D2", "F7", "B2", "F4"],
+ ["D7", "D0", "F6", "B3", "F5"],
+ ["E6", "D4", "D3", "B1", "B6"],
+ ["B4", "B5", null, null, null]
+ ]
+ },
+ "split": {
+ "matrix_pins": {
+ "right": {
+ "direct": [
+ ["F4", "B2", "F7", "D2", "C6"],
+ ["F5", "B3", "F6", "D0", "D7"],
+ ["B6", "B1", "D3", "D4", "E6"],
+ ["B5", "B4", null, null, null]
+ ]
+ }
+ }
+ },
"community_layouts": ["split_3x5_2"],
"layouts": {
"LAYOUT_split_3x5_2": {
diff --git a/keyboards/adafruit/macropad/config.h b/keyboards/adafruit/macropad/config.h
index d533828dae..7f1170ef37 100644
--- a/keyboards/adafruit/macropad/config.h
+++ b/keyboards/adafruit/macropad/config.h
@@ -16,22 +16,6 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 5
-#define MATRIX_COLS 3
-
-/* Keyboard Matrix Assignments */
-// clang-format off
-#define DIRECT_PINS { \
- { NO_PIN, NO_PIN, GP0 }, \
- { GP1, GP2, GP3 }, \
- { GP4, GP5, GP6 }, \
- { GP7, GP8, GP9 }, \
- { GP10, GP11, GP12 } \
-}
-// clang-format on
-
/* OLED SPI Defines */
#define OLED_DISPLAY_128X64
#define OLED_IC OLED_IC_SH1106
diff --git a/keyboards/adafruit/macropad/info.json b/keyboards/adafruit/macropad/info.json
index adb82407ec..588c51b008 100644
--- a/keyboards/adafruit/macropad/info.json
+++ b/keyboards/adafruit/macropad/info.json
@@ -10,6 +10,15 @@
},
"processor": "RP2040",
"bootloader": "rp2040",
+ "matrix_pins": {
+ "direct": [
+ [null, null, "GP0"],
+ ["GP1", "GP2", "GP3"],
+ ["GP4", "GP5", "GP6"],
+ ["GP7", "GP8", "GP9"],
+ ["GP10", "GP11", "GP12"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/anavi/knob1/config.h b/keyboards/anavi/knob1/config.h
index 207b653a42..338f5d8dbe 100644
--- a/keyboards/anavi/knob1/config.h
+++ b/keyboards/anavi/knob1/config.h
@@ -3,17 +3,6 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 1
-
-/* Keyboard Matrix Assignments */
-// clang-format off
-#define DIRECT_PINS { \
- { GP26 } \
-}
-
#define RGBLIGHT_DEFAULT_MODE 9
/* Double tap reset button to enter bootloader */
diff --git a/keyboards/anavi/knob1/info.json b/keyboards/anavi/knob1/info.json
index 0677916600..1bd66e9ef0 100644
--- a/keyboards/anavi/knob1/info.json
+++ b/keyboards/anavi/knob1/info.json
@@ -44,6 +44,11 @@
}
]
},
+ "matrix_pins": {
+ "direct": [
+ ["GP26"]
+ ]
+ },
"layouts": {
"LAYOUT_k1": {
"layout": [
diff --git a/keyboards/anavi/macropad8/config.h b/keyboards/anavi/macropad8/config.h
index a6c0269102..815636ead6 100644
--- a/keyboards/anavi/macropad8/config.h
+++ b/keyboards/anavi/macropad8/config.h
@@ -17,27 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 4
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- * NO_DIODE = switches are directly connected to AVR pins
- *
-*/
-#define DIRECT_PINS { \
- { D4, F6, B5, E6 }, \
- { F5, F7, B4, C6 } \
-}
-
#define BACKLIGHT_PIN D7
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 3
diff --git a/keyboards/anavi/macropad8/info.json b/keyboards/anavi/macropad8/info.json
index 979f436810..51e805059d 100644
--- a/keyboards/anavi/macropad8/info.json
+++ b/keyboards/anavi/macropad8/info.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D4", "F6", "B5", "E6"],
+ ["F5", "F7", "B4", "C6"]
+ ]
+ },
"layouts": {
"LAYOUT_ortho_2x4": {
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}]
diff --git a/keyboards/arrayperipherals/1x4p1/config.h b/keyboards/arrayperipherals/1x4p1/config.h
index 719c2c00da..b70680e4f5 100644
--- a/keyboards/arrayperipherals/1x4p1/config.h
+++ b/keyboards/arrayperipherals/1x4p1/config.h
@@ -17,16 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 5
-
-
-#define DIRECT_PINS { \
- { C7, B7, D6, F5, F7} \
-}
-
/* rotary encoder*/
#define ENCODERS_PAD_A {F0}
#define ENCODERS_PAD_B {F1}
diff --git a/keyboards/arrayperipherals/1x4p1/info.json b/keyboards/arrayperipherals/1x4p1/info.json
index b224d3d5a6..0441646af0 100644
--- a/keyboards/arrayperipherals/1x4p1/info.json
+++ b/keyboards/arrayperipherals/1x4p1/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["C7", "B7", "D6", "F5", "F7"]
+ ]
+ },
"layouts": {
"LAYOUT_ortho_1x5": {
"layout": [
diff --git a/keyboards/beekeeb/piantor/config.h b/keyboards/beekeeb/piantor/config.h
index 8a3e5eb467..6a50429c20 100644
--- a/keyboards/beekeeb/piantor/config.h
+++ b/keyboards/beekeeb/piantor/config.h
@@ -11,23 +11,5 @@
#define SERIAL_USART_TX_PIN GP0
#define SERIAL_USART_RX_PIN GP1
-/* key matrix size */
-#define MATRIX_ROWS 8
-#define MATRIX_COLS 6
-
-#define DIRECT_PINS { \
- { GP5, GP4, GP11, GP15, GP3, GP2}, \
- { GP22, GP20, GP10, GP14, GP9, GP8}, \
- { GP21, GP19, GP6, GP7, GP13, GP12}, \
- { GP17, GP18, GP16, NO_PIN, NO_PIN, NO_PIN} \
-}
-
-#define DIRECT_PINS_RIGHT { \
- { GP22, GP21, GP2, GP5, GP8, GP11}, \
- { GP20, GP19, GP3, GP6, GP9, GP12}, \
- { GP18, GP17, GP4, GP7, GP10, GP13}, \
- { GP15, GP14, GP16, NO_PIN, NO_PIN, NO_PIN} \
-}
-
#define BOOTMAGIC_LITE_ROW 0
#define BOOTMAGIC_LITE_COLUMN 5
diff --git a/keyboards/beekeeb/piantor/info.json b/keyboards/beekeeb/piantor/info.json
index 50f4feed66..a914b1882d 100644
--- a/keyboards/beekeeb/piantor/info.json
+++ b/keyboards/beekeeb/piantor/info.json
@@ -18,8 +18,26 @@
"pid": "0x0001",
"vid": "0xBEEB"
},
+ "matrix_pins": {
+ "direct": [
+ ["GP5", "GP4", "GP11", "GP15", "GP3", "GP2"],
+ ["GP22", "GP20", "GP10", "GP14", "GP9", "GP8"],
+ ["GP21", "GP19", "GP6", "GP7", "GP13", "GP12"],
+ ["GP17", "GP18", "GP16", null, null, null]
+ ]
+ },
"split": {
- "enabled": true
+ "enabled": true,
+ "matrix_pins": {
+ "right": {
+ "direct": [
+ ["GP22", "GP21", "GP2", "GP5", "GP8", "GP11"],
+ ["GP20", "GP19", "GP3", "GP6", "GP9", "GP12"],
+ ["GP18", "GP17", "GP4", "GP7", "GP10", "GP13"],
+ ["GP15", "GP14", "GP16", null, null, null]
+ ]
+ }
+ }
},
"community_layouts": ["split_3x6_3"],
"layouts": {
diff --git a/keyboards/botanicalkeyboards/fm2u/config.h b/keyboards/botanicalkeyboards/fm2u/config.h
deleted file mode 100644
index a329779827..0000000000
--- a/keyboards/botanicalkeyboards/fm2u/config.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
-Copyright 2020 mechmerlin
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#pragma once
-
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 1
-
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
- { C4 } \
-}
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-
-/* COL2ROW, ROW2COL*/
-#define DIODE_DIRECTION COL2ROW
-
-
-
diff --git a/keyboards/botanicalkeyboards/fm2u/info.json b/keyboards/botanicalkeyboards/fm2u/info.json
index c0ea4c9b8a..09d617152b 100644
--- a/keyboards/botanicalkeyboards/fm2u/info.json
+++ b/keyboards/botanicalkeyboards/fm2u/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["C4"]
+ ]
+ },
"layouts": {
"LAYOUT_1u": {
"layout": [
diff --git a/keyboards/bpiphany/sixshooter/config.h b/keyboards/bpiphany/sixshooter/config.h
deleted file mode 100644
index b8197d3e03..0000000000
--- a/keyboards/bpiphany/sixshooter/config.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#pragma once
-
-
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 3
-
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
- { F7, F6, F1 }, \
- { F5, F4, F0 } \
-}
-
-/*
- * Feature disable options
- * These options are also useful to firmware size reduction.
- */
-
-/* disable debug print */
-//#define NO_DEBUG
-
-/* disable print */
-//#define NO_PRINT
-
-/* disable action features */
-//#define NO_ACTION_LAYER
-//#define NO_ACTION_TAPPING
-//#define NO_ACTION_ONESHOT
diff --git a/keyboards/bpiphany/sixshooter/info.json b/keyboards/bpiphany/sixshooter/info.json
index 94059d0c2b..9f3637be0b 100644
--- a/keyboards/bpiphany/sixshooter/info.json
+++ b/keyboards/bpiphany/sixshooter/info.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "halfkay",
+ "matrix_pins": {
+ "direct": [
+ ["F7", "F6", "F1"],
+ ["F5", "F4", "F0"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [{"label":"K00", "x":0, "y":0}, {"label":"K01", "x":1, "y":0}, {"label":"K02", "x":2, "y":0}, {"label":"K03", "x":0, "y":1}, {"label":"K04", "x":1, "y":1}, {"label":"K05", "x":2, "y":1}]
diff --git a/keyboards/cantor/config.h b/keyboards/cantor/config.h
index f002d87b1f..1cb680ac41 100644
--- a/keyboards/cantor/config.h
+++ b/keyboards/cantor/config.h
@@ -3,20 +3,6 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 8
-#define MATRIX_COLS 6
-
-#define DIRECT_PINS {{B1, B10, A8, B15, B14, B13}, \
- {B9, B8, B5, B4, B3, A15}, \
- {A3, A4, A5, A6, A7, B0}, \
- {A2, A1, A0, NO_PIN, NO_PIN, NO_PIN}}
-#define DIRECT_PINS_RIGHT {{B13, B14, B15, A8, B10, B1}, \
- {A15, B3, B4, B5, B8, B9}, \
- {B0, A7, A6, A5, A4, A3}, \
- {A0, A1, A2, NO_PIN, NO_PIN, NO_PIN}}
-
#define SERIAL_USART_FULL_DUPLEX // Enable full duplex operation mode.
#define SERIAL_USART_TX_PIN B6 // USART TX pin
#define SERIAL_USART_RX_PIN B7 // USART RX pin
diff --git a/keyboards/cantor/info.json b/keyboards/cantor/info.json
index 6d599f4300..b2067508a0 100644
--- a/keyboards/cantor/info.json
+++ b/keyboards/cantor/info.json
@@ -19,6 +19,26 @@
"pid": "0x0000",
"vid": "0xFEED"
},
+ "matrix_pins": {
+ "direct": [
+ ["B1", "B10", "A8", "B15", "B14", "B13"],
+ ["B9", "B8", "B5", "B4", "B3", "A15"],
+ ["A3", "A4", "A5", "A6", "A7", "B0"],
+ ["A2", "A1", "A0", null, null, null]
+ ]
+ },
+ "split": {
+ "matrix_pins": {
+ "right": {
+ "direct": [
+ ["B13", "B14", "B15", "A8", "B10", "B1"],
+ ["A15", "B3", "B4", "B5", "B8", "B9"],
+ ["B0", "A7", "A6", "A5", "A4", "A3"],
+ ["A0", "A1", "A2", null, null, null]
+ ]
+ }
+ }
+ },
"community_layouts": ["split_3x6_3"],
"layouts": {
"LAYOUT_split_3x6_3": {
diff --git a/keyboards/crypt_macro/config.h b/keyboards/crypt_macro/config.h
index 97ea6e4619..665340e7af 100644
--- a/keyboards/crypt_macro/config.h
+++ b/keyboards/crypt_macro/config.h
@@ -17,15 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 3
-
-#define DIRECT_PINS { \
- { B12, B6, B7 }, \
- { NO_PIN, B5, NO_PIN} \
-}
-
/* Ensure we jump to bootloader if the QK_BOOT keycode was pressed */
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
diff --git a/keyboards/crypt_macro/info.json b/keyboards/crypt_macro/info.json
index 6945fe7391..910777b90c 100644
--- a/keyboards/crypt_macro/info.json
+++ b/keyboards/crypt_macro/info.json
@@ -10,6 +10,12 @@
},
"processor": "STM32F072",
"bootloader": "stm32-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["B12", "B6", "B7"],
+ [null, "B5", null]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":0.5, "y":1, "w":2}]
diff --git a/keyboards/dailycraft/owl8/config.h b/keyboards/dailycraft/owl8/config.h
index df93c2baaf..259efacb10 100644
--- a/keyboards/dailycraft/owl8/config.h
+++ b/keyboards/dailycraft/owl8/config.h
@@ -17,28 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 16
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-#define DIRECT_PINS { \
- { F4, F7, B3, B6, F5, F6, B1, B2, D4, C6, D7, E6, NO_PIN, NO_PIN, NO_PIN, NO_PIN } \
-}
-
-/* COL2ROW, ROW2COL */
-#define DIODE_DIRECTION COL2ROW
-
//#define LED_NUM_LOCK_PIN B0
//#define LED_CAPS_LOCK_PIN B1
//#define LED_SCROLL_LOCK_PIN B2
diff --git a/keyboards/dailycraft/owl8/info.json b/keyboards/dailycraft/owl8/info.json
index de88c712a7..02d503424d 100644
--- a/keyboards/dailycraft/owl8/info.json
+++ b/keyboards/dailycraft/owl8/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["F4", "F7", "B3", "B6", "F5", "F6", "B1", "B2", "D4", "C6", "D7", "E6", null, null, null, null]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/dailycraft/stickey4/config.h b/keyboards/dailycraft/stickey4/config.h
index 54ee0d965b..259efacb10 100644
--- a/keyboards/dailycraft/stickey4/config.h
+++ b/keyboards/dailycraft/stickey4/config.h
@@ -17,28 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 8
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-#define DIRECT_PINS { \
- { D4, C6, D7, E6, NO_PIN, NO_PIN, NO_PIN, NO_PIN } \
-}
-
-/* COL2ROW, ROW2COL */
-#define DIODE_DIRECTION COL2ROW
-
//#define LED_NUM_LOCK_PIN B0
//#define LED_CAPS_LOCK_PIN B1
//#define LED_SCROLL_LOCK_PIN B2
diff --git a/keyboards/dailycraft/stickey4/info.json b/keyboards/dailycraft/stickey4/info.json
index bbe43f8b13..95d3539456 100644
--- a/keyboards/dailycraft/stickey4/info.json
+++ b/keyboards/dailycraft/stickey4/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["D4", "C6", "D7", "E6", null, null, null, null]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/dekunukem/duckypad/config.h b/keyboards/dekunukem/duckypad/config.h
index 6b6bd14445..cbf99d1f5d 100644
--- a/keyboards/dekunukem/duckypad/config.h
+++ b/keyboards/dekunukem/duckypad/config.h
@@ -20,12 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 17
-
-#define DIRECT_PINS {{ B13, B14, B15, A8, A15, B3, B4, B5, B6, B7, C13, C14, C15, F0, F1, A1, A2 }}
-
#define RGB_DI_PIN A10
#define RGBLED_NUM 15
#define RGB_MATRIX_LED_COUNT 15
diff --git a/keyboards/dekunukem/duckypad/info.json b/keyboards/dekunukem/duckypad/info.json
index fa31c1df22..06c2727080 100644
--- a/keyboards/dekunukem/duckypad/info.json
+++ b/keyboards/dekunukem/duckypad/info.json
@@ -10,6 +10,11 @@
},
"processor": "STM32F072",
"bootloader": "stm32-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["B13", "B14", "B15", "A8", "A15", "B3", "B4", "B5", "B6", "B7", "C13", "C14", "C15", "F0", "F1", "A1", "A2"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/ferris/sweep/config.h b/keyboards/ferris/sweep/config.h
index 789211e461..d59c8bb414 100644
--- a/keyboards/ferris/sweep/config.h
+++ b/keyboards/ferris/sweep/config.h
@@ -19,25 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 8
-#define MATRIX_COLS 5
-
-#define DIRECT_PINS { \
- { E6, F7, F6, F5, F4 }, \
- { B1, B3, B2, B6, D3 }, \
- { D1, D0, D4, C6, D7 }, \
- { B4, B5, NO_PIN, NO_PIN, NO_PIN } \
-}
-
-#define DIRECT_PINS_RIGHT { \
- { F4, F5, F6, F7, E6 }, \
- { D3, B6, B2, B3, B1 }, \
- { D7, C6, D4, D0, D1 }, \
- { B5, B4, NO_PIN, NO_PIN, NO_PIN } \
-}
-
/* serial.c configuration for split keyboard */
#define SOFT_SERIAL_PIN D2
diff --git a/keyboards/ferris/sweep/info.json b/keyboards/ferris/sweep/info.json
index b906014d6f..7174eb52b4 100644
--- a/keyboards/ferris/sweep/info.json
+++ b/keyboards/ferris/sweep/info.json
@@ -7,5 +7,25 @@
"device_version": "0.0.1"
},
"processor": "atmega32u4",
- "bootloader": "caterina"
+ "bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["E6", "F7", "F6", "F5", "F4"],
+ ["B1", "B3", "B2", "B6", "D3"],
+ ["D1", "D0", "D4", "C6", "D7"],
+ ["B4", "B5", null, null, null]
+ ]
+ },
+ "split": {
+ "matrix_pins": {
+ "right": {
+ "direct": [
+ ["F4", "F5", "F6", "F7", "E6"],
+ ["D3", "B6", "B2", "B3", "B1"],
+ ["D7", "C6", "D4", "D0", "D1"],
+ ["B5", "B4", null, null, null]
+ ]
+ }
+ }
+ }
}
diff --git a/keyboards/geekboards/macropad_v2/config.h b/keyboards/geekboards/macropad_v2/config.h
index ec6cc2949e..eb9850804f 100644
--- a/keyboards/geekboards/macropad_v2/config.h
+++ b/keyboards/geekboards/macropad_v2/config.h
@@ -14,12 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 4
-
-#define DIRECT_PINS {{B13, B15, B3, B5}, {B12, B14, A13, B7}}
-
#define RGBLED_NUM 42
#define RGB_MATRIX_LED_COUNT 42
#define RGB_DI_PIN A7
diff --git a/keyboards/geekboards/macropad_v2/info.json b/keyboards/geekboards/macropad_v2/info.json
index 2a18038e4f..b84877a8dc 100644
--- a/keyboards/geekboards/macropad_v2/info.json
+++ b/keyboards/geekboards/macropad_v2/info.json
@@ -10,6 +10,12 @@
},
"processor": "STM32F072",
"bootloader": "stm32-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["B13", "B15", "B3", "B5"],
+ ["B12", "B14", "A13", "B7"]
+ ]
+ },
"debounce": 3,
"layouts": {
"LAYOUT_ortho_2x4": {
diff --git a/keyboards/handwired/aball/config.h b/keyboards/handwired/aball/config.h
index 32d16d82f9..cbe0c8b33e 100644
--- a/keyboards/handwired/aball/config.h
+++ b/keyboards/handwired/aball/config.h
@@ -17,12 +17,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 1
-
-#define DIRECT_PINS {{NO_PIN}}
-
#define ADNS9800_CS_PIN F7
#define POINTING_DEVICE_INVERT_X
diff --git a/keyboards/handwired/aball/info.json b/keyboards/handwired/aball/info.json
index cb34aa7034..84d277c136 100644
--- a/keyboards/handwired/aball/info.json
+++ b/keyboards/handwired/aball/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ [null]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/handwired/bdn9_ble/config.h b/keyboards/handwired/bdn9_ble/config.h
index 32d082a00b..2dc8bb5327 100644
--- a/keyboards/handwired/bdn9_ble/config.h
+++ b/keyboards/handwired/bdn9_ble/config.h
@@ -17,18 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 3
-#define MATRIX_COLS 3
-
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
- { D1, D0, C6 }, \
- { D7, B5, B6 }, \
- { B7, D6, F7 } \
-}
-
#define BACKLIGHT_PIN F6
#define BACKLIGHT_LEVELS 5
diff --git a/keyboards/handwired/bdn9_ble/info.json b/keyboards/handwired/bdn9_ble/info.json
index 3d37d12d75..359939713a 100644
--- a/keyboards/handwired/bdn9_ble/info.json
+++ b/keyboards/handwired/bdn9_ble/info.json
@@ -10,6 +10,13 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D1", "D0", "C6"],
+ ["D7", "B5", "B6"],
+ ["B7", "D6", "F7"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/handwired/bento/rev1/config.h b/keyboards/handwired/bento/rev1/config.h
index 995a6e4239..497a2deb16 100644
--- a/keyboards/handwired/bento/rev1/config.h
+++ b/keyboards/handwired/bento/rev1/config.h
@@ -16,17 +16,6 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 3
-
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
- { D7, B1, D2 }, \
- { E6, B4, B2 } \
-}
-
#define ENCODERS_PAD_A { D1 }
#define ENCODERS_PAD_B { D0 }
diff --git a/keyboards/handwired/bento/rev1/info.json b/keyboards/handwired/bento/rev1/info.json
index 2f09b8820c..2b3012b399 100644
--- a/keyboards/handwired/bento/rev1/info.json
+++ b/keyboards/handwired/bento/rev1/info.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D7", "B1", "D2"],
+ ["E6", "B4", "B2"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/handwired/dc/mc/001/config.h b/keyboards/handwired/dc/mc/001/config.h
index 9f381ca798..ecc1bc9c52 100644
--- a/keyboards/handwired/dc/mc/001/config.h
+++ b/keyboards/handwired/dc/mc/001/config.h
@@ -17,19 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/*
- BUTTON_MUTE = _BV(4),
- BUTTON_STOP = _BV(0),
- BUTTON_TRACK_PREVIOUS = _BV(1),
- BUTTON_TRACK_NEXT = _BV(2),
- BUTTON_PLAY_PAUSE = _BV(3),
-*/
-#define DIRECT_PINS \
- { \
- { B4, B0, B1, B2, B3 } \
- }
-
/*
RE_CHANNEL_A = _BV(6),
RE_CHANNEL_B = _BV(5),
diff --git a/keyboards/handwired/dc/mc/001/info.json b/keyboards/handwired/dc/mc/001/info.json
index 114c0f2f35..2bcd5ffd92 100644
--- a/keyboards/handwired/dc/mc/001/info.json
+++ b/keyboards/handwired/dc/mc/001/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["B4", "B0", "B1", "B2", "B3"]
+ ]
+ },
"debounce": 50,
"layouts": {
"LAYOUT": {
diff --git a/keyboards/handwired/lemonpad/config.h b/keyboards/handwired/lemonpad/config.h
index 2d978f8931..d1e992c215 100644
--- a/keyboards/handwired/lemonpad/config.h
+++ b/keyboards/handwired/lemonpad/config.h
@@ -16,27 +16,6 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 3
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-
-#define DIRECT_PINS { \
- { E6, D7, C6 }, \
- { B4, B5, D4 } \
-}
-
//#define RGB_DI_PIN E2
//#ifdef RGB_DI_PIN
//# define RGBLED_NUM 16
diff --git a/keyboards/handwired/lemonpad/info.json b/keyboards/handwired/lemonpad/info.json
index 40e3296fd2..9cbcf4f4f7 100644
--- a/keyboards/handwired/lemonpad/info.json
+++ b/keyboards/handwired/lemonpad/info.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["E6", "D7", "C6"],
+ ["B4", "B5", "D4"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/handwired/stream_cheap/2x3/config.h b/keyboards/handwired/stream_cheap/2x3/config.h
index 1ac58c88de..5f36081323 100644
--- a/keyboards/handwired/stream_cheap/2x3/config.h
+++ b/keyboards/handwired/stream_cheap/2x3/config.h
@@ -1,13 +1,5 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 3
-
-/* define direct pins used */
-#define DIRECT_PINS { { D1,C6,B4}, { D0,D4,D7} }
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
diff --git a/keyboards/handwired/stream_cheap/2x3/info.json b/keyboards/handwired/stream_cheap/2x3/info.json
index 8754226f1c..555d9540af 100644
--- a/keyboards/handwired/stream_cheap/2x3/info.json
+++ b/keyboards/handwired/stream_cheap/2x3/info.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D1", "C6", "B4"],
+ ["D0", "D4", "D7"]
+ ]
+ },
"community_layouts": ["ortho_2x3"],
"layouts": {
"LAYOUT_ortho_2x3": {
diff --git a/keyboards/handwired/stream_cheap/2x4/config.h b/keyboards/handwired/stream_cheap/2x4/config.h
index 65701e8d49..5f36081323 100644
--- a/keyboards/handwired/stream_cheap/2x4/config.h
+++ b/keyboards/handwired/stream_cheap/2x4/config.h
@@ -1,16 +1,5 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 4
-
-/* define direct pins used */
-#define DIRECT_PINS \
- { \
- {D1, D0, D4, C6}, { D7, E6, B4, B5 } \
- }
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
diff --git a/keyboards/handwired/stream_cheap/2x4/info.json b/keyboards/handwired/stream_cheap/2x4/info.json
index ae7e361a4d..d298a30c14 100644
--- a/keyboards/handwired/stream_cheap/2x4/info.json
+++ b/keyboards/handwired/stream_cheap/2x4/info.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D1", "D0", "D4", "C6"],
+ ["D7", "E6", "B4", "B5"]
+ ]
+ },
"layouts": {
"LAYOUT_ortho_2x4": {
"layout": [
diff --git a/keyboards/handwired/stream_cheap/2x5/config.h b/keyboards/handwired/stream_cheap/2x5/config.h
index f33fc0f7c2..5f36081323 100644
--- a/keyboards/handwired/stream_cheap/2x5/config.h
+++ b/keyboards/handwired/stream_cheap/2x5/config.h
@@ -1,13 +1,5 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 5
-
-/* define direct pins used */
-#define DIRECT_PINS { { D1,C6,B4,B5,B2}, { D0,D4,D7,E6,B6} }
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
diff --git a/keyboards/handwired/stream_cheap/2x5/info.json b/keyboards/handwired/stream_cheap/2x5/info.json
index b8a4623b64..3a81177f31 100644
--- a/keyboards/handwired/stream_cheap/2x5/info.json
+++ b/keyboards/handwired/stream_cheap/2x5/info.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D1", "C6", "B4", "B5", "B2"],
+ ["D0", "D4", "D7", "E6", "B6"]
+ ]
+ },
"layouts": {
"LAYOUT_ortho_2x5": {
"layout": [
diff --git a/keyboards/ianklug/grooveboard/config.h b/keyboards/ianklug/grooveboard/config.h
index 1a480db11e..d2bd499e0d 100644
--- a/keyboards/ianklug/grooveboard/config.h
+++ b/keyboards/ianklug/grooveboard/config.h
@@ -17,30 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 4
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-//#define MATRIX_ROW_PINS { D0, D5 }
-//#define MATRIX_COL_PINS { F1, F0, B0 }
-#define DIRECT_PINS { \
- { F7, F6, D1, D2 } \
-}
-
-/* COL2ROW, ROW2COL */
-//#define DIODE_DIRECTION COL2ROW
-
//#define LED_NUM_LOCK_PIN B0
//#define LED_CAPS_LOCK_PIN B1
//#define LED_SCROLL_LOCK_PIN B2
diff --git a/keyboards/ianklug/grooveboard/info.json b/keyboards/ianklug/grooveboard/info.json
index c4bd7ab01f..a885514071 100644
--- a/keyboards/ianklug/grooveboard/info.json
+++ b/keyboards/ianklug/grooveboard/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["F7", "F6", "D1", "D2"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/kb_elmo/isolation/config.h b/keyboards/kb_elmo/isolation/config.h
index eb3f40ba79..4aeb5eaa00 100644
--- a/keyboards/kb_elmo/isolation/config.h
+++ b/keyboards/kb_elmo/isolation/config.h
@@ -17,14 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 1
-
-/* direct key pin */
-#define DIRECT_PINS {{ B0 }}
-
/* RGB backlight */
#define RGB_DI_PIN B2
#ifdef RGB_DI_PIN
diff --git a/keyboards/kb_elmo/isolation/info.json b/keyboards/kb_elmo/isolation/info.json
index ef7fb5a14e..262b12056d 100644
--- a/keyboards/kb_elmo/isolation/info.json
+++ b/keyboards/kb_elmo/isolation/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega328p",
"bootloader": "usbasploader",
+ "matrix_pins": {
+ "direct": [
+ ["B0"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/keebio/bamfk1/config.h b/keyboards/keebio/bamfk1/config.h
index 6836443389..de8b594cec 100644
--- a/keyboards/keebio/bamfk1/config.h
+++ b/keyboards/keebio/bamfk1/config.h
@@ -3,19 +3,6 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 4
-
-/*
- * Keyboard Matrix Assignments
- */
-
-#define DIRECT_PINS { \
- { E6, B6, D6, NO_PIN }, \
- { NO_PIN, NO_PIN, NO_PIN, NO_PIN } \
-}
#define AUDIO_PIN C6
#ifdef AUDIO_ENABLE
# define STARTUP_SONG SONG(STARTUP_SOUND)
diff --git a/keyboards/keebio/bamfk1/info.json b/keyboards/keebio/bamfk1/info.json
index fb16f585bb..9390f7d56f 100644
--- a/keyboards/keebio/bamfk1/info.json
+++ b/keyboards/keebio/bamfk1/info.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["E6", "B6", "D6", null],
+ [null, null, null, null]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/keebio/bdn9/rev1/config.h b/keyboards/keebio/bdn9/rev1/config.h
index f075302e87..d34d9756f9 100644
--- a/keyboards/keebio/bdn9/rev1/config.h
+++ b/keyboards/keebio/bdn9/rev1/config.h
@@ -17,18 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 3
-#define MATRIX_COLS 3
-
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
- { D2, D4, F4 }, \
- { D7, B1, B3 }, \
- { E6, B4, B2 } \
-}
-
#define ENCODERS_PAD_A { D0, F6, B6 }
#define ENCODERS_PAD_B { D1, F5, F7 }
diff --git a/keyboards/keebio/bdn9/rev1/info.json b/keyboards/keebio/bdn9/rev1/info.json
index a308d1c87c..e5dea50260 100644
--- a/keyboards/keebio/bdn9/rev1/info.json
+++ b/keyboards/keebio/bdn9/rev1/info.json
@@ -5,5 +5,12 @@
"device_version": "1.0.0"
},
"processor": "atmega32u4",
- "bootloader": "caterina"
+ "bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D2", "D4", "F4"],
+ ["D7", "B1", "B3"],
+ ["E6", "B4", "B2"]
+ ]
+ }
}
diff --git a/keyboards/keebio/bdn9/rev2/config.h b/keyboards/keebio/bdn9/rev2/config.h
index 7a7f356a2e..f30de7e197 100644
--- a/keyboards/keebio/bdn9/rev2/config.h
+++ b/keyboards/keebio/bdn9/rev2/config.h
@@ -17,18 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 3
-#define MATRIX_COLS 3
-
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
- { B12, B5, B6 }, \
- { B14, B4, B7 }, \
- { A3, F1, F0 } \
-}
-
// Left, Right, Middle
#define ENCODERS_PAD_A { A8, B3, A10 }
#define ENCODERS_PAD_B { A4, A15, A9 }
diff --git a/keyboards/keebio/bdn9/rev2/info.json b/keyboards/keebio/bdn9/rev2/info.json
index 04d22a1936..24eebef1a8 100644
--- a/keyboards/keebio/bdn9/rev2/info.json
+++ b/keyboards/keebio/bdn9/rev2/info.json
@@ -5,5 +5,12 @@
"device_version": "2.0.0"
},
"processor": "STM32F072",
- "bootloader": "stm32-dfu"
+ "bootloader": "stm32-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["B12", "B5", "B6"],
+ ["B14", "B4", "B7"],
+ ["A3", "F1", "F0"]
+ ]
+ }
}
diff --git a/keyboards/keebio/choconum/config.h b/keyboards/keebio/choconum/config.h
index 9419fea3cf..38e745515a 100644
--- a/keyboards/keebio/choconum/config.h
+++ b/keyboards/keebio/choconum/config.h
@@ -17,21 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 5
-#define MATRIX_COLS 4
-#define DIRECT_PINS { \
- { B2, B10, B3, B4 }, \
- { B1, B11, A15, B5 }, \
- { B0, A5, B7, F0 }, \
- { A7, A6, B8, B6 }, \
- { A4, A3, B9, F1 } \
-}
-
-/* COL2ROW, ROW2COL*/
-#define DIODE_DIRECTION COL2ROW
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
diff --git a/keyboards/keebio/choconum/info.json b/keyboards/keebio/choconum/info.json
index f92da2ad13..b373df4850 100644
--- a/keyboards/keebio/choconum/info.json
+++ b/keyboards/keebio/choconum/info.json
@@ -10,6 +10,15 @@
},
"processor": "STM32F072",
"bootloader": "stm32-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["B2", "B10", "B3", "B4"],
+ ["B1", "B11", "A15", "B5"],
+ ["B0", "A5", "B7", "F0"],
+ ["A7", "A6", "B8", "B6"],
+ ["A4", "A3", "B9", "F1"]
+ ]
+ },
"community_layouts": ["ortho_5x4", "numpad_5x4"],
"layouts": {
"LAYOUT_numpad_5x4": {
diff --git a/keyboards/keebio/stick/config.h b/keyboards/keebio/stick/config.h
index bc4e214c20..807383befc 100644
--- a/keyboards/keebio/stick/config.h
+++ b/keyboards/keebio/stick/config.h
@@ -17,16 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 12
-
-/* key matrix pins */
-#define DIRECT_PINS { \
- { F4, B6, B5, B4, E6, D7, F6, F7, B1, B3, B2, F5 } \
-}
-
#define ENCODERS_PAD_A { D1, D4 }
#define ENCODERS_PAD_B { D0, C6 }
@@ -103,7 +93,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
# endif
#endif
-/* COL2ROW or ROW2COL */
-#define DIODE_DIRECTION COL2ROW
-
#define TAPPING_TERM 200
diff --git a/keyboards/keebio/stick/info.json b/keyboards/keebio/stick/info.json
index c247e3ae99..ff91ee9f24 100644
--- a/keyboards/keebio/stick/info.json
+++ b/keyboards/keebio/stick/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["F4", "B6", "B5", "B4", "E6", "D7", "F6", "F7", "B1", "B3", "B2", "F5"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/keebio/tukey/config.h b/keyboards/keebio/tukey/config.h
index 79e8b254b3..b62aef8a09 100644
--- a/keyboards/keebio/tukey/config.h
+++ b/keyboards/keebio/tukey/config.h
@@ -17,17 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 2
-
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { { D4, F6 } }
-
-/* COL2ROW, ROW2COL*/
-#define DIODE_DIRECTION COL2ROW
-
#define RGB_DI_PIN D3
#ifdef RGB_DI_PIN
#define RGBLED_NUM 8
diff --git a/keyboards/keebio/tukey/info.json b/keyboards/keebio/tukey/info.json
index 27a5159c0e..2be3e55e70 100644
--- a/keyboards/keebio/tukey/info.json
+++ b/keyboards/keebio/tukey/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D4", "F6"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/keyhive/uno/rev1/config.h b/keyboards/keyhive/uno/rev1/config.h
index 1d5b265ade..7c5e60fdc8 100644
--- a/keyboards/keyhive/uno/rev1/config.h
+++ b/keyboards/keyhive/uno/rev1/config.h
@@ -18,15 +18,6 @@
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 1
-
-/* Uno default pinout */
-#define DIRECT_PINS { \
- { B6 } \
-}
-
#ifdef RGBLIGHT_ENABLE
#define RGB_DI_PIN F6
#define RGBLED_NUM 1
diff --git a/keyboards/keyhive/uno/rev1/info.json b/keyboards/keyhive/uno/rev1/info.json
index 6038321e52..2fc258ee42 100644
--- a/keyboards/keyhive/uno/rev1/info.json
+++ b/keyboards/keyhive/uno/rev1/info.json
@@ -4,5 +4,10 @@
"device_version": "0.0.1"
},
"processor": "atmega32u4",
- "bootloader": "caterina"
+ "bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["B6"]
+ ]
+ }
}
diff --git a/keyboards/keyhive/uno/rev2/config.h b/keyboards/keyhive/uno/rev2/config.h
index 1a03c19ead..b9e3a70286 100644
--- a/keyboards/keyhive/uno/rev2/config.h
+++ b/keyboards/keyhive/uno/rev2/config.h
@@ -22,15 +22,6 @@
#define ENCODERS_PAD_A { B2 }
#define ENCODERS_PAD_B { B3 }
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 1
-
-/* Uno default pinout */
-#define DIRECT_PINS { \
- { D0 } \
-}
-
#ifdef RGBLIGHT_ENABLE
#define RGB_DI_PIN D1
#define RGBLED_NUM 1
diff --git a/keyboards/keyhive/uno/rev2/info.json b/keyboards/keyhive/uno/rev2/info.json
index 811d052ac3..2ea14e8aeb 100644
--- a/keyboards/keyhive/uno/rev2/info.json
+++ b/keyboards/keyhive/uno/rev2/info.json
@@ -4,5 +4,10 @@
"device_version": "0.0.2"
},
"processor": "atmega32u4",
- "bootloader": "caterina"
+ "bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D0"]
+ ]
+ }
}
diff --git a/keyboards/ktec/staryu/config.h b/keyboards/ktec/staryu/config.h
index 3b0cb8f330..1826763cbf 100755
--- a/keyboards/ktec/staryu/config.h
+++ b/keyboards/ktec/staryu/config.h
@@ -16,17 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 3
-
-/* key matrix pins */
-#define DIRECT_PINS { \
- { NO_PIN, D0, D1 }, \
- { D4, D3, D2 }, \
-}
-
#define RGB_DI_PIN C6
#define RGBLED_NUM 1 // Number of LEDs
#define RGBLIGHT_EFFECT_BREATHING
diff --git a/keyboards/ktec/staryu/info.json b/keyboards/ktec/staryu/info.json
index 392610c98a..e222923a23 100644
--- a/keyboards/ktec/staryu/info.json
+++ b/keyboards/ktec/staryu/info.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u2",
"bootloader": "lufa-dfu",
+ "matrix_pins": {
+ "direct": [
+ [null, "D0", "D1"],
+ ["D4", "D3", "D2"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [{"x":1, "y":0}, {"x":2, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}]
diff --git a/keyboards/leafcutterlabs/bigknob/config.h b/keyboards/leafcutterlabs/bigknob/config.h
index 13a33aaabc..8a23910956 100644
--- a/keyboards/leafcutterlabs/bigknob/config.h
+++ b/keyboards/leafcutterlabs/bigknob/config.h
@@ -17,28 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 5
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- * NO_DIODE = switches are directly connected to AVR pins
- *
-*/
-
-// Srating with closest to USB port
-#define DIRECT_PINS { \
- { B7, D4, D6, F6, F7} \
-}
-
/* rotary encoder 1,2,3 closest to usb port is 0*/
#define ENCODERS_PAD_A { D0}
#define ENCODERS_PAD_B { D2}
diff --git a/keyboards/leafcutterlabs/bigknob/info.json b/keyboards/leafcutterlabs/bigknob/info.json
index 5933c6301f..ac8f8077d3 100644
--- a/keyboards/leafcutterlabs/bigknob/info.json
+++ b/keyboards/leafcutterlabs/bigknob/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["B7", "D4", "D6", "F6", "F7"]
+ ]
+ },
"layouts": {
"LAYOUT_ortho_1x5": {
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}]
diff --git a/keyboards/littlealby/mute/config.h b/keyboards/littlealby/mute/config.h
index fa6ee15f1c..343830cf87 100644
--- a/keyboards/littlealby/mute/config.h
+++ b/keyboards/littlealby/mute/config.h
@@ -17,19 +17,6 @@
#define USB_MAX_POWER_CONSUMPTION 100
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 1
-
-/* Default pinout */
-/* See arduino micro pinout: https://content.arduino.cc/assets/Pinout-Micro_latest.png
- * for pins e.g.
- * PB5 = digital pin 9 / analog pin 9
- */
-#define DIRECT_PINS { \
- {B5} \
-}
-
#ifdef RGBLIGHT_ENABLE
#define RGB_DI_PIN B6
#define RGBLED_NUM 1
diff --git a/keyboards/littlealby/mute/info.json b/keyboards/littlealby/mute/info.json
index 02348599e5..ed6761b7a9 100644
--- a/keyboards/littlealby/mute/info.json
+++ b/keyboards/littlealby/mute/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["B5"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [ {"x": 0, "y": 0 }]
diff --git a/keyboards/macro3/config.h b/keyboards/macro3/config.h
index 81ff5f5223..714f796f48 100644
--- a/keyboards/macro3/config.h
+++ b/keyboards/macro3/config.h
@@ -5,15 +5,5 @@
#pragma once
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 4
-
-/* key matrix pins */
-#define DIRECT_PINS { \
- { D7, C6, D4, D1 }, \
- { B1, B4, B5, B3 } \
-}
-
#define ENCODERS_PAD_A { D2, F7 }
#define ENCODERS_PAD_B { D3, F6 }
diff --git a/keyboards/macro3/info.json b/keyboards/macro3/info.json
index 830abdb9e9..d8479b2a00 100644
--- a/keyboards/macro3/info.json
+++ b/keyboards/macro3/info.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["D7", "C6", "D4", "D1"],
+ ["B1", "B4", "B5", "B3"]
+ ]
+ },
"layout_aliases": {
"LAYOUT": "LAYOUT_ortho_2x4"
},
diff --git a/keyboards/makeymakey/config.h b/keyboards/makeymakey/config.h
index 07221e385a..c1b43dc834 100644
--- a/keyboards/makeymakey/config.h
+++ b/keyboards/makeymakey/config.h
@@ -16,18 +16,6 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 3
-#define MATRIX_COLS 6
-
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
- { D6, B4, C7, B1, E6, D7 }, \
- { C6, D4, D0, D1, D2, D2 }, \
- { F0, F1, F5, F5, F6, F7 } \
-}
-
/* LEDs Pins */
#define LED_PINS 5
#define LED_PINS_HW {B5, B6, B7, B3, B2}
diff --git a/keyboards/makeymakey/info.json b/keyboards/makeymakey/info.json
index f8c83898a4..c3114dd744 100644
--- a/keyboards/makeymakey/info.json
+++ b/keyboards/makeymakey/info.json
@@ -10,6 +10,13 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D6", "B4", "C7", "B1", "E6", "D7"],
+ ["C6", "D4", "D0", "D1", "D2", "D2"],
+ ["F0", "F1", "F5", "F5", "F6", "F7"]
+ ]
+ },
"debounce": 10,
"layouts": {
"LAYOUT": {
diff --git a/keyboards/miniaxe/config.h b/keyboards/miniaxe/config.h
index c8afd9e752..daa0bc4d86 100644
--- a/keyboards/miniaxe/config.h
+++ b/keyboards/miniaxe/config.h
@@ -17,34 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 8
-#define MATRIX_COLS 5
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- * NO_DIODE = switches are directly connected to AVR pins
- *
-*/
-// #define MATRIX_ROW_PINS { D0, D5 }
-// #define MATRIX_COL_PINS { F1, F0, B0 }
-#define DIRECT_PINS { \
- { F1, E6, B0, B2, B3 }, \
- { F5, F0, B1, B7, D2 }, \
- { F6, F7, C7, D5, D3 }, \
- { B5, C6, B6, NO_PIN, NO_PIN } \
-}
-
-/* COL2ROW, ROW2COL*/
-////#define DIODE_DIRECTION
-
/* Uncomment below if use underglow */
#define RGB_DI_PIN F4
#ifdef RGB_DI_PIN
diff --git a/keyboards/miniaxe/info.json b/keyboards/miniaxe/info.json
index 3c366ed6f2..a36e446912 100644
--- a/keyboards/miniaxe/info.json
+++ b/keyboards/miniaxe/info.json
@@ -10,6 +10,14 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["F1", "E6", "B0", "B2", "B3"],
+ ["F5", "F0", "B1", "B7", "D2"],
+ ["F6", "F7", "C7", "D5", "D3"],
+ ["B5", "C6", "B6", null, null]
+ ]
+ },
"community_layouts": ["split_3x5_3"],
"layouts": {
"LAYOUT_split_3x5_3": {
diff --git a/keyboards/minimacro5/config.h b/keyboards/minimacro5/config.h
index fd1028cb1c..351fb8a5a5 100644
--- a/keyboards/minimacro5/config.h
+++ b/keyboards/minimacro5/config.h
@@ -17,27 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 5
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- * NO_DIODE = switches are directly connected to AVR pins
- *
-*/
-// #define MATRIX_ROW_PINS { D0, D5 }
-// #define MATRIX_COL_PINS { F1, F0, B0 }
-#define DIRECT_PINS { \
- { F4, B6, B2, D7, B4 } \
-}
//speed for double tap
#define TAPPING_TERM 200
diff --git a/keyboards/minimacro5/info.json b/keyboards/minimacro5/info.json
index ad17e89c69..1ecd8f7b8c 100644
--- a/keyboards/minimacro5/info.json
+++ b/keyboards/minimacro5/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["F4", "B6", "B2", "D7", "B4"]
+ ]
+ },
"layouts": {
"LAYOUT_ortho_1x5": {
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":5, "y":0}]
diff --git a/keyboards/mixi/config.h b/keyboards/mixi/config.h
index 63cc5f9da6..e6b2ef0961 100644
--- a/keyboards/mixi/config.h
+++ b/keyboards/mixi/config.h
@@ -1,17 +1,5 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 3
-#define MATRIX_COLS 3
-
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
- { D1, D4, F4 }, \
- { D0, B4, F5 }, \
- { C6, F7, B6 } \
-}
-
#define ENCODERS_PAD_A { D7, B1 }
#define ENCODERS_PAD_B { E6, B3 }
diff --git a/keyboards/mixi/info.json b/keyboards/mixi/info.json
index 17503123e3..cfc774bc2b 100644
--- a/keyboards/mixi/info.json
+++ b/keyboards/mixi/info.json
@@ -10,6 +10,13 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D1", "D4", "F4"],
+ ["D0", "B4", "F5"],
+ ["C6", "F7", "B6"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/novelkeys/nk1/config.h b/keyboards/novelkeys/nk1/config.h
index 88b9c7abb8..c168aca492 100644
--- a/keyboards/novelkeys/nk1/config.h
+++ b/keyboards/novelkeys/nk1/config.h
@@ -17,16 +17,6 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 1
-
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
- { D4 } \
-}
-
#define RGB_DI_PIN F0
#ifdef RGB_DI_PIN
#define RGBLED_NUM 9
diff --git a/keyboards/novelkeys/nk1/info.json b/keyboards/novelkeys/nk1/info.json
index 137608c978..c9fa789b70 100755
--- a/keyboards/novelkeys/nk1/info.json
+++ b/keyboards/novelkeys/nk1/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["D4"]
+ ]
+ },
"community_layouts": ["ortho_1x1"],
"layouts": {
"LAYOUT_ortho_1x1": {
diff --git a/keyboards/nullbitsco/scramble/v1/config.h b/keyboards/nullbitsco/scramble/v1/config.h
index 6f512db4c5..6a7742ce87 100644
--- a/keyboards/nullbitsco/scramble/v1/config.h
+++ b/keyboards/nullbitsco/scramble/v1/config.h
@@ -19,13 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 3
-
-#define DIRECT_PINS {{D4,D5,B1}, {C3,C2,C1}}
-
/* Optional encoder pins */
#define ENCODERS_PAD_A { D6 }
#define ENCODERS_PAD_B { D7 }
diff --git a/keyboards/nullbitsco/scramble/v1/info.json b/keyboards/nullbitsco/scramble/v1/info.json
index 11307eba89..0acb699373 100644
--- a/keyboards/nullbitsco/scramble/v1/info.json
+++ b/keyboards/nullbitsco/scramble/v1/info.json
@@ -1,4 +1,10 @@
{
"processor": "atmega328p",
- "bootloader": "usbasploader"
+ "bootloader": "usbasploader",
+ "matrix_pins": {
+ "direct": [
+ ["D4", "D5", "B1"],
+ ["C3", "C2", "C1"]
+ ]
+ }
}
diff --git a/keyboards/nullbitsco/scramble/v2/config.h b/keyboards/nullbitsco/scramble/v2/config.h
index b4d7820aad..dd2ae62749 100644
--- a/keyboards/nullbitsco/scramble/v2/config.h
+++ b/keyboards/nullbitsco/scramble/v2/config.h
@@ -19,12 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 3
-
-#define DIRECT_PINS {{GP6,GP8,GP10}, {GP29,GP28,GP22}}
-
/* Optional encoder pins */
#define ENCODERS_PAD_A { GP24 }
#define ENCODERS_PAD_B { GP25 }
diff --git a/keyboards/nullbitsco/scramble/v2/info.json b/keyboards/nullbitsco/scramble/v2/info.json
index 87b7fcf7ec..ba27823b36 100644
--- a/keyboards/nullbitsco/scramble/v2/info.json
+++ b/keyboards/nullbitsco/scramble/v2/info.json
@@ -1,4 +1,10 @@
{
"processor": "RP2040",
- "bootloader": "rp2040"
+ "bootloader": "rp2040",
+ "matrix_pins": {
+ "direct": [
+ ["GP6", "GP8", "GP10"],
+ ["GP29", "GP28", "GP22"]
+ ]
+ }
}
diff --git a/keyboards/obosob/steal_this_keyboard/config.h b/keyboards/obosob/steal_this_keyboard/config.h
index 1b61491402..bf4064bd31 100644
--- a/keyboards/obosob/steal_this_keyboard/config.h
+++ b/keyboards/obosob/steal_this_keyboard/config.h
@@ -16,36 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 8
-#define MATRIX_COLS 5
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- * NO_DIODE = switches are directly connected to AVR pins
- *
-*/
-#define DIRECT_PINS { \
- { F4, F7, B2, D1, D7 }, \
- { F5, B1, B6, D0, E6 }, \
- { F6, B3, D3, D4, B4 }, \
- { C6, B5, NO_PIN, NO_PIN, NO_PIN } \
-}
-
-#define DIRECT_PINS_RIGHT { \
- { D7, D1, B2, F7, F4}, \
- { E6, D0, B6, B1, F5 }, \
- { B4, D4, D3, B3, F6 }, \
- { B5, C6, NO_PIN, NO_PIN, NO_PIN } \
-}
-
/* serial.c configuration for split keyboard */
#define SOFT_SERIAL_PIN D2
diff --git a/keyboards/obosob/steal_this_keyboard/info.json b/keyboards/obosob/steal_this_keyboard/info.json
index 1cba614217..5a80a0b17c 100644
--- a/keyboards/obosob/steal_this_keyboard/info.json
+++ b/keyboards/obosob/steal_this_keyboard/info.json
@@ -10,6 +10,26 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["F4", "F7", "B2", "D1", "D7"],
+ ["F5", "B1", "B6", "D0", "E6"],
+ ["F6", "B3", "D3", "D4", "B4"],
+ ["C6", "B5", null, null, null]
+ ]
+ },
+ "split": {
+ "matrix_pins": {
+ "right": {
+ "direct": [
+ ["D7", "D1", "B2", "F7", "F4"],
+ ["E6", "D0", "B6", "B1", "F5"],
+ ["B4", "D4", "D3", "B3", "F6"],
+ ["B5", "C6", null, null, null]
+ ]
+ }
+ }
+ },
"community_layouts": [
"split_3x5_2"
],
diff --git a/keyboards/peranekofactory/tone/rev1/config.h b/keyboards/peranekofactory/tone/rev1/config.h
index b7d4b46921..edf74052c5 100644
--- a/keyboards/peranekofactory/tone/rev1/config.h
+++ b/keyboards/peranekofactory/tone/rev1/config.h
@@ -17,29 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 8
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-
-#define DIRECT_PINS { \
- { D4, C6, D7, E6, F6, F7, B1, B3 } \
-}
-
-/* COL2ROW, ROW2COL */
-#define DIODE_DIRECTION COL2ROW
-
/* Rotary encoder define*/
#define ENCODERS_PAD_A { B5 }
#define ENCODERS_PAD_B { B4 }
diff --git a/keyboards/peranekofactory/tone/rev1/info.json b/keyboards/peranekofactory/tone/rev1/info.json
index a5ad8532b1..16f1db0328 100644
--- a/keyboards/peranekofactory/tone/rev1/info.json
+++ b/keyboards/peranekofactory/tone/rev1/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D4", "C6", "D7", "E6", "F6", "F7", "B1", "B3"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}]
diff --git a/keyboards/peranekofactory/tone/rev2/config.h b/keyboards/peranekofactory/tone/rev2/config.h
index 93a5eb8145..4068b9ed0e 100644
--- a/keyboards/peranekofactory/tone/rev2/config.h
+++ b/keyboards/peranekofactory/tone/rev2/config.h
@@ -17,29 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 8
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-
-#define DIRECT_PINS { \
- { D4, C6, D7, E6, F6, F7, B1, B3 } \
-}
-
-/* COL2ROW, ROW2COL */
-#define DIODE_DIRECTION COL2ROW
-
/* Rotary encoder define*/
#define ENCODERS_PAD_A { B5 }
#define ENCODERS_PAD_B { B4 }
diff --git a/keyboards/peranekofactory/tone/rev2/info.json b/keyboards/peranekofactory/tone/rev2/info.json
index a5ad8532b1..16f1db0328 100644
--- a/keyboards/peranekofactory/tone/rev2/info.json
+++ b/keyboards/peranekofactory/tone/rev2/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D4", "C6", "D7", "E6", "F6", "F7", "B1", "B3"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}]
diff --git a/keyboards/ploopyco/mouse/config.h b/keyboards/ploopyco/mouse/config.h
index e59a05ce30..2becbba727 100644
--- a/keyboards/ploopyco/mouse/config.h
+++ b/keyboards/ploopyco/mouse/config.h
@@ -18,26 +18,6 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 8
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-#define DIRECT_PINS \
- { \
- { D4, D2, E6, B6, D7, C6, C7, B7 } \
- }
-
// These pins are not broken out, and cannot be used normally.
// They are set as output and pulled high, by default
#define UNUSABLE_PINS \
diff --git a/keyboards/ploopyco/mouse/info.json b/keyboards/ploopyco/mouse/info.json
index 3550c1d5a3..f9a3e32f41 100644
--- a/keyboards/ploopyco/mouse/info.json
+++ b/keyboards/ploopyco/mouse/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["D4", "D2", "E6", "B6", "D7", "C6", "C7", "B7"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/ploopyco/trackball/rev1/config.h b/keyboards/ploopyco/trackball/rev1/config.h
index 3db085baf2..35ab215341 100644
--- a/keyboards/ploopyco/trackball/rev1/config.h
+++ b/keyboards/ploopyco/trackball/rev1/config.h
@@ -18,21 +18,6 @@
#pragma once
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-#define DIRECT_PINS \
- { \
- { D4, D2, E6, B5, D7 } \
- }
-
// These pins are not broken out, and cannot be used normally.
// They are set as output and pulled high, by default
#define UNUSABLE_PINS \
diff --git a/keyboards/ploopyco/trackball/rev1/info.json b/keyboards/ploopyco/trackball/rev1/info.json
index 4369a04103..8e372e7c2b 100644
--- a/keyboards/ploopyco/trackball/rev1/info.json
+++ b/keyboards/ploopyco/trackball/rev1/info.json
@@ -1,4 +1,9 @@
{
"processor": "atmega32u4",
- "bootloader": "caterina"
+ "bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D4", "D2", "E6", "B5", "D7"]
+ ]
+ }
}
diff --git a/keyboards/ploopyco/trackball/rev1_005/config.h b/keyboards/ploopyco/trackball/rev1_005/config.h
index 321e3004d1..fcf51c4c1b 100644
--- a/keyboards/ploopyco/trackball/rev1_005/config.h
+++ b/keyboards/ploopyco/trackball/rev1_005/config.h
@@ -18,21 +18,6 @@
#pragma once
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-#define DIRECT_PINS \
- { \
- { D4, D2, E6, B6, D7 } \
- }
-
// These pins are not broken out, and cannot be used normally.
// They are set as output and pulled high, by default
#define UNUSABLE_PINS \
diff --git a/keyboards/ploopyco/trackball/rev1_005/info.json b/keyboards/ploopyco/trackball/rev1_005/info.json
index 042c41f34d..b963f8842a 100644
--- a/keyboards/ploopyco/trackball/rev1_005/info.json
+++ b/keyboards/ploopyco/trackball/rev1_005/info.json
@@ -1,4 +1,9 @@
{
"processor": "atmega32u4",
- "bootloader": "atmel-dfu"
+ "bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["D4", "D2", "E6", "B6", "D7"]
+ ]
+ }
}
diff --git a/keyboards/ploopyco/trackball_mini/rev1_001/config.h b/keyboards/ploopyco/trackball_mini/rev1_001/config.h
index d4c9d23bec..485f8e3485 100644
--- a/keyboards/ploopyco/trackball_mini/rev1_001/config.h
+++ b/keyboards/ploopyco/trackball_mini/rev1_001/config.h
@@ -19,21 +19,6 @@
#pragma once
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-#define DIRECT_PINS \
- { \
- { D4, D2, E6, B6, D7 } \
- }
-
// These pins are not broken out, and cannot be used normally.
// They are set as output and pulled high, by default
#define UNUSABLE_PINS \
diff --git a/keyboards/ploopyco/trackball_mini/rev1_001/info.json b/keyboards/ploopyco/trackball_mini/rev1_001/info.json
new file mode 100644
index 0000000000..20c192f869
--- /dev/null
+++ b/keyboards/ploopyco/trackball_mini/rev1_001/info.json
@@ -0,0 +1,7 @@
+{
+ "matrix_pins": {
+ "direct": [
+ ["D4", "D2", "E6", "B6", "D7"]
+ ]
+ }
+}
diff --git a/keyboards/ploopyco/trackball_mini/rev1_002/config.h b/keyboards/ploopyco/trackball_mini/rev1_002/config.h
index d4c9d23bec..485f8e3485 100644
--- a/keyboards/ploopyco/trackball_mini/rev1_002/config.h
+++ b/keyboards/ploopyco/trackball_mini/rev1_002/config.h
@@ -19,21 +19,6 @@
#pragma once
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-#define DIRECT_PINS \
- { \
- { D4, D2, E6, B6, D7 } \
- }
-
// These pins are not broken out, and cannot be used normally.
// They are set as output and pulled high, by default
#define UNUSABLE_PINS \
diff --git a/keyboards/ploopyco/trackball_mini/rev1_002/info.json b/keyboards/ploopyco/trackball_mini/rev1_002/info.json
new file mode 100644
index 0000000000..20c192f869
--- /dev/null
+++ b/keyboards/ploopyco/trackball_mini/rev1_002/info.json
@@ -0,0 +1,7 @@
+{
+ "matrix_pins": {
+ "direct": [
+ ["D4", "D2", "E6", "B6", "D7"]
+ ]
+ }
+}
diff --git a/keyboards/ploopyco/trackball_nano/rev1_001/config.h b/keyboards/ploopyco/trackball_nano/rev1_001/config.h
index 3bde88487a..14fcb8ca95 100644
--- a/keyboards/ploopyco/trackball_nano/rev1_001/config.h
+++ b/keyboards/ploopyco/trackball_nano/rev1_001/config.h
@@ -19,18 +19,6 @@
#pragma once
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-#define DIRECT_PINS {{NO_PIN}}
-
// These pins are not broken out, and cannot be used normally.
// They are set as output and pulled high, by default
#define UNUSABLE_PINS \
diff --git a/keyboards/ploopyco/trackball_nano/rev1_001/info.json b/keyboards/ploopyco/trackball_nano/rev1_001/info.json
new file mode 100644
index 0000000000..abf5f9fe74
--- /dev/null
+++ b/keyboards/ploopyco/trackball_nano/rev1_001/info.json
@@ -0,0 +1,7 @@
+{
+ "matrix_pins": {
+ "direct": [
+ [null]
+ ]
+ }
+}
diff --git a/keyboards/ryanbaekr/rb1/config.h b/keyboards/ryanbaekr/rb1/config.h
index d6e311bb03..9024fa25d5 100644
--- a/keyboards/ryanbaekr/rb1/config.h
+++ b/keyboards/ryanbaekr/rb1/config.h
@@ -17,16 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * DIRECT: AVR pins used for keys
- *
- */
-#define DIRECT_PINS {{ B1 }}
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
diff --git a/keyboards/ryanbaekr/rb1/info.json b/keyboards/ryanbaekr/rb1/info.json
index 47ee8c7d2b..f610428f68 100644
--- a/keyboards/ryanbaekr/rb1/info.json
+++ b/keyboards/ryanbaekr/rb1/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["B1"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/sendyyeah/pix/config.h b/keyboards/sendyyeah/pix/config.h
index 88242cd80c..03b5e62bb5 100644
--- a/keyboards/sendyyeah/pix/config.h
+++ b/keyboards/sendyyeah/pix/config.h
@@ -16,19 +16,9 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 5
-
#define OLED_FONT_H "keymaps/default/glcdfont.c"
#define OLED_TIMEOUT 600000 // Turn of after 10 minutes
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
- { C6, D7, E6, B4, F6 }, \
-}
-
#define ENCODERS_PAD_A { B1 }
#define ENCODERS_PAD_B { B3 }
diff --git a/keyboards/sendyyeah/pix/info.json b/keyboards/sendyyeah/pix/info.json
index 62e387e16b..d3e5b413a1 100644
--- a/keyboards/sendyyeah/pix/info.json
+++ b/keyboards/sendyyeah/pix/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["C6", "D7", "E6", "B4", "F6"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/sergiopoverony/creator_pro/config.h b/keyboards/sergiopoverony/creator_pro/config.h
index 0f4ec182a4..08941df1ac 100644
--- a/keyboards/sergiopoverony/creator_pro/config.h
+++ b/keyboards/sergiopoverony/creator_pro/config.h
@@ -16,16 +16,6 @@
#pragma once
-/* key matrix size pins */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 9
-#define DIRECT_PINS { \
- { D1, D4, C6, D7, \
- E6, \
- B2, B3, B1, F7 } \
-}
-
-
/*led layout indication pins*/
#define RED_LED D0
#define BLUE_LED B5
diff --git a/keyboards/sergiopoverony/creator_pro/info.json b/keyboards/sergiopoverony/creator_pro/info.json
index a59d0824fb..5b7a061e24 100644
--- a/keyboards/sergiopoverony/creator_pro/info.json
+++ b/keyboards/sergiopoverony/creator_pro/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D1", "D4", "C6", "D7", "E6", "B2", "B3", "B1", "F7"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/spaceman/2_milk/config.h b/keyboards/spaceman/2_milk/config.h
index e631c03dff..59ffda45c0 100644
--- a/keyboards/spaceman/2_milk/config.h
+++ b/keyboards/spaceman/2_milk/config.h
@@ -15,16 +15,6 @@
*/
#pragma once
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 1
-
-/* Milk default pinout */
-#define DIRECT_PINS { \
- {D4}, \
- {C6} \
-}
-
#ifdef RGBLIGHT_ENABLE
#define RGB_DI_PIN B6
#define RGBLED_NUM 1
diff --git a/keyboards/spaceman/2_milk/info.json b/keyboards/spaceman/2_milk/info.json
index c7e4c944c7..c1f31a3ba7 100644
--- a/keyboards/spaceman/2_milk/info.json
+++ b/keyboards/spaceman/2_milk/info.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D4"],
+ ["C6"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [ {"x": 0, "y": 0 }, {"x": 0, "y": 1 }]
diff --git a/keyboards/splitkb/zima/config.h b/keyboards/splitkb/zima/config.h
index c4782567ff..777c56465f 100644
--- a/keyboards/splitkb/zima/config.h
+++ b/keyboards/splitkb/zima/config.h
@@ -17,21 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 4
-#define MATRIX_COLS 3
-
-/*
- * Keyboard Matrix Assignments
- */
-#define DIRECT_PINS { \
- { C6, D6, D5 }, \
- { C7, F7, D4 }, \
- { E6, F5, F6 }, \
- { F0, F1, F4 }, \
-}
-
#define ENCODERS_PAD_A { B4 }
#define ENCODERS_PAD_B { D7 }
diff --git a/keyboards/splitkb/zima/info.json b/keyboards/splitkb/zima/info.json
index 744efd5b76..a38404cc97 100644
--- a/keyboards/splitkb/zima/info.json
+++ b/keyboards/splitkb/zima/info.json
@@ -10,6 +10,14 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["C6", "D6", "D5"],
+ ["C7", "F7", "D4"],
+ ["E6", "F5", "F6"],
+ ["F0", "F1", "F4"]
+ ]
+ },
"layouts": {
"LAYOUT_ortho_4x3": {
"layout": [
diff --git a/keyboards/tominabox1/bigboy/config.h b/keyboards/tominabox1/bigboy/config.h
index e7b0d17fd7..70d1b76bea 100755
--- a/keyboards/tominabox1/bigboy/config.h
+++ b/keyboards/tominabox1/bigboy/config.h
@@ -16,14 +16,6 @@
#pragma once
-
-/* key matrix size */
-#define DIRECT_PINS { \
- { D0, B1, B0 }, \
- { B7, B2, B3 } \
-}
-
-
#define ENCODERS_PAD_A { C6 }
#define ENCODERS_PAD_B { B6 }
#define ENCODER_RESOLUTION 2
diff --git a/keyboards/tominabox1/bigboy/info.json b/keyboards/tominabox1/bigboy/info.json
index 79150cd3c2..79cf08b39b 100644
--- a/keyboards/tominabox1/bigboy/info.json
+++ b/keyboards/tominabox1/bigboy/info.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["D0", "B1", "B0"],
+ ["B7", "B2", "B3"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [{"label":"0,0", "x":0, "y":0}, {"label":"0,1", "x":1, "y":0}, {"label":"0,2", "x":2, "y":0}, {"label":"1,0", "x":0, "y":1}, {"label":"1,1", "x":1, "y":1}, {"label":"1,2", "x":2, "y":1}]
diff --git a/keyboards/ungodly/nines/config.h b/keyboards/ungodly/nines/config.h
index 2375d9b63f..85880e4e63 100644
--- a/keyboards/ungodly/nines/config.h
+++ b/keyboards/ungodly/nines/config.h
@@ -15,18 +15,6 @@
*/
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 3
-#define MATRIX_COLS 3
-
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
- { F4, F5, F6 }, \
- { F7, B1, B3 }, \
- { B2, B6, B5 } \
-}
-
/* Rotary Encoder Assignments */
#define ENCODERS_PAD_A { C6, E6 }
#define ENCODERS_PAD_B { D7, B4 }
diff --git a/keyboards/ungodly/nines/info.json b/keyboards/ungodly/nines/info.json
index ee71e97cf5..1e7dabe367 100644
--- a/keyboards/ungodly/nines/info.json
+++ b/keyboards/ungodly/nines/info.json
@@ -10,6 +10,13 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["F4", "F5", "F6"],
+ ["F7", "B1", "B3"],
+ ["B2", "B6", "B5"]
+ ]
+ },
"layouts": {
"LAYOUT_ortho_3x3": {
"layout": [
diff --git a/keyboards/winkeys/mini_winni/config.h b/keyboards/winkeys/mini_winni/config.h
index 05383c05a5..36fc5c6200 100644
--- a/keyboards/winkeys/mini_winni/config.h
+++ b/keyboards/winkeys/mini_winni/config.h
@@ -18,14 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 2
-#define MATRIX_COLS 4
-
-/* key matrix pins */
-#define DIRECT_PINS { { F4, F5, B4, D7 }, { F6, F7, B6, B5 } }
-
#define RGB_DI_PIN E6
#define RGBLED_NUM 4
#define RGBLIGHT_EFFECT_BREATHING
diff --git a/keyboards/winkeys/mini_winni/info.json b/keyboards/winkeys/mini_winni/info.json
index 10c304db46..b3cba1658c 100644
--- a/keyboards/winkeys/mini_winni/info.json
+++ b/keyboards/winkeys/mini_winni/info.json
@@ -9,6 +9,12 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["F4", "F5", "B4", "D7"],
+ ["F6", "F7", "B6", "B5"]
+ ]
+ },
"layouts": {
"LAYOUT_all": {
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}]
diff --git a/keyboards/winry/winry315/config.h b/keyboards/winry/winry315/config.h
index e43016f62b..5d195be432 100644
--- a/keyboards/winry/winry315/config.h
+++ b/keyboards/winry/winry315/config.h
@@ -3,18 +3,6 @@
#pragma once
-
-// Key matrix size.
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 24
-
-// Key pins (including encoder press switches).
-// The NO_PIN entries are reserved for encoder rotation mappings.
-#define DIRECT_PINS \
- { \
- { F4, C7, D4, D5, D1, F5, C6, D6, D3, D2, F6, B6, D7, B4, B5, B2, D0, E6, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN } \
- }
-
// clang-format off
// Encoder pins.
diff --git a/keyboards/winry/winry315/info.json b/keyboards/winry/winry315/info.json
index 7740c1a3e8..5abc92a455 100644
--- a/keyboards/winry/winry315/info.json
+++ b/keyboards/winry/winry315/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["F4", "C7", "D4", "D5", "D1", "F5", "C6", "D6", "D3", "D2", "F6", "B6", "D7", "B4", "B5", "B2", "D0", "E6", null, null, null, null, null, null]
+ ]
+ },
"layout_aliases": {
"LAYOUT_all": "LAYOUT_top"
},
diff --git a/keyboards/xiudi/xd002/config.h b/keyboards/xiudi/xd002/config.h
index fc84c89bf6..19f01664b2 100644
--- a/keyboards/xiudi/xd002/config.h
+++ b/keyboards/xiudi/xd002/config.h
@@ -15,18 +15,6 @@
*/
#pragma once
-
-/* matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 2
-
-/*
- * Keyboard Matrix Assignments
- *
- * On this board we have direct connection: no diodes.
- */
-#define DIRECT_PINS {{ B0, B1 }}
-
#define RGBLED_NUM 2
#define RGB_DI_PIN B2
diff --git a/keyboards/xiudi/xd002/info.json b/keyboards/xiudi/xd002/info.json
index f06e823a88..4284b0548b 100644
--- a/keyboards/xiudi/xd002/info.json
+++ b/keyboards/xiudi/xd002/info.json
@@ -8,6 +8,11 @@
"pid": "0x0202",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "direct": [
+ ["B0", "B1"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/xiudi/xd004/info.json b/keyboards/xiudi/xd004/info.json
index 2dcbc92637..77f57ce322 100644
--- a/keyboards/xiudi/xd004/info.json
+++ b/keyboards/xiudi/xd004/info.json
@@ -9,6 +9,11 @@
},
"processor": "atmega16u2",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["D3", "D0", "C4", "B4"]
+ ]
+ },
"layouts": {
"LAYOUT_all": {
"layout": [{"label":"L", "x":0, "y":0}, {"label":"O", "x":1, "y":0}, {"label":"V", "x":2, "y":0}, {"label":"E", "x":3, "y":0}]
diff --git a/keyboards/xiudi/xd004/v1/config.h b/keyboards/xiudi/xd004/v1/config.h
index 9a1e233d32..0b4e44336c 100644
--- a/keyboards/xiudi/xd004/v1/config.h
+++ b/keyboards/xiudi/xd004/v1/config.h
@@ -23,29 +23,11 @@ where some things are disabled to save space as well.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 4
-
-/*
- * Keyboard Matrix Assignments
- *
- * On this board we have direct connection: no diodes.
- */
-#define DIRECT_PINS \
- { \
- { D3, D0, C4, B4 } \
- }
-
/* Backlight Setup */
// Looks like each backlight LED is connected to a single output, D5 is the one furtherst away from USB port
#define BACKLIGHT_PIN D5
#define BACKLIGHT_LEVELS 6
-/* COL2ROW or ROW2COL */
-#define DIODE_DIRECTION COL2ROW
-
/* RGB Underglow
This will not be used, as RGBLIGHT_ENABLE is set to 'no' in rules.mk
We do not have enough space in the flash for this at the moment, maybe
diff --git a/keyboards/yatara/drink_me/config.h b/keyboards/yatara/drink_me/config.h
deleted file mode 100644
index 07deaad16a..0000000000
--- a/keyboards/yatara/drink_me/config.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright 2020 Yatara
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-
-/* Key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 4
-
-/* Pinout */
-#define DIRECT_PINS { \
- {B4, B5, B6, B7} \
-}
diff --git a/keyboards/yatara/drink_me/info.json b/keyboards/yatara/drink_me/info.json
index d1d979a4e3..3df62cf378 100644
--- a/keyboards/yatara/drink_me/info.json
+++ b/keyboards/yatara/drink_me/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["B4", "B5", "B6", "B7"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/yeehaw/config.h b/keyboards/yeehaw/config.h
index b763558f36..b14cd03b1b 100644
--- a/keyboards/yeehaw/config.h
+++ b/keyboards/yeehaw/config.h
@@ -15,16 +15,6 @@
*/
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 14
-
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
-{ D2, D4, C6, E6, F5, B1, D3, D7, B4, F6, B3, B5, F7, F4 } \
-}
-
#define ENCODERS_PAD_A { D1 }
#define ENCODERS_PAD_B { D0 }
diff --git a/keyboards/yeehaw/info.json b/keyboards/yeehaw/info.json
index 30a0b1f6cb..98a98cac91 100644
--- a/keyboards/yeehaw/info.json
+++ b/keyboards/yeehaw/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D2", "D4", "C6", "E6", "F5", "B1", "D3", "D7", "B4", "F6", "B3", "B5", "F7", "F4"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [{"label":"VOLU", "x":1, "y":0}, {"label":"VOLD", "x":1, "y":1}, {"label":"M1", "x":2, "y":1.5}, {"label":"UP", "x":3, "y":1.5}, {"label":"MNXT", "x":1, "y":2}, {"label":"M2", "x":4, "y":2}, {"label":"LEFT", "x":2, "y":2.5}, {"label":"DOWN", "x":3, "y":2.5}, {"label":"MO(1)", "x":0, "y":2.75}, {"label":"MPRV", "x":1, "y":3}, {"label":"RIGHT", "x":4, "y":3}, {"label":"MPLY", "x":2, "y":3.5}, {"label":"CTL S", "x":3, "y":3.5}, {"label":"RGB TOG", "x":2.5, "y":4.5}]
diff --git a/keyboards/yushakobo/quick7/config.h b/keyboards/yushakobo/quick7/config.h
index b4040091be..061dfb6dc8 100644
--- a/keyboards/yushakobo/quick7/config.h
+++ b/keyboards/yushakobo/quick7/config.h
@@ -17,36 +17,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 3
-#define MATRIX_COLS 3
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-#define DIRECT_PINS { \
- { D2, D4, F4 }, \
- { D7, B1, B3 }, \
- { E6, B4, B2 }, \
-}
-
#define ENCODERS_PAD_A { D1, F5 }
#define ENCODERS_PAD_B { D0, F6 }
-
-
-
-/* COL2ROW, ROW2COL*/
-#define DIODE_DIRECTION COL2ROW
-
#ifdef RGBLIGHT_ENABLE
# define RGB_DI_PIN D3
# define RGBLED_NUM 13
diff --git a/keyboards/yushakobo/quick7/info.json b/keyboards/yushakobo/quick7/info.json
index d81bd07e1b..6d6d4d6725 100644
--- a/keyboards/yushakobo/quick7/info.json
+++ b/keyboards/yushakobo/quick7/info.json
@@ -10,6 +10,13 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["D2", "D4", "F4"],
+ ["D7", "B1", "B3"],
+ ["E6", "B4", "B2"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/yynmt/acperience12/rev1/config.h b/keyboards/yynmt/acperience12/rev1/config.h
index fb94abb5da..65a752a97f 100644
--- a/keyboards/yynmt/acperience12/rev1/config.h
+++ b/keyboards/yynmt/acperience12/rev1/config.h
@@ -16,12 +16,6 @@
#pragma once
-/* key matrix size */
-#define MATRIX_ROWS 6
-#define MATRIX_COLS 2
-
-#define DIRECT_PINS { { B5, D0 }, { B4, D1 }, { B3, D2 }, { B2, D3 }, { B1, D4 }, { B0, D5 } }
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
diff --git a/keyboards/yynmt/acperience12/rev1/info.json b/keyboards/yynmt/acperience12/rev1/info.json
index 3d8bf426ba..20d4f249c2 100644
--- a/keyboards/yynmt/acperience12/rev1/info.json
+++ b/keyboards/yynmt/acperience12/rev1/info.json
@@ -10,6 +10,16 @@
},
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["B5", "D0"],
+ ["B4", "D1"],
+ ["B3", "D2"],
+ ["B2", "D3"],
+ ["B1", "D4"],
+ ["B0", "D5"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/z12/config.h b/keyboards/z12/config.h
index 0f808ca88a..6ee032f5c8 100644
--- a/keyboards/z12/config.h
+++ b/keyboards/z12/config.h
@@ -20,19 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define ENCODERS_PAD_A { B5, B6 }
#define ENCODERS_PAD_B { B4, B2 }
-/* key matrix size */
-#define MATRIX_ROWS 4
-#define MATRIX_COLS 4
-
-/*Keyboard Matrix Assignments */
-
-#define DIRECT_PINS { \
- { NO_PIN, E6, C6, NO_PIN }, \
- { D2, D7, D4, D3 }, \
- { F7, B1, B3, NO_PIN }, \
- { F6, F5, F4, NO_PIN } \
-}
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
diff --git a/keyboards/z12/info.json b/keyboards/z12/info.json
index 1a7c75b12a..baed03f0fe 100644
--- a/keyboards/z12/info.json
+++ b/keyboards/z12/info.json
@@ -10,6 +10,14 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ [null, "E6", "C6", null],
+ ["D2", "D7", "D4", "D3"],
+ ["F7", "B1", "B3", null],
+ ["F6", "F5", "F4", null]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/z34/config.h b/keyboards/z34/config.h
index b318b75090..2f46a4a04b 100644
--- a/keyboards/z34/config.h
+++ b/keyboards/z34/config.h
@@ -16,27 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 8
-#define MATRIX_COLS 5
-
-/*Keyboard Matrix Assignments */
-
-#define DIRECT_PINS { \
- { C6, F7, F6, F5, F4 }, \
- { D7, B6, B2, B3, B1 }, \
- { E6, D4, D0, D1, D3 }, \
- { B4, B5, NO_PIN, NO_PIN, NO_PIN } \
-}
-
-#define DIRECT_PINS_RIGHT { \
- { F4, F5, F6, F7, C6 }, \
- { B1, B3, B2, B6, D7 }, \
- { D3, D1, D0, D4, E6 }, \
- { B5, B4, NO_PIN, NO_PIN, NO_PIN } \
-}
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
diff --git a/keyboards/z34/info.json b/keyboards/z34/info.json
index 00d5e5252f..0f210d4077 100644
--- a/keyboards/z34/info.json
+++ b/keyboards/z34/info.json
@@ -10,6 +10,26 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "matrix_pins": {
+ "direct": [
+ ["C6", "F7", "F6", "F5", "F4"],
+ ["D7", "B6", "B2", "B3", "B1"],
+ ["E6", "D4", "D0", "D1", "D3"],
+ ["B4", "B5", null, null, null]
+ ]
+ },
+ "split": {
+ "matrix_pins": {
+ "right": {
+ "direct": [
+ ["F4", "F5", "F6", "F7", "C6"],
+ ["B1", "B3", "B2", "B6", "D7"],
+ ["D3", "D1", "D0", "D4", "E6"],
+ ["B5", "B4", null, null, null]
+ ]
+ }
+ }
+ },
"layouts": {
"LAYOUT": {
"layout": [