summaryrefslogtreecommitdiffstats
path: root/keyboards/bandominedoni/rgb_matrix_user.inc
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-09-21 21:13:41 +0000
committerQMK Bot <hello@qmk.fm>2021-09-21 21:13:41 +0000
commitf643bdb2abb7a60d79102c3d5b976ee660e642a4 (patch)
treec71b610f1701fc8f3ac322f24468159339df1e94 /keyboards/bandominedoni/rgb_matrix_user.inc
parent88faffb12c305c9b051c2b452b131062711ea258 (diff)
parentcebc5688a09ce0fb9a6163dcea9155041ba89d5c (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/bandominedoni/rgb_matrix_user.inc')
-rw-r--r--keyboards/bandominedoni/rgb_matrix_user.inc16
1 files changed, 16 insertions, 0 deletions
diff --git a/keyboards/bandominedoni/rgb_matrix_user.inc b/keyboards/bandominedoni/rgb_matrix_user.inc
new file mode 100644
index 0000000000..72f5b4f664
--- /dev/null
+++ b/keyboards/bandominedoni/rgb_matrix_user.inc
@@ -0,0 +1,16 @@
+#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 led_max < DRIVER_LED_TOTAL;
+}
+
+# endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
+#endif // RGB_MATRIX_KEYREACTIVE_ENABLED