summaryrefslogtreecommitdiff
path: root/keyboards/makeymakey
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/makeymakey
parent0b796b91a352c6084ed0b4c0f5aa99cc9d2fa07c (diff)
Migrate `DIRECT_PINS` to data driven (#19826)
Diffstat (limited to 'keyboards/makeymakey')
-rw-r--r--keyboards/makeymakey/config.h12
-rw-r--r--keyboards/makeymakey/info.json7
2 files changed, 7 insertions, 12 deletions
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": {