diff options
Diffstat (limited to 'quantum/rgb_matrix_animations/breathing_anim.h')
| -rw-r--r-- | quantum/rgb_matrix_animations/breathing_anim.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/rgb_matrix_animations/breathing_anim.h b/quantum/rgb_matrix_animations/breathing_anim.h index 887425f9d..340bd93e5 100644 --- a/quantum/rgb_matrix_animations/breathing_anim.h +++ b/quantum/rgb_matrix_animations/breathing_anim.h | |||
| @@ -8,7 +8,7 @@ bool BREATHING(effect_params_t* params) { | |||
| 8 | HSV hsv = rgb_matrix_config.hsv; | 8 | HSV hsv = rgb_matrix_config.hsv; |
| 9 | uint16_t time = scale16by8(g_rgb_timer, rgb_matrix_config.speed / 8); | 9 | uint16_t time = scale16by8(g_rgb_timer, rgb_matrix_config.speed / 8); |
| 10 | hsv.v = scale8(abs8(sin8(time) - 128) * 2, hsv.v); | 10 | hsv.v = scale8(abs8(sin8(time) - 128) * 2, hsv.v); |
| 11 | RGB rgb = hsv_to_rgb(hsv); | 11 | RGB rgb = rgb_matrix_hsv_to_rgb(hsv); |
| 12 | for (uint8_t i = led_min; i < led_max; i++) { | 12 | for (uint8_t i = led_min; i < led_max; i++) { |
| 13 | RGB_MATRIX_TEST_LED_FLAGS(); | 13 | RGB_MATRIX_TEST_LED_FLAGS(); |
| 14 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); | 14 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); |
