diff options
author | Ryan <fauxpark@gmail.com> | 2023-03-11 00:00:24 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 00:00:24 +1100 |
commit | 9e64300e67720a5468c2585391250ca5579b311b (patch) | |
tree | d8c471bb33cd5d0e38e90d925d69b3c6b3cb2d59 /keyboards/projectkb | |
parent | dd086a51d82a574a55eb3b89e8943301d72296f3 (diff) |
Move matrix config to info.json, part 4 (#20001)
Diffstat (limited to 'keyboards/projectkb')
-rw-r--r-- | keyboards/projectkb/alice/rev1/config.h | 4 | ||||
-rw-r--r-- | keyboards/projectkb/alice/rev1/info.json | 7 | ||||
-rw-r--r-- | keyboards/projectkb/alice/rev2/config.h | 4 | ||||
-rw-r--r-- | keyboards/projectkb/alice/rev2/info.json | 7 | ||||
-rw-r--r-- | keyboards/projectkb/signature65/config.h | 6 | ||||
-rw-r--r-- | keyboards/projectkb/signature65/info.json | 5 | ||||
-rw-r--r-- | keyboards/projectkb/signature87/config.h | 5 | ||||
-rw-r--r-- | keyboards/projectkb/signature87/info.json | 5 |
8 files changed, 24 insertions, 19 deletions
diff --git a/keyboards/projectkb/alice/rev1/config.h b/keyboards/projectkb/alice/rev1/config.h index 54918d2b49..e6990c6c48 100644 --- a/keyboards/projectkb/alice/rev1/config.h +++ b/keyboards/projectkb/alice/rev1/config.h @@ -17,10 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once -#define MATRIX_COL_PINS { B2, B10, B11, A9, A15, B3, B4, B5, B6, B7, B8, B9, C13, C14, C15, B12 } -#define MATRIX_ROW_PINS { B1, B0, A7, A5, A4 } -#define DIODE_DIRECTION COL2ROW - #define BACKLIGHT_PWM_DRIVER PWMD3 #define BACKLIGHT_PWM_CHANNEL 1 #define BACKLIGHT_PAL_MODE 1 diff --git a/keyboards/projectkb/alice/rev1/info.json b/keyboards/projectkb/alice/rev1/info.json new file mode 100644 index 0000000000..c4366e81f9 --- /dev/null +++ b/keyboards/projectkb/alice/rev1/info.json @@ -0,0 +1,7 @@ +{ + "matrix_pins": { + "cols": ["B2", "B10", "B11", "A9", "A15", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "C13", "C14", "C15", "B12"], + "rows": ["B1", "B0", "A7", "A5", "A4"] + }, + "diode_direction": "COL2ROW" +} diff --git a/keyboards/projectkb/alice/rev2/config.h b/keyboards/projectkb/alice/rev2/config.h index 1ac58753c7..cd1726d7eb 100644 --- a/keyboards/projectkb/alice/rev2/config.h +++ b/keyboards/projectkb/alice/rev2/config.h @@ -17,10 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once -#define MATRIX_COL_PINS { B1, B0, A7, A1, A5, A4, A3, A10, B9, B8, B7, B6, B5, B4, B3, A15 } -#define MATRIX_ROW_PINS { B2, B10, B11, A2, A0 } -#define DIODE_DIRECTION COL2ROW - #define BACKLIGHT_PWM_DRIVER PWMD3 #define BACKLIGHT_PWM_CHANNEL 1 #define BACKLIGHT_PAL_MODE 1 diff --git a/keyboards/projectkb/alice/rev2/info.json b/keyboards/projectkb/alice/rev2/info.json new file mode 100644 index 0000000000..83d71b16e9 --- /dev/null +++ b/keyboards/projectkb/alice/rev2/info.json @@ -0,0 +1,7 @@ +{ + "matrix_pins": { + "cols": ["B1", "B0", "A7", "A1", "A5", "A4", "A3", "A10", "B9", "B8", "B7", "B6", "B5", "B4", "B3", "A15"], + "rows": ["B2", "B10", "B11", "A2", "A0"] + }, + "diode_direction": "COL2ROW" +} diff --git a/keyboards/projectkb/signature65/config.h b/keyboards/projectkb/signature65/config.h index 2972b51fa1..4d31d4b095 100644 --- a/keyboards/projectkb/signature65/config.h +++ b/keyboards/projectkb/signature65/config.h @@ -17,12 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once -// 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -#define MATRIX_COL_PINS { B14, A2, B9, B8, B5, B4, B3, A15, B11, B10, B2, A3, B1, B0, A4, A5 } -// 1 2 3 4 5 -#define MATRIX_ROW_PINS { A8, A9, B13, A6, A7 } -#define DIODE_DIRECTION COL2ROW - /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE /* Locking resynchronize hack */ diff --git a/keyboards/projectkb/signature65/info.json b/keyboards/projectkb/signature65/info.json index 2f0f01621b..6b7229d7e6 100644 --- a/keyboards/projectkb/signature65/info.json +++ b/keyboards/projectkb/signature65/info.json @@ -8,6 +8,11 @@ "pid": "0x0165", "device_version": "0.0.1" }, + "matrix_pins": { + "cols": ["B14", "A2", "B9", "B8", "B5", "B4", "B3", "A15", "B11", "B10", "B2", "A3", "B1", "B0", "A4", "A5"], + "rows": ["A8", "A9", "B13", "A6", "A7"] + }, + "diode_direction": "COL2ROW", "processor": "STM32F072", "bootloader": "stm32-dfu", "layouts": { diff --git a/keyboards/projectkb/signature87/config.h b/keyboards/projectkb/signature87/config.h index 394e5ac706..4d31d4b095 100644 --- a/keyboards/projectkb/signature87/config.h +++ b/keyboards/projectkb/signature87/config.h @@ -17,11 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once -// 0 1 2 3 4 5 6 7 8 9 A B -#define MATRIX_COL_PINS { A7, A6, A5, A4, A3, A2, A15, B3, B4 } -#define MATRIX_ROW_PINS { B13, B12, A8, B15, A10, A9, B9, B8, B1, B0, B10, B2 } -#define DIODE_DIRECTION COL2ROW - /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE /* Locking resynchronize hack */ diff --git a/keyboards/projectkb/signature87/info.json b/keyboards/projectkb/signature87/info.json index 76ff092fb2..cc6d437f71 100644 --- a/keyboards/projectkb/signature87/info.json +++ b/keyboards/projectkb/signature87/info.json @@ -8,6 +8,11 @@ "pid": "0x0187", "device_version": "0.0.1" }, + "matrix_pins": { + "cols": ["A7", "A6", "A5", "A4", "A3", "A2", "A15", "B3", "B4"], + "rows": ["B13", "B12", "A8", "B15", "A10", "A9", "B9", "B8", "B1", "B0", "B10", "B2"] + }, + "diode_direction": "COL2ROW", "processor": "STM32F072", "bootloader": "stm32-dfu", "community_layouts": ["tkl_ansi"], |