From ace372d90de13dafc815df5d8049497cb351b69b Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 11 Mar 2023 00:34:34 +1100 Subject: Move matrix config to info.json, part 3 (#19991) Co-authored-by: Nick Brassel --- keyboards/neopad/config.h | 4 ---- keyboards/neopad/rev1/config.h | 5 ----- keyboards/neopad/rev1/info.json | 5 +++++ 3 files changed, 5 insertions(+), 9 deletions(-) (limited to 'keyboards/neopad') diff --git a/keyboards/neopad/config.h b/keyboards/neopad/config.h index 8b0f83f7a0..6200d5a594 100755 --- a/keyboards/neopad/config.h +++ b/keyboards/neopad/config.h @@ -16,9 +16,5 @@ along with this program. If not, see . */ #pragma once - -/* Column/Row IO definitions */ -#define DIODE_DIRECTION COL2ROW - /* Reduce tapdance required taps from 5 to 2 */ #define TAPPING_TOGGLE 2 diff --git a/keyboards/neopad/rev1/config.h b/keyboards/neopad/rev1/config.h index dce1020b44..fd1724caf1 100755 --- a/keyboards/neopad/rev1/config.h +++ b/keyboards/neopad/rev1/config.h @@ -16,11 +16,6 @@ along with this program. If not, see . */ #pragma once - -/* Column/Row IO definitions */ -#define MATRIX_ROW_PINS { F4, F5 } -#define MATRIX_COL_PINS { B3, B2, B6 } - /* Onboard LEDs */ #define LED_00 F6 #define LED_01 F7 diff --git a/keyboards/neopad/rev1/info.json b/keyboards/neopad/rev1/info.json index 48654b6941..4cc1a3d9d5 100755 --- a/keyboards/neopad/rev1/info.json +++ b/keyboards/neopad/rev1/info.json @@ -8,6 +8,11 @@ "pid": "0x0913", "device_version": "0.1.0" }, + "matrix_pins": { + "cols": ["B3", "B2", "B6"], + "rows": ["F4", "F5"] + }, + "diode_direction": "COL2ROW", "encoder": { "rotary": [ {"pin_a": "D1", "pin_b": "D0"}, -- cgit v1.2.3