summaryrefslogtreecommitdiff
path: root/keyboards/monarch
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-26 08:37:57 +1100
committerGitHub <noreply@github.com>2023-02-26 08:37:57 +1100
commit314f6c1ddba09851b33e4f3b4bd43bdbc55f9628 (patch)
tree8d0008ee0609b42ffbcbe19e52c3695ea5ab9280 /keyboards/monarch
parentba7546a334ec56e70629652e8552dd493449e9db (diff)
Move backlight config to data driven (#19910)
Diffstat (limited to 'keyboards/monarch')
-rw-r--r--keyboards/monarch/config.h4
-rw-r--r--keyboards/monarch/info.json5
-rw-r--r--keyboards/monarch/rules.mk2
3 files changed, 5 insertions, 6 deletions
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 <http://www.gnu.org/licenses/>.
#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