Move RGBLIGHT_LIMIT_VAL to data driven (#20974)

Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
Ryan 2023-05-27 12:27:44 +10:00 committed by GitHub
parent 8fdcba12e6
commit 363bfdbfda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
679 changed files with 649 additions and 493 deletions

View file

@ -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 }

View file

@ -11,6 +11,9 @@
"rgb_matrix": {
"driver": "WS2812"
},
"rgblight": {
"max_brightness": 150
},
"encoder": {
"rotary": [
{"pin_a": "F1", "pin_b": "F0"},