Change DRIVER_LED_COUNT to {LED,RGB}_MATRIX_LED_COUNT (#18399)
This commit is contained in:
parent
d967de0df7
commit
36c410592d
577 changed files with 836 additions and 831 deletions
|
|
@ -39,7 +39,7 @@
|
|||
#define FORCE_NKRO
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
#define DRIVER_LED_TOTAL 86
|
||||
#define RGB_MATRIX_LED_COUNT 86
|
||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
|
||||
#define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
|
||||
#define RGB_MATRIX_KEYPRESSES
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
#define DRIVER_LED_TOTAL 24
|
||||
#define RGB_MATRIX_LED_COUNT 24
|
||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
|
||||
#define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
|
||||
|
||||
|
|
|
|||
|
|
@ -70,5 +70,5 @@ static bool CUSTOM_GRADIENT(effect_params_t* params) {
|
|||
rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
|
||||
}
|
||||
|
||||
return led_max < DRIVER_LED_TOTAL;
|
||||
return led_max < RGB_MATRIX_LED_COUNT;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
static uint8_t offset[DRIVER_LED_TOTAL];
|
||||
static uint8_t offset[RGB_MATRIX_LED_COUNT];
|
||||
|
||||
static void doRandom_breath_rainbow(int i, effect_params_t* params) {
|
||||
if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) return;
|
||||
|
|
@ -41,7 +41,7 @@ bool RANDOM_BREATH_RAINBOW(effect_params_t* params) {
|
|||
|
||||
if (!params->init) {
|
||||
// Change one LED every tick, make sure speed is not 0
|
||||
doRandom_breath_rainbow(rand() % DRIVER_LED_TOTAL, params);
|
||||
doRandom_breath_rainbow(rand() % RGB_MATRIX_LED_COUNT, params);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -51,5 +51,5 @@ bool RANDOM_BREATH_RAINBOW(effect_params_t* params) {
|
|||
doRandom_breath_rainbow(i, params);
|
||||
}
|
||||
|
||||
return led_max < DRIVER_LED_TOTAL;
|
||||
return led_max < RGB_MATRIX_LED_COUNT;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,5 +70,5 @@ static bool CUSTOM_GRADIENT(effect_params_t* params) {
|
|||
rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
|
||||
}
|
||||
|
||||
return led_max < DRIVER_LED_TOTAL;
|
||||
return led_max < RGB_MATRIX_LED_COUNT;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
static uint8_t offset[DRIVER_LED_TOTAL];
|
||||
static uint8_t offset[RGB_MATRIX_LED_COUNT];
|
||||
|
||||
static void doRandom_breath_rainbow(int i, effect_params_t* params) {
|
||||
if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) return;
|
||||
|
|
@ -41,7 +41,7 @@ bool RANDOM_BREATH_RAINBOW(effect_params_t* params) {
|
|||
|
||||
if (!params->init) {
|
||||
// Change one LED every tick, make sure speed is not 0
|
||||
doRandom_breath_rainbow(rand() % DRIVER_LED_TOTAL, params);
|
||||
doRandom_breath_rainbow(rand() % RGB_MATRIX_LED_COUNT, params);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -51,5 +51,5 @@ bool RANDOM_BREATH_RAINBOW(effect_params_t* params) {
|
|||
doRandom_breath_rainbow(i, params);
|
||||
}
|
||||
|
||||
return led_max < DRIVER_LED_TOTAL;
|
||||
return led_max < RGB_MATRIX_LED_COUNT;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue