summaryrefslogtreecommitdiff
path: root/keyboards/z12
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-14 18:39:41 +1100
committerGitHub <noreply@github.com>2023-02-14 00:39:41 -0700
commit2cdf99ae950a82e233482347651b7689c4896827 (patch)
treef26def8c2fd844dad22095d5223fb539b7413ad0 /keyboards/z12
parent0b796b91a352c6084ed0b4c0f5aa99cc9d2fa07c (diff)
Migrate `DIRECT_PINS` to data driven (#19826)
Diffstat (limited to 'keyboards/z12')
-rw-r--r--keyboards/z12/config.h13
-rw-r--r--keyboards/z12/info.json8
2 files changed, 8 insertions, 13 deletions
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": [