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/wolf/sabre/config.h | 2 -- keyboards/wolf/sabre/info.json | 3 +++ keyboards/wolf/sabre/rules.mk | 1 - keyboards/wolf/ts60/config.h | 3 --- keyboards/wolf/ts60/info.json | 4 ++++ 5 files changed, 7 insertions(+), 6 deletions(-) (limited to 'keyboards/wolf') diff --git a/keyboards/wolf/sabre/config.h b/keyboards/wolf/sabre/config.h index 6787d262ca..c0150fce0b 100644 --- a/keyboards/wolf/sabre/config.h +++ b/keyboards/wolf/sabre/config.h @@ -35,5 +35,3 @@ along with this program. If not, see . /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION COL2ROW - -#define BACKLIGHT_PIN B7 diff --git a/keyboards/wolf/sabre/info.json b/keyboards/wolf/sabre/info.json index 5dd8aba471..40ee60a6d0 100644 --- a/keyboards/wolf/sabre/info.json +++ b/keyboards/wolf/sabre/info.json @@ -8,6 +8,9 @@ "pid": "0x0055", "device_version": "0.0.1" }, + "backlight": { + "pin": "B7" + }, "indicators": { "caps_lock": "B3", "scroll_lock": "B0", diff --git a/keyboards/wolf/sabre/rules.mk b/keyboards/wolf/sabre/rules.mk index c53a08ce4a..e7cc37d18d 100644 --- a/keyboards/wolf/sabre/rules.mk +++ b/keyboards/wolf/sabre/rules.mk @@ -14,4 +14,3 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow AUDIO_ENABLE = no # Audio output BACKLIGHT_ENABLE = yes -BACKLIGHT_DRIVER = pwm \ No newline at end of file diff --git a/keyboards/wolf/ts60/config.h b/keyboards/wolf/ts60/config.h index e5cb71fb4c..7664e747c7 100644 --- a/keyboards/wolf/ts60/config.h +++ b/keyboards/wolf/ts60/config.h @@ -52,7 +52,4 @@ along with this program. If not, see . #define RGBLIGHT_SLEEP #define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL -/* Define Per Key Backlight */ -#define BACKLIGHT_PIN B7 -#define BACKLIGHT_LEVELS 6 #define BACKLIGHT_DEFAULT_LEVEL 6 diff --git a/keyboards/wolf/ts60/info.json b/keyboards/wolf/ts60/info.json index e3d2a375e3..8b40cd6ff2 100644 --- a/keyboards/wolf/ts60/info.json +++ b/keyboards/wolf/ts60/info.json @@ -8,6 +8,10 @@ "pid": "0x0050", "device_version": "0.0.1" }, + "backlight": { + "pin": "B7", + "levels": 6 + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "community_layouts": ["60_ansi"], -- cgit v1.2.3