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/metamechs/timberwolf/config.h | 4 ---- keyboards/metamechs/timberwolf/info.json | 4 ++++ keyboards/metamechs/timberwolf/rules.mk | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) (limited to 'keyboards/metamechs/timberwolf') diff --git a/keyboards/metamechs/timberwolf/config.h b/keyboards/metamechs/timberwolf/config.h index 7e259d0817..83501eb878 100644 --- a/keyboards/metamechs/timberwolf/config.h +++ b/keyboards/metamechs/timberwolf/config.h @@ -44,10 +44,6 @@ along with this program. If not, see . /* Reverse encoder direction */ // #define ENCODER_DIRECTION_FLIP -/* Backlighting code used for caps lock indicator */ -#define BACKLIGHT_PIN C6 -#define BACKLIGHT_LEVELS 16 - /* * Feature disable options * These options are also useful to firmware size reduction. diff --git a/keyboards/metamechs/timberwolf/info.json b/keyboards/metamechs/timberwolf/info.json index 87ee8d48a8..4d6e82eec6 100644 --- a/keyboards/metamechs/timberwolf/info.json +++ b/keyboards/metamechs/timberwolf/info.json @@ -8,6 +8,10 @@ "pid": "0x5754", "device_version": "0.0.1" }, + "backlight": { + "pin": "C6", + "levels": 16 + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { diff --git a/keyboards/metamechs/timberwolf/rules.mk b/keyboards/metamechs/timberwolf/rules.mk index 0a9f98774c..247b4e978a 100644 --- a/keyboards/metamechs/timberwolf/rules.mk +++ b/keyboards/metamechs/timberwolf/rules.mk @@ -12,5 +12,3 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow AUDIO_ENABLE = no # Audio output ENCODER_ENABLE = yes # Enable encoder support LTO_ENABLE = yes - -BACKLIGHT_DRIVER = pwm -- cgit v1.2.3