From 363bfdbfda5ea9fa996390920a9e8982535b76c8 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 27 May 2023 12:27:44 +1000 Subject: Move `RGBLIGHT_LIMIT_VAL` to data driven (#20974) Co-authored-by: Nick Brassel --- keyboards/winry/winry25tc/config.h | 1 - keyboards/winry/winry25tc/info.json | 3 +++ keyboards/winry/winry315/config.h | 3 +-- keyboards/winry/winry315/info.json | 3 +++ 4 files changed, 7 insertions(+), 3 deletions(-) (limited to 'keyboards/winry') diff --git a/keyboards/winry/winry25tc/config.h b/keyboards/winry/winry25tc/config.h index 0e0377603b..98c540c876 100644 --- a/keyboards/winry/winry25tc/config.h +++ b/keyboards/winry/winry25tc/config.h @@ -20,4 +20,3 @@ #define RGBLIGHT_HUE_STEP 8 #define RGBLIGHT_SAT_STEP 8 #define RGBLIGHT_VAL_STEP 8 -#define RGBLIGHT_LIMIT_VAL 150 /* The maximum brightness level */ diff --git a/keyboards/winry/winry25tc/info.json b/keyboards/winry/winry25tc/info.json index 79f4100f68..40768171e4 100644 --- a/keyboards/winry/winry25tc/info.json +++ b/keyboards/winry/winry25tc/info.json @@ -11,6 +11,9 @@ "ws2812": { "pin": "D5" }, + "rgblight": { + "max_brightness": 150 + }, "matrix_pins": { "cols": ["F5", "C7", "B7", "B2", "B4"], "rows": ["E6", "F0", "D6", "D2", "B6"] diff --git a/keyboards/winry/winry315/config.h b/keyboards/winry/winry315/config.h index 18d47f7ec4..09724a2c00 100644 --- a/keyboards/winry/winry315/config.h +++ b/keyboards/winry/winry315/config.h @@ -13,7 +13,6 @@ // This PCB uses a single chain of WS2812-compatible addressable RGB LEDs for // per-key backlight and underglow. #define RGBLED_NUM 27 -#define RGBLIGHT_LIMIT_VAL 150 // RGB Lighting configuration. This mode is used by the vendor firmware, and // can be chosen if the full RGB Matrix support is not desired for some reason. @@ -36,7 +35,7 @@ // RGB Matrix configuration. #ifdef RGB_MATRIX_ENABLE # define RGB_MATRIX_LED_COUNT RGBLED_NUM -# define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL +# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 # define RGB_MATRIX_CENTER \ { 35, 35 } diff --git a/keyboards/winry/winry315/info.json b/keyboards/winry/winry315/info.json index 79bba137d6..cfd52d368a 100644 --- a/keyboards/winry/winry315/info.json +++ b/keyboards/winry/winry315/info.json @@ -11,6 +11,9 @@ "rgb_matrix": { "driver": "WS2812" }, + "rgblight": { + "max_brightness": 150 + }, "encoder": { "rotary": [ {"pin_a": "F1", "pin_b": "F0"}, -- cgit v1.2.3