Allow for modification of output RGB values when using rgblight/rgb_matrix. (#10638)

This commit is contained in:
Nick Brassel 2020-10-23 14:39:03 +11:00 committed by James Young
parent daea43debf
commit de4cbe34ff
No known key found for this signature in database
GPG key ID: 8E1085BF6FCFBD74
16 changed files with 20 additions and 16 deletions

View file

@ -12,7 +12,7 @@ bool GRADIENT_LEFT_RIGHT(effect_params_t* params) {
// The x range will be 0..224, map this to 0..7
// Relies on hue being 8-bit and wrapping
hsv.h = rgb_matrix_config.hsv.h + (scale * g_led_config.point[i].x >> 5);
RGB rgb = hsv_to_rgb(hsv);
RGB rgb = rgb_matrix_hsv_to_rgb(hsv);
rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
}
return led_max < DRIVER_LED_TOTAL;