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/percent/booster/config.h | 2 -- keyboards/percent/booster/info.json | 3 +++ keyboards/percent/canoe/config.h | 2 -- keyboards/percent/canoe/info.json | 3 +++ keyboards/percent/skog/config.h | 3 --- keyboards/percent/skog/info.json | 4 ++++ keyboards/percent/skog_lite/config.h | 2 -- keyboards/percent/skog_lite/info.json | 3 +++ 8 files changed, 13 insertions(+), 9 deletions(-) (limited to 'keyboards/percent') diff --git a/keyboards/percent/booster/config.h b/keyboards/percent/booster/config.h index 6fe2567688..b452a0dcb6 100644 --- a/keyboards/percent/booster/config.h +++ b/keyboards/percent/booster/config.h @@ -21,8 +21,6 @@ along with this program. If not, see . #define MATRIX_ROW_PINS { D1, D6, D7, B4, B5 } #define MATRIX_COL_PINS { C7, D4, D2, D0 } -#define BACKLIGHT_PIN B7 - #define DIODE_DIRECTION COL2ROW #define RGB_DI_PIN E2 diff --git a/keyboards/percent/booster/info.json b/keyboards/percent/booster/info.json index d17ba98f05..f92476c9f6 100644 --- a/keyboards/percent/booster/info.json +++ b/keyboards/percent/booster/info.json @@ -8,6 +8,9 @@ "pid": "0x4253", "device_version": "0.0.1" }, + "backlight": { + "pin": "B7" + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "community_layouts": ["numpad_5x4"], diff --git a/keyboards/percent/canoe/config.h b/keyboards/percent/canoe/config.h index ff08476a5c..69f53905fc 100644 --- a/keyboards/percent/canoe/config.h +++ b/keyboards/percent/canoe/config.h @@ -25,8 +25,6 @@ along with this program. If not, see . #define DIODE_DIRECTION COL2ROW -#define BACKLIGHT_PIN D4 - #define RGBLIGHT_EFFECT_BREATHING #define RGBLIGHT_EFFECT_RAINBOW_MOOD #define RGBLIGHT_EFFECT_RAINBOW_SWIRL diff --git a/keyboards/percent/canoe/info.json b/keyboards/percent/canoe/info.json index 18d57bce99..951e55ec64 100644 --- a/keyboards/percent/canoe/info.json +++ b/keyboards/percent/canoe/info.json @@ -8,6 +8,9 @@ "pid": "0x434E", "device_version": "2.0.0" }, + "backlight": { + "pin": "D4" + }, "indicators": { "caps_lock": "D1" }, diff --git a/keyboards/percent/skog/config.h b/keyboards/percent/skog/config.h index bbd6a7470c..274d30df72 100644 --- a/keyboards/percent/skog/config.h +++ b/keyboards/percent/skog/config.h @@ -32,6 +32,3 @@ along with this program. If not, see . #define RGBLIGHT_EFFECT_RGB_TEST #define RGBLIGHT_EFFECT_ALTERNATING #define RGBLIGHT_EFFECT_TWINKLE - -#define BACKLIGHT_PIN D4 -#define BACKLIGHT_LEVELS 5 diff --git a/keyboards/percent/skog/info.json b/keyboards/percent/skog/info.json index 5d461b67a4..80c7d832c4 100644 --- a/keyboards/percent/skog/info.json +++ b/keyboards/percent/skog/info.json @@ -8,6 +8,10 @@ "pid": "0x422D", "device_version": "2.0.0" }, + "backlight": { + "pin": "D4", + "levels": 5 + }, "indicators": { "caps_lock": "D1", "scroll_lock": "D6" diff --git a/keyboards/percent/skog_lite/config.h b/keyboards/percent/skog_lite/config.h index 94dbb85d04..b00a612cd7 100644 --- a/keyboards/percent/skog_lite/config.h +++ b/keyboards/percent/skog_lite/config.h @@ -26,8 +26,6 @@ along with this program. If not, see . #define DIODE_DIRECTION COL2ROW -#define BACKLIGHT_PIN D4 - #define RGBLIGHT_EFFECT_BREATHING #define RGBLIGHT_EFFECT_RAINBOW_MOOD #define RGBLIGHT_EFFECT_RAINBOW_SWIRL diff --git a/keyboards/percent/skog_lite/info.json b/keyboards/percent/skog_lite/info.json index 8b126296e6..74abc67bdc 100644 --- a/keyboards/percent/skog_lite/info.json +++ b/keyboards/percent/skog_lite/info.json @@ -8,6 +8,9 @@ "pid": "0x422D", "device_version": "2.0.0" }, + "backlight": { + "pin": "D4" + }, "indicators": { "caps_lock": "D1", "scroll_lock": "D6" -- cgit v1.2.3