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