Move RGBLED_NUM to data driven (#21278)
This commit is contained in:
parent
7178645be7
commit
b1783db4ea
2160 changed files with 2194 additions and 2058 deletions
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#define RGBLED_NUM 40
|
||||
#define RGBLIGHT_HUE_STEP 8
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
"pin": "D5"
|
||||
},
|
||||
"rgblight": {
|
||||
"led_count": 40,
|
||||
"max_brightness": 150
|
||||
},
|
||||
"matrix_pins": {
|
||||
|
|
|
|||
|
|
@ -9,11 +9,6 @@
|
|||
|
||||
// clang-format on
|
||||
|
||||
// RGB LED parameters.
|
||||
// This PCB uses a single chain of WS2812-compatible addressable RGB LEDs for
|
||||
// per-key backlight and underglow.
|
||||
#define RGBLED_NUM 27
|
||||
|
||||
// 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.
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
|
|
@ -33,7 +28,7 @@
|
|||
|
||||
// RGB Matrix configuration.
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
# define RGB_MATRIX_LED_COUNT RGBLED_NUM
|
||||
# define RGB_MATRIX_LED_COUNT 27
|
||||
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
|
||||
|
||||
# define RGB_MATRIX_CENTER \
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
"driver": "WS2812"
|
||||
},
|
||||
"rgblight": {
|
||||
"led_count": 27,
|
||||
"max_brightness": 150,
|
||||
"sleep": true
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue