]> git.donarmstrong.com Git - qmk_firmware.git/blob - quantum/rgb_matrix_animations/solid_color_anim.h
Merge pull request #5536 from stanrc85/feature/updates
[qmk_firmware.git] / quantum / rgb_matrix_animations / solid_color_anim.h
1 #pragma once
2
3 extern rgb_config_t rgb_matrix_config;
4
5 bool rgb_matrix_solid_color(effect_params_t* params) {
6   RGB_MATRIX_USE_LIMITS(led_min, led_max);
7
8   HSV hsv = { rgb_matrix_config.hue, rgb_matrix_config.sat, rgb_matrix_config.val };
9   RGB rgb = hsv_to_rgb(hsv);
10   for (uint8_t i = led_min; i < led_max; i++) {
11     rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
12   }
13   return led_max < DRIVER_LED_TOTAL;
14 }