From 9e64300e67720a5468c2585391250ca5579b311b Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 11 Mar 2023 00:00:24 +1100 Subject: Move matrix config to info.json, part 4 (#20001) --- keyboards/polycarbdiet/s20/config.h | 8 -------- keyboards/polycarbdiet/s20/info.json | 5 +++++ 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'keyboards/polycarbdiet/s20') diff --git a/keyboards/polycarbdiet/s20/config.h b/keyboards/polycarbdiet/s20/config.h index 6cb2e62308..18844c7f95 100644 --- a/keyboards/polycarbdiet/s20/config.h +++ b/keyboards/polycarbdiet/s20/config.h @@ -16,14 +16,6 @@ along with this program. If not, see . #pragma once - -// 1 2 3 4 5 -#define MATRIX_ROW_PINS { B7, E6, D0, D1, D5 } -#define MATRIX_COL_PINS { C6, C7, D4, D6 } - -/* COL2ROW, ROW2COL */ -#define DIODE_DIRECTION ROW2COL - #define RGB_DI_PIN B3 #define RGBLED_NUM 4 #define RGBLIGHT_HUE_STEP 8 diff --git a/keyboards/polycarbdiet/s20/info.json b/keyboards/polycarbdiet/s20/info.json index 5c2ce53150..1398f34cab 100644 --- a/keyboards/polycarbdiet/s20/info.json +++ b/keyboards/polycarbdiet/s20/info.json @@ -8,6 +8,11 @@ "pid": "0x7320", "device_version": "0.0.1" }, + "matrix_pins": { + "cols": ["C6", "C7", "D4", "D6"], + "rows": ["B7", "E6", "D0", "D1", "D5"] + }, + "diode_direction": "ROW2COL", "backlight": { "pin": "B6", "breathing": true -- cgit v1.2.3