aboutsummaryrefslogtreecommitdiff
path: root/keyboards/bandominedoni/rgb_matrix_kb.inc
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-04-10 12:13:40 +0100
committerAkshay <[email protected]>2022-04-10 12:13:40 +0100
commitdc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch)
tree4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/bandominedoni/rgb_matrix_kb.inc
Diffstat (limited to 'keyboards/bandominedoni/rgb_matrix_kb.inc')
-rw-r--r--keyboards/bandominedoni/rgb_matrix_kb.inc16
1 files changed, 16 insertions, 0 deletions
diff --git a/keyboards/bandominedoni/rgb_matrix_kb.inc b/keyboards/bandominedoni/rgb_matrix_kb.inc
new file mode 100644
index 000000000..77ad22c1c
--- /dev/null
+++ b/keyboards/bandominedoni/rgb_matrix_kb.inc
@@ -0,0 +1,16 @@
1#ifdef RGB_MATRIX_KEYREACTIVE_ENABLED
2RGB_MATRIX_EFFECT(my_party_rocks)
3
4# ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
5
6bool my_party_rocks(effect_params_t* params) {
7 RGB_MATRIX_USE_LIMITS(led_min, led_max);
8 HSV hsv = {rand() & 0xFF, rand() & 0xFF, rgb_matrix_config.hsv.v};
9 RGB rgb = rgb_matrix_hsv_to_rgb(hsv);
10 // rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
11 rgb_matrix_set_color_all(rgb.r, rgb.g, rgb.b);
12 return rgb_matrix_check_finished_leds(led_max);
13}
14
15# endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
16#endif // RGB_MATRIX_KEYREACTIVE_ENABLED