diff options
author | Ryan <fauxpark@gmail.com> | 2023-03-11 04:59:07 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 04:59:07 +1100 |
commit | 1022afa6c24a64c78d1c9be99a695ff5335876f7 (patch) | |
tree | d5891c76ad09f9c0177ef11753796e31f6cfbc19 /keyboards/keystonecaps | |
parent | 4b1f0e8daa8cfacbbc3cdc22653e2bc1458cea96 (diff) |
Move matrix config to info.json, part 8 (#20030)
Diffstat (limited to 'keyboards/keystonecaps')
-rw-r--r-- | keyboards/keystonecaps/gameroyadvance/config.h | 10 | ||||
-rw-r--r-- | keyboards/keystonecaps/gameroyadvance/info.json | 11 |
2 files changed, 11 insertions, 10 deletions
diff --git a/keyboards/keystonecaps/gameroyadvance/config.h b/keyboards/keystonecaps/gameroyadvance/config.h index 75b25e02c3..ccd1b1da6c 100644 --- a/keyboards/keystonecaps/gameroyadvance/config.h +++ b/keyboards/keystonecaps/gameroyadvance/config.h @@ -17,16 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once - -/* key matrix pins */ -#define MATRIX_ROW_PINS { F5, F6, F7, B1, B3 } -#define MATRIX_COL_PINS { D4, D0, D1, C6, D7, E6, F4, B2, B6 } -#define MATRIX_ROW_PINS_RIGHT { D7, E6, B4, B5, B6 } -#define MATRIX_COL_PINS_RIGHT { C6, D4, D0, D1, B1, F7, F4, F5, F6 } - -/* COL2ROW or ROW2COL */ -#define DIODE_DIRECTION COL2ROW - /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE diff --git a/keyboards/keystonecaps/gameroyadvance/info.json b/keyboards/keystonecaps/gameroyadvance/info.json index 7a968deded..cbcdabfaea 100644 --- a/keyboards/keystonecaps/gameroyadvance/info.json +++ b/keyboards/keystonecaps/gameroyadvance/info.json @@ -8,6 +8,11 @@ "pid": "0x6060", "device_version": "0.0.1" }, + "matrix_pins": { + "cols": ["D4", "D0", "D1", "C6", "D7", "E6", "F4", "B2", "B6"], + "rows": ["F5", "F6", "F7", "B1", "B3"] + }, + "diode_direction": "COL2ROW", "encoder": { "rotary": [ {"pin_a": "B5", "pin_b": "B4"} @@ -21,6 +26,12 @@ {"pin_a": "B3", "pin_b": "B2"} ] } + }, + "matrix_pins": { + "right": { + "cols": ["C6", "D4", "D0", "D1", "B1", "F7", "F4", "F5", "F6"], + "rows": ["D7", "E6", "B4", "B5", "B6"] + } } }, "processor": "atmega32u4", |