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/tzarc/djinn/config.h | 1 - keyboards/tzarc/djinn/info.json | 3 ++- keyboards/tzarc/djinn/rules.mk | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) (limited to 'keyboards/tzarc') diff --git a/keyboards/tzarc/djinn/config.h b/keyboards/tzarc/djinn/config.h index 9ef23769f1..bb2bd6f6e2 100644 --- a/keyboards/tzarc/djinn/config.h +++ b/keyboards/tzarc/djinn/config.h @@ -49,7 +49,6 @@ #endif // LCD_ACTIVITY_TIMEOUT // Backlight driver (to control LCD backlight) -#define BACKLIGHT_LEVELS 4 #define BACKLIGHT_PWM_DRIVER PWMD17 #define BACKLIGHT_PWM_CHANNEL 1 #define BACKLIGHT_PAL_MODE 1 diff --git a/keyboards/tzarc/djinn/info.json b/keyboards/tzarc/djinn/info.json index 08634983c8..cceaf637e5 100644 --- a/keyboards/tzarc/djinn/info.json +++ b/keyboards/tzarc/djinn/info.json @@ -30,7 +30,8 @@ "cols": ["C0", "C1", "C2", "C3", "A0", "A1", "A2"] }, "backlight": { - "pin": "A7" + "pin": "A7", + "levels": 4 }, "split": { "enabled": true, diff --git a/keyboards/tzarc/djinn/rules.mk b/keyboards/tzarc/djinn/rules.mk index 2f343a5a9d..9b81a4bfaf 100644 --- a/keyboards/tzarc/djinn/rules.mk +++ b/keyboards/tzarc/djinn/rules.mk @@ -2,8 +2,6 @@ CUSTOM_MATRIX = lite SERIAL_DRIVER = usart -BACKLIGHT_DRIVER = pwm - WS2812_DRIVER = pwm CIE1931_CURVE = yes -- cgit v1.2.3