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/monarch/config.h | 4 ---- keyboards/monarch/info.json | 5 +++++ keyboards/monarch/rules.mk | 2 -- 3 files changed, 5 insertions(+), 6 deletions(-) (limited to 'keyboards/monarch') diff --git a/keyboards/monarch/config.h b/keyboards/monarch/config.h index 7708f0fc16..3f7a66bf06 100644 --- a/keyboards/monarch/config.h +++ b/keyboards/monarch/config.h @@ -26,13 +26,9 @@ along with this program. If not, see . #define ENCODERS_PAD_B { B5 } #define ENCODER_RESOLUTION 1 -//LEDS A6 -#define BACKLIGHT_PIN A6 #define BACKLIGHT_PWM_DRIVER PWMD3 #define BACKLIGHT_PWM_CHANNEL 1 #define BACKLIGHT_PAL_MODE 1 -#define BACKLIGHT_LEVELS 24 -#define BACKLIGHT_BREATHING #define SLEEP_LED_GPT_DRIVER GPTD1 diff --git a/keyboards/monarch/info.json b/keyboards/monarch/info.json index cb5239e915..c4d1362a5b 100644 --- a/keyboards/monarch/info.json +++ b/keyboards/monarch/info.json @@ -8,6 +8,11 @@ "pid": "0x43C1", "device_version": "0.0.1" }, + "backlight": { + "pin": "A6", + "levels": 24, + "breathing": true + }, "processor": "STM32F072", "bootloader": "stm32-dfu", "layouts": { diff --git a/keyboards/monarch/rules.mk b/keyboards/monarch/rules.mk index bed35367eb..5a2c15a821 100644 --- a/keyboards/monarch/rules.mk +++ b/keyboards/monarch/rules.mk @@ -13,7 +13,5 @@ AUDIO_ENABLE = no # Audio output SLEEP_LED_ENABLE = yes ENCODER_ENABLE = yes -BACKLIGHT_DRIVER = pwm - # Enter lower-power sleep mode when on the ChibiOS idle thread OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE -- cgit v1.2.3