summaryrefslogtreecommitdiff
path: root/keyboards/tkw/grandiceps
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-03-11 00:34:34 +1100
committerGitHub <noreply@github.com>2023-03-11 00:34:34 +1100
commitace372d90de13dafc815df5d8049497cb351b69b (patch)
tree0eb4793443956fbc60a1cfca5c1f1e556422ce66 /keyboards/tkw/grandiceps
parent76cc7fe109d66c1e0ac16b27b2f691e7d55792d3 (diff)
Move matrix config to info.json, part 3 (#19991)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'keyboards/tkw/grandiceps')
-rw-r--r--keyboards/tkw/grandiceps/config.h8
-rw-r--r--keyboards/tkw/grandiceps/info.json13
2 files changed, 12 insertions, 9 deletions
diff --git a/keyboards/tkw/grandiceps/config.h b/keyboards/tkw/grandiceps/config.h
index 16d91b69a2..9db69dcf3a 100644
--- a/keyboards/tkw/grandiceps/config.h
+++ b/keyboards/tkw/grandiceps/config.h
@@ -15,14 +15,6 @@
*/
#pragma once
-
-#define MATRIX_COL_PINS { B0, A7, A3, A5, A4, A2 }
-#define MATRIX_ROW_PINS { B12, A6, B13, B9, B8 }
-#define MATRIX_COL_PINS_RIGHT { B0, A7, A3, A5, A4, A2 }
-#define MATRIX_ROW_PINS_RIGHT { B12, A6, B13, B9, B8 }
-
-#define DIODE_DIRECTION COL2ROW
-
#define SELECT_SOFT_SERIAL_SPEED 1
#define MATRIX_IO_DELAY 5
diff --git a/keyboards/tkw/grandiceps/info.json b/keyboards/tkw/grandiceps/info.json
index 4d91a00c84..2e598c5b3b 100644
--- a/keyboards/tkw/grandiceps/info.json
+++ b/keyboards/tkw/grandiceps/info.json
@@ -6,13 +6,24 @@
"vid": "0xFEED",
"pid": "0x7812"
},
+ "matrix_pins": {
+ "cols": ["B0", "A7", "A3", "A5", "A4", "A2"],
+ "rows": ["B12", "A6", "B13", "B9", "B8"]
+ },
+ "diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "B14", "pin_b": "B15"}
]
},
"split": {
- "soft_serial_pin": "A15"
+ "soft_serial_pin": "A15",
+ "matrix_pins": {
+ "right": {
+ "cols": ["B0", "A7", "A3", "A5", "A4", "A2"],
+ "rows": ["B12", "A6", "B13", "B9", "B8"]
+ }
+ }
},
"processor": "STM32F411",
"bootloader": "stm32-dfu",