From 23c365b023e409885e6f201f12df56e5145dde47 Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 6 Mar 2023 09:53:52 +1100 Subject: Move matrix config to info.json, part 1 (#19985) --- keyboards/viendi8l/config.h | 7 ------- keyboards/viendi8l/info.json | 5 +++++ 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'keyboards/viendi8l') diff --git a/keyboards/viendi8l/config.h b/keyboards/viendi8l/config.h index 3036f0ac8f..97bd940cdc 100644 --- a/keyboards/viendi8l/config.h +++ b/keyboards/viendi8l/config.h @@ -17,13 +17,6 @@ along with this program. If not, see . #pragma once - - // C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 , C9 , C10, C11, C12, C13, C14, C15, C16, C17 -#define MATRIX_COL_PINS { C6 , C7 , C8 , C9 , A8 , B3 , B4 , A10, B5 , B8 , B9 , C13, C14, C15, A0 , A1 , A2 , A3 } - // R0 , R1 , R2 , R3 , R4 , R5 -#define MATRIX_ROW_PINS { C3 , C2 , C1 , C0 , B14, 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/viendi8l/info.json b/keyboards/viendi8l/info.json index 312f97e7f1..667798b4aa 100644 --- a/keyboards/viendi8l/info.json +++ b/keyboards/viendi8l/info.json @@ -8,6 +8,11 @@ "pid": "0x0877", "device_version": "0.0.1" }, + "matrix_pins": { + "cols": ["C6", "C7", "C8", "C9", "A8", "B3", "B4", "A10", "B5", "B8", "B9", "C13", "C14", "C15", "A0", "A1", "A2", "A3"], + "rows": ["C3", "C2", "C1", "C0", "B14", "A7"] + }, + "diode_direction": "COL2ROW", "encoder": { "rotary": [ {"pin_a": "B10", "pin_b": "B12", "resolution": 2} -- cgit v1.2.3