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/melgeek/mj6xy/rev3/config.h | 6 ------ keyboards/melgeek/mj6xy/rev3/info.json | 7 +++++++ keyboards/melgeek/mj6xy/rev3/rules.mk | 1 - 3 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 keyboards/melgeek/mj6xy/rev3/info.json (limited to 'keyboards/melgeek/mj6xy/rev3') diff --git a/keyboards/melgeek/mj6xy/rev3/config.h b/keyboards/melgeek/mj6xy/rev3/config.h index aa0e0e6097..a093ab8d37 100755 --- a/keyboards/melgeek/mj6xy/rev3/config.h +++ b/keyboards/melgeek/mj6xy/rev3/config.h @@ -22,14 +22,8 @@ /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW -#define BACKLIGHT_PIN B7 - #define RGB_DI_PIN C6 -#ifdef BACKLIGHT_PIN -# define BACKLIGHT_LEVELS 10 -#endif - #ifdef RGB_DI_PIN # define RGBLIGHT_EFFECT_BREATHING # define RGBLIGHT_EFFECT_RAINBOW_MOOD diff --git a/keyboards/melgeek/mj6xy/rev3/info.json b/keyboards/melgeek/mj6xy/rev3/info.json new file mode 100644 index 0000000000..ccd7165a72 --- /dev/null +++ b/keyboards/melgeek/mj6xy/rev3/info.json @@ -0,0 +1,7 @@ +{ + "backlight": { + "driver": "software", + "pin": "B7", + "levels": 10 + } +} diff --git a/keyboards/melgeek/mj6xy/rev3/rules.mk b/keyboards/melgeek/mj6xy/rev3/rules.mk index 6559b3778b..51b869696a 100755 --- a/keyboards/melgeek/mj6xy/rev3/rules.mk +++ b/keyboards/melgeek/mj6xy/rev3/rules.mk @@ -10,4 +10,3 @@ NKRO_ENABLE = yes # Enable N-Key Rollover BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow AUDIO_ENABLE = no # Audio output -BACKLIGHT_DRIVER = software -- cgit v1.2.3