16 lines
451 B
C
16 lines
451 B
C
|
RGB_MATRIX_EFFECT(SOLID_COLOR)
|
||
|
#ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
|
||
|
|
||
|
bool SOLID_COLOR(effect_params_t* params) {
|
||
|
RGB_MATRIX_USE_LIMITS(led_min, led_max);
|
||
|
|
||
|
RGB rgb = rgb_matrix_hsv_to_rgb(rgb_matrix_config.hsv);
|
||
|
for (uint8_t i = led_min; i < led_max; i++) {
|
||
|
RGB_MATRIX_TEST_LED_FLAGS();
|
||
|
rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
|
||
|
}
|
||
|
return led_max < DRIVER_LED_TOTAL;
|
||
|
}
|
||
|
|
||
|
#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
|