Allow for modification of output RGB values when using rgblight/rgb_matrix. (#10638)
This commit is contained in:
parent
daea43debf
commit
de4cbe34ff
16 changed files with 20 additions and 16 deletions
|
@ -8,7 +8,7 @@ bool effect_runner_i(effect_params_t* params, i_f effect_func) {
|
|||
uint8_t time = scale16by8(g_rgb_timer, rgb_matrix_config.speed / 4);
|
||||
for (uint8_t i = led_min; i < led_max; i++) {
|
||||
RGB_MATRIX_TEST_LED_FLAGS();
|
||||
RGB rgb = hsv_to_rgb(effect_func(rgb_matrix_config.hsv, i, time));
|
||||
RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, i, time));
|
||||
rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
|
||||
}
|
||||
return led_max < DRIVER_LED_TOTAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue