From 314f6c1ddba09851b33e4f3b4bd43bdbc55f9628 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 26 Feb 2023 08:37:57 +1100 Subject: Move backlight config to data driven (#19910) --- keyboards/ai03/equinox/config.h | 4 ---- keyboards/ai03/equinox/rev0/config.h | 5 ----- keyboards/ai03/equinox/rev0/info.json | 5 +++++ keyboards/ai03/equinox/rev1/info.json | 5 +++++ keyboards/ai03/orbit/config.h | 2 -- keyboards/ai03/orbit/info.json | 3 +++ keyboards/ai03/polaris/config.h | 4 ---- keyboards/ai03/polaris/info.json | 5 +++++ 8 files changed, 18 insertions(+), 15 deletions(-) (limited to 'keyboards/ai03') diff --git a/keyboards/ai03/equinox/config.h b/keyboards/ai03/equinox/config.h index f838baddd6..32065a4740 100644 --- a/keyboards/ai03/equinox/config.h +++ b/keyboards/ai03/equinox/config.h @@ -34,10 +34,6 @@ along with this program. If not, see . /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW -#define BACKLIGHT_PIN B7 -#define BACKLIGHT_BREATHING -#define BACKLIGHT_LEVELS 5 - /* 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/ai03/equinox/rev0/config.h b/keyboards/ai03/equinox/rev0/config.h index be599c1225..78c6fb8fcd 100644 --- a/keyboards/ai03/equinox/rev0/config.h +++ b/keyboards/ai03/equinox/rev0/config.h @@ -20,8 +20,3 @@ along with this program. If not, see . // Fix for prototype missing COL0, COL1, using backlight and RGB underglow I/O pins #undef MATRIX_COL_PINS #define MATRIX_COL_PINS { C4, B7, C6, C7, B6, B5, B4, B3, B2, B1, B0, D6 } - -// This directs backlight code to use a disconnected pin, so the firwmare still has -// backlight code and VIA support even though it doesn't do anything. -#undef BACKLIGHT_PIN -#define BACKLIGHT_PIN D1 \ No newline at end of file diff --git a/keyboards/ai03/equinox/rev0/info.json b/keyboards/ai03/equinox/rev0/info.json index dd190d18ee..d76623777e 100644 --- a/keyboards/ai03/equinox/rev0/info.json +++ b/keyboards/ai03/equinox/rev0/info.json @@ -1,4 +1,9 @@ { + "backlight": { + "pin": "D1", + "levels": 5, + "breathing": true + }, "processor": "atmega32u2", "bootloader": "atmel-dfu" } diff --git a/keyboards/ai03/equinox/rev1/info.json b/keyboards/ai03/equinox/rev1/info.json index dd190d18ee..19cd40d140 100644 --- a/keyboards/ai03/equinox/rev1/info.json +++ b/keyboards/ai03/equinox/rev1/info.json @@ -1,4 +1,9 @@ { + "backlight": { + "pin": "B7", + "levels": 5, + "breathing": true + }, "processor": "atmega32u2", "bootloader": "atmel-dfu" } diff --git a/keyboards/ai03/orbit/config.h b/keyboards/ai03/orbit/config.h index 8d4a1fdd59..85d4ae5bfe 100644 --- a/keyboards/ai03/orbit/config.h +++ b/keyboards/ai03/orbit/config.h @@ -43,8 +43,6 @@ along with this program. If not, see . #define SPLIT_HAND_PIN D5 -#define BACKLIGHT_PIN B7 - /* 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/ai03/orbit/info.json b/keyboards/ai03/orbit/info.json index c6cd6407c4..840fb1fc20 100644 --- a/keyboards/ai03/orbit/info.json +++ b/keyboards/ai03/orbit/info.json @@ -8,6 +8,9 @@ "pid": "0x0003", "device_version": "0.0.3" }, + "backlight": { + "pin": "B7" + }, "split": { "soft_serial_pin": "D0" }, diff --git a/keyboards/ai03/polaris/config.h b/keyboards/ai03/polaris/config.h index 9c360a190f..871f4bc8db 100644 --- a/keyboards/ai03/polaris/config.h +++ b/keyboards/ai03/polaris/config.h @@ -34,10 +34,6 @@ along with this program. If not, see . /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW -#define BACKLIGHT_PIN B7 -#define BACKLIGHT_BREATHING -#define BACKLIGHT_LEVELS 5 - #define RGB_DI_PIN D2 #ifdef RGB_DI_PIN #define RGBLED_NUM 14 diff --git a/keyboards/ai03/polaris/info.json b/keyboards/ai03/polaris/info.json index 64fb65aaee..ae0fcb927d 100644 --- a/keyboards/ai03/polaris/info.json +++ b/keyboards/ai03/polaris/info.json @@ -8,6 +8,11 @@ "pid": "0x0002", "device_version": "0.0.1" }, + "backlight": { + "pin": "B7", + "levels": 5, + "breathing": true + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "community_layouts": ["60_ansi", "60_ansi_split_bs_rshift", "60_tsangan_hhkb"], -- cgit v1.2.3