Move RGBLED_NUM to data driven (#21278)

This commit is contained in:
Ryan 2023-06-18 14:39:07 +10:00 committed by GitHub
parent 7178645be7
commit b1783db4ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2160 changed files with 2194 additions and 2058 deletions

View file

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

View file

@ -12,6 +12,7 @@
"pin": "D5"
},
"rgblight": {
"led_count": 40,
"max_brightness": 150
},
"matrix_pins": {

View file

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

View file

@ -12,6 +12,7 @@
"driver": "WS2812"
},
"rgblight": {
"led_count": 27,
"max_brightness": 150,
"sleep": true
},