summaryrefslogtreecommitdiff
path: root/keyboards/macro3
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/macro3
parent0b796b91a352c6084ed0b4c0f5aa99cc9d2fa07c (diff)
Migrate `DIRECT_PINS` to data driven (#19826)
Diffstat (limited to 'keyboards/macro3')
-rw-r--r--keyboards/macro3/config.h10
-rw-r--r--keyboards/macro3/info.json6
2 files changed, 6 insertions, 10 deletions
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"
},