From 2cdf99ae950a82e233482347651b7689c4896827 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 14 Feb 2023 18:39:41 +1100 Subject: Migrate `DIRECT_PINS` to data driven (#19826) --- keyboards/xiudi/xd002/config.h | 12 ------------ keyboards/xiudi/xd002/info.json | 5 +++++ 2 files changed, 5 insertions(+), 12 deletions(-) (limited to 'keyboards/xiudi/xd002') diff --git a/keyboards/xiudi/xd002/config.h b/keyboards/xiudi/xd002/config.h index fc84c89bf6..19f01664b2 100644 --- a/keyboards/xiudi/xd002/config.h +++ b/keyboards/xiudi/xd002/config.h @@ -15,18 +15,6 @@ */ #pragma once - -/* matrix size */ -#define MATRIX_ROWS 1 -#define MATRIX_COLS 2 - -/* - * Keyboard Matrix Assignments - * - * On this board we have direct connection: no diodes. - */ -#define DIRECT_PINS {{ B0, B1 }} - #define RGBLED_NUM 2 #define RGB_DI_PIN B2 diff --git a/keyboards/xiudi/xd002/info.json b/keyboards/xiudi/xd002/info.json index f06e823a88..4284b0548b 100644 --- a/keyboards/xiudi/xd002/info.json +++ b/keyboards/xiudi/xd002/info.json @@ -8,6 +8,11 @@ "pid": "0x0202", "device_version": "0.0.1" }, + "matrix_pins": { + "direct": [ + ["B0", "B1"] + ] + }, "layouts": { "LAYOUT": { "layout": [ -- cgit v1.2.3