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/exclusive/e6v2/le/config.h | 6 ------ keyboards/exclusive/e6v2/le/info.json | 3 +++ keyboards/exclusive/e6v2/le_bmc/config.h | 2 -- keyboards/exclusive/e6v2/le_bmc/info.json | 3 +++ keyboards/exclusive/e6v2/oe/config.h | 6 ------ keyboards/exclusive/e6v2/oe/info.json | 3 +++ keyboards/exclusive/e6v2/oe_bmc/config.h | 2 -- keyboards/exclusive/e6v2/oe_bmc/info.json | 3 +++ 8 files changed, 12 insertions(+), 16 deletions(-) (limited to 'keyboards/exclusive/e6v2') diff --git a/keyboards/exclusive/e6v2/le/config.h b/keyboards/exclusive/e6v2/le/config.h index c560e06a75..65bd782b7e 100644 --- a/keyboards/exclusive/e6v2/le/config.h +++ b/keyboards/exclusive/e6v2/le/config.h @@ -40,10 +40,4 @@ along with this program. If not, see . #define RGBLIGHT_VAL_STEP 12 #endif -#define BACKLIGHT_PIN B6 -#ifdef BACKLIGHT_PIN -#define BACKLIGHT_LEVELS 2 -#define BACKLIGHT_BREAHTING -#endif - #define DIODE_DIRECTION COL2ROW diff --git a/keyboards/exclusive/e6v2/le/info.json b/keyboards/exclusive/e6v2/le/info.json index ac3a613736..10ad0c9383 100644 --- a/keyboards/exclusive/e6v2/le/info.json +++ b/keyboards/exclusive/e6v2/le/info.json @@ -9,6 +9,9 @@ "device_version": "0.0.2" }, "backlight": { + "pin": "B6", + "levels": 2, + "breathing": true, "breathing_period": 3 }, "indicators": { diff --git a/keyboards/exclusive/e6v2/le_bmc/config.h b/keyboards/exclusive/e6v2/le_bmc/config.h index 29588aefe9..c9d14bff4d 100644 --- a/keyboards/exclusive/e6v2/le_bmc/config.h +++ b/keyboards/exclusive/e6v2/le_bmc/config.h @@ -33,8 +33,6 @@ along with this program. If not, see . #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, C2, C3, C4, C5, D7 } #define DIODE_DIRECTION COL2ROW -#define BACKLIGHT_PIN D4 - #define RGBLED_NUM 6 #define RGBLIGHT_EFFECT_BREATHING #define RGBLIGHT_EFFECT_RAINBOW_MOOD diff --git a/keyboards/exclusive/e6v2/le_bmc/info.json b/keyboards/exclusive/e6v2/le_bmc/info.json index 5b34e2f413..51afd7c5ad 100644 --- a/keyboards/exclusive/e6v2/le_bmc/info.json +++ b/keyboards/exclusive/e6v2/le_bmc/info.json @@ -7,6 +7,9 @@ "pid": "0xE62D", "device_version": "0.0.1" }, + "backlight": { + "pin": "D4" + }, "indicators": { "caps_lock": "D1" }, diff --git a/keyboards/exclusive/e6v2/oe/config.h b/keyboards/exclusive/e6v2/oe/config.h index b43acd5a93..88ec4faa04 100644 --- a/keyboards/exclusive/e6v2/oe/config.h +++ b/keyboards/exclusive/e6v2/oe/config.h @@ -40,10 +40,4 @@ along with this program. If not, see . #define RGBLIGHT_VAL_STEP 12 #endif -#define BACKLIGHT_PIN B6 -#ifdef BACKLIGHT_PIN -#define BACKLIGHT_LEVELS 5 -#define BACKLIGHT_BREAHTING -#endif - #define DIODE_DIRECTION COL2ROW diff --git a/keyboards/exclusive/e6v2/oe/info.json b/keyboards/exclusive/e6v2/oe/info.json index 70e57d3678..bfa408c556 100644 --- a/keyboards/exclusive/e6v2/oe/info.json +++ b/keyboards/exclusive/e6v2/oe/info.json @@ -9,6 +9,9 @@ "device_version": "0.0.2" }, "backlight": { + "pin": "B6", + "levels": 5, + "breathing": true, "breathing_period": 3 }, "processor": "atmega32u4", diff --git a/keyboards/exclusive/e6v2/oe_bmc/config.h b/keyboards/exclusive/e6v2/oe_bmc/config.h index 29588aefe9..c9d14bff4d 100644 --- a/keyboards/exclusive/e6v2/oe_bmc/config.h +++ b/keyboards/exclusive/e6v2/oe_bmc/config.h @@ -33,8 +33,6 @@ along with this program. If not, see . #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, C2, C3, C4, C5, D7 } #define DIODE_DIRECTION COL2ROW -#define BACKLIGHT_PIN D4 - #define RGBLED_NUM 6 #define RGBLIGHT_EFFECT_BREATHING #define RGBLIGHT_EFFECT_RAINBOW_MOOD diff --git a/keyboards/exclusive/e6v2/oe_bmc/info.json b/keyboards/exclusive/e6v2/oe_bmc/info.json index c5719f48fd..6716f99c98 100644 --- a/keyboards/exclusive/e6v2/oe_bmc/info.json +++ b/keyboards/exclusive/e6v2/oe_bmc/info.json @@ -7,6 +7,9 @@ "pid": "0xE62B", "device_version": "0.0.1" }, + "backlight": { + "pin": "D4" + }, "indicators": { "caps_lock": "D1" }, -- cgit v1.2.3