summaryrefslogtreecommitdiff
path: root/keyboards/splitkb
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/splitkb
parent0b796b91a352c6084ed0b4c0f5aa99cc9d2fa07c (diff)
Migrate `DIRECT_PINS` to data driven (#19826)
Diffstat (limited to 'keyboards/splitkb')
-rw-r--r--keyboards/splitkb/zima/config.h15
-rw-r--r--keyboards/splitkb/zima/info.json8
2 files changed, 8 insertions, 15 deletions
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": [