diff options
author | Ryan <[email protected]> | 2023-03-11 00:32:05 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-03-11 00:32:05 +1100 |
commit | 76cc7fe109d66c1e0ac16b27b2f691e7d55792d3 (patch) | |
tree | f25535b5a7d7d489b5bb77b5c8c57b24ba78a849 /keyboards/handwired/brain | |
parent | 9e64300e67720a5468c2585391250ca5579b311b (diff) | |
download | qmk_firmware-76cc7fe109d66c1e0ac16b27b2f691e7d55792d3.tar.gz qmk_firmware-76cc7fe109d66c1e0ac16b27b2f691e7d55792d3.zip |
Move matrix config to info.json, part 6 (#20019)
Diffstat (limited to 'keyboards/handwired/brain')
-rw-r--r-- | keyboards/handwired/brain/config.h | 12 | ||||
-rw-r--r-- | keyboards/handwired/brain/info.json | 10 |
2 files changed, 10 insertions, 12 deletions
diff --git a/keyboards/handwired/brain/config.h b/keyboards/handwired/brain/config.h index 9b7c48da75..088f03a379 100644 --- a/keyboards/handwired/brain/config.h +++ b/keyboards/handwired/brain/config.h @@ -23,18 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define SPLIT_USB_DETECT -// wiring of each half - -#define MATRIX_COL_PINS \ - { D1, D4, C6, D7, E6, B4, B5 } -#define MATRIX_ROW_PINS \ - { F4, F5, F6, F7, B1 } - -#define MATRIX_COL_PINS_RIGHT \ - { B5, B4, E6, D7, C6, D4, D1 } - -#define DIODE_DIRECTION COL2ROW - /* mouse config */ #define MOUSEKEY_INTERVAL 20 #define MOUSEKEY_DELAY 0 diff --git a/keyboards/handwired/brain/info.json b/keyboards/handwired/brain/info.json index a085da297f..aad4662d72 100644 --- a/keyboards/handwired/brain/info.json +++ b/keyboards/handwired/brain/info.json @@ -8,6 +8,11 @@ "pid": "0x0001", "device_version": "0.0.1" }, + "matrix_pins": { + "cols": ["D1", "D4", "C6", "D7", "E6", "B4", "B5"], + "rows": ["F4", "F5", "F6", "F7", "B1"] + }, + "diode_direction": "COL2ROW", "bootmagic": { "matrix": [0, 6] }, @@ -15,6 +20,11 @@ "soft_serial_pin": "D0", "bootmagic": { "matrix": [5, 0] + }, + "matrix_pins": { + "right": { + "cols": ["B5", "B4", "E6", "D7", "C6", "D4", "D1"] + } } }, "processor": "atmega32u4", |