mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-25 20:56:42 +00:00
4e077250d5
* Drashna's method is applied to rotary encoder rotation detection. rgb_matrix_user.inc -> rgb_matrix_kb.inc. * Disabled some RGB MATRIX effects to shrink the firmware size. * via # of layers changed from 5 to 4.
17 lines
572 B
C++
17 lines
572 B
C++
#ifdef RGB_MATRIX_KEYREACTIVE_ENABLED
|
|
RGB_MATRIX_EFFECT(my_party_rocks)
|
|
|
|
# ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
|
|
|
|
bool my_party_rocks(effect_params_t* params) {
|
|
RGB_MATRIX_USE_LIMITS(led_min, led_max);
|
|
HSV hsv = {rand() & 0xFF, rand() & 0xFF, rgb_matrix_config.hsv.v};
|
|
RGB rgb = rgb_matrix_hsv_to_rgb(hsv);
|
|
// rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
|
|
rgb_matrix_set_color_all(rgb.r, rgb.g, rgb.b);
|
|
return rgb_matrix_check_finished_leds(led_max);
|
|
}
|
|
|
|
# endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
|
|
#endif // RGB_MATRIX_KEYREACTIVE_ENABLED
|