summaryrefslogtreecommitdiff
path: root/keyboards/winry
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-05-27 12:27:44 +1000
committerGitHub <noreply@github.com>2023-05-27 12:27:44 +1000
commit363bfdbfda5ea9fa996390920a9e8982535b76c8 (patch)
tree65684518b21240b47f7a64d8f0462e246ede70cc /keyboards/winry
parent8fdcba12e684e7b1f0934fc9dc622e8e51f1deb9 (diff)
Move `RGBLIGHT_LIMIT_VAL` to data driven (#20974)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'keyboards/winry')
-rw-r--r--keyboards/winry/winry25tc/config.h1
-rw-r--r--keyboards/winry/winry25tc/info.json3
-rw-r--r--keyboards/winry/winry315/config.h3
-rw-r--r--keyboards/winry/winry315/info.json3
4 files changed, 7 insertions, 3 deletions
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 @@
20#define RGBLIGHT_HUE_STEP 8 20#define RGBLIGHT_HUE_STEP 8
21#define RGBLIGHT_SAT_STEP 8 21#define RGBLIGHT_SAT_STEP 8
22#define RGBLIGHT_VAL_STEP 8 22#define RGBLIGHT_VAL_STEP 8
23#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 @@
11 "ws2812": { 11 "ws2812": {
12 "pin": "D5" 12 "pin": "D5"
13 }, 13 },
14 "rgblight": {
15 "max_brightness": 150
16 },
14 "matrix_pins": { 17 "matrix_pins": {
15 "cols": ["F5", "C7", "B7", "B2", "B4"], 18 "cols": ["F5", "C7", "B7", "B2", "B4"],
16 "rows": ["E6", "F0", "D6", "D2", "B6"] 19 "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 @@
13// This PCB uses a single chain of WS2812-compatible addressable RGB LEDs for 13// This PCB uses a single chain of WS2812-compatible addressable RGB LEDs for
14// per-key backlight and underglow. 14// per-key backlight and underglow.
15#define RGBLED_NUM 27 15#define RGBLED_NUM 27
16#define RGBLIGHT_LIMIT_VAL 150
17 16
18// RGB Lighting configuration. This mode is used by the vendor firmware, and 17// RGB Lighting configuration. This mode is used by the vendor firmware, and
19// can be chosen if the full RGB Matrix support is not desired for some reason. 18// can be chosen if the full RGB Matrix support is not desired for some reason.
@@ -36,7 +35,7 @@
36// RGB Matrix configuration. 35// RGB Matrix configuration.
37#ifdef RGB_MATRIX_ENABLE 36#ifdef RGB_MATRIX_ENABLE
38# define RGB_MATRIX_LED_COUNT RGBLED_NUM 37# define RGB_MATRIX_LED_COUNT RGBLED_NUM
39# define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL 38# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
40 39
41# define RGB_MATRIX_CENTER \ 40# define RGB_MATRIX_CENTER \
42 { 35, 35 } 41 { 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 @@
11 "rgb_matrix": { 11 "rgb_matrix": {
12 "driver": "WS2812" 12 "driver": "WS2812"
13 }, 13 },
14 "rgblight": {
15 "max_brightness": 150
16 },
14 "encoder": { 17 "encoder": {
15 "rotary": [ 18 "rotary": [
16 {"pin_a": "F1", "pin_b": "F0"}, 19 {"pin_a": "F1", "pin_b": "F0"},