diff options
Diffstat (limited to 'quantum/rgb_matrix/animations')
43 files changed, 194 insertions, 74 deletions
diff --git a/quantum/rgb_matrix/animations/alpha_mods_anim.h b/quantum/rgb_matrix/animations/alpha_mods_anim.h index 3f2c9b799..d6136f1ba 100644 --- a/quantum/rgb_matrix/animations/alpha_mods_anim.h +++ b/quantum/rgb_matrix/animations/alpha_mods_anim.h | |||
| @@ -19,8 +19,8 @@ bool ALPHAS_MODS(effect_params_t* params) { | |||
| 19 | rgb_matrix_set_color(i, rgb1.r, rgb1.g, rgb1.b); | 19 | rgb_matrix_set_color(i, rgb1.r, rgb1.g, rgb1.b); |
| 20 | } | 20 | } |
| 21 | } | 21 | } |
| 22 | return led_max < DRIVER_LED_TOTAL; | 22 | return rgb_matrix_check_finished_leds(led_max); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 25 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 26 | #endif // DISABLE_RGB_MATRIX_ALPHAS_MODS | 26 | #endif // ENABLE_RGB_MATRIX_ALPHAS_MODS |
diff --git a/quantum/rgb_matrix/animations/breathing_anim.h b/quantum/rgb_matrix/animations/breathing_anim.h index a00ccb83a..29187e154 100644 --- a/quantum/rgb_matrix/animations/breathing_anim.h +++ b/quantum/rgb_matrix/animations/breathing_anim.h | |||
| @@ -13,8 +13,8 @@ bool BREATHING(effect_params_t* params) { | |||
| 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); |
| 15 | } | 15 | } |
| 16 | return led_max < DRIVER_LED_TOTAL; | 16 | return rgb_matrix_check_finished_leds(led_max); |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 19 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 20 | #endif // DISABLE_RGB_MATRIX_BREATHING | 20 | #endif // ENABLE_RGB_MATRIX_BREATHING |
diff --git a/quantum/rgb_matrix/animations/colorband_pinwheel_sat_anim.h b/quantum/rgb_matrix/animations/colorband_pinwheel_sat_anim.h index ac9578922..0375d4937 100644 --- a/quantum/rgb_matrix/animations/colorband_pinwheel_sat_anim.h +++ b/quantum/rgb_matrix/animations/colorband_pinwheel_sat_anim.h | |||
| @@ -10,4 +10,4 @@ static HSV BAND_PINWHEEL_SAT_math(HSV hsv, int16_t dx, int16_t dy, uint8_t time) | |||
| 10 | bool BAND_PINWHEEL_SAT(effect_params_t* params) { return effect_runner_dx_dy(params, &BAND_PINWHEEL_SAT_math); } | 10 | bool BAND_PINWHEEL_SAT(effect_params_t* params) { return effect_runner_dx_dy(params, &BAND_PINWHEEL_SAT_math); } |
| 11 | 11 | ||
| 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 13 | #endif // DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | 13 | #endif // ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT |
diff --git a/quantum/rgb_matrix/animations/colorband_pinwheel_val_anim.h b/quantum/rgb_matrix/animations/colorband_pinwheel_val_anim.h index f7fe4b76e..e40bf4cd1 100644 --- a/quantum/rgb_matrix/animations/colorband_pinwheel_val_anim.h +++ b/quantum/rgb_matrix/animations/colorband_pinwheel_val_anim.h | |||
| @@ -10,4 +10,4 @@ static HSV BAND_PINWHEEL_VAL_math(HSV hsv, int16_t dx, int16_t dy, uint8_t time) | |||
| 10 | bool BAND_PINWHEEL_VAL(effect_params_t* params) { return effect_runner_dx_dy(params, &BAND_PINWHEEL_VAL_math); } | 10 | bool BAND_PINWHEEL_VAL(effect_params_t* params) { return effect_runner_dx_dy(params, &BAND_PINWHEEL_VAL_math); } |
| 11 | 11 | ||
| 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 13 | #endif // DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL | 13 | #endif // ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL |
diff --git a/quantum/rgb_matrix/animations/colorband_sat_anim.h b/quantum/rgb_matrix/animations/colorband_sat_anim.h index 96a6cbf5c..1c4f7de57 100644 --- a/quantum/rgb_matrix/animations/colorband_sat_anim.h +++ b/quantum/rgb_matrix/animations/colorband_sat_anim.h | |||
| @@ -11,4 +11,4 @@ static HSV BAND_SAT_math(HSV hsv, uint8_t i, uint8_t time) { | |||
| 11 | bool BAND_SAT(effect_params_t* params) { return effect_runner_i(params, &BAND_SAT_math); } | 11 | bool BAND_SAT(effect_params_t* params) { return effect_runner_i(params, &BAND_SAT_math); } |
| 12 | 12 | ||
| 13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 14 | #endif // DISABLE_RGB_MATRIX_BAND_SAT | 14 | #endif // ENABLE_RGB_MATRIX_BAND_SAT |
diff --git a/quantum/rgb_matrix/animations/colorband_spiral_sat_anim.h b/quantum/rgb_matrix/animations/colorband_spiral_sat_anim.h index 52f6040d8..cdd02b379 100644 --- a/quantum/rgb_matrix/animations/colorband_spiral_sat_anim.h +++ b/quantum/rgb_matrix/animations/colorband_spiral_sat_anim.h | |||
| @@ -10,4 +10,4 @@ static HSV BAND_SPIRAL_SAT_math(HSV hsv, int16_t dx, int16_t dy, uint8_t dist, u | |||
| 10 | bool BAND_SPIRAL_SAT(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &BAND_SPIRAL_SAT_math); } | 10 | bool BAND_SPIRAL_SAT(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &BAND_SPIRAL_SAT_math); } |
| 11 | 11 | ||
| 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 13 | #endif // DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | 13 | #endif // ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT |
diff --git a/quantum/rgb_matrix/animations/colorband_spiral_val_anim.h b/quantum/rgb_matrix/animations/colorband_spiral_val_anim.h index d5752e27f..e1331eaeb 100644 --- a/quantum/rgb_matrix/animations/colorband_spiral_val_anim.h +++ b/quantum/rgb_matrix/animations/colorband_spiral_val_anim.h | |||
| @@ -10,4 +10,4 @@ static HSV BAND_SPIRAL_VAL_math(HSV hsv, int16_t dx, int16_t dy, uint8_t dist, u | |||
| 10 | bool BAND_SPIRAL_VAL(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &BAND_SPIRAL_VAL_math); } | 10 | bool BAND_SPIRAL_VAL(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &BAND_SPIRAL_VAL_math); } |
| 11 | 11 | ||
| 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 13 | #endif // DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL | 13 | #endif // ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL |
diff --git a/quantum/rgb_matrix/animations/colorband_val_anim.h b/quantum/rgb_matrix/animations/colorband_val_anim.h index 32bc6f52a..02ee4add6 100644 --- a/quantum/rgb_matrix/animations/colorband_val_anim.h +++ b/quantum/rgb_matrix/animations/colorband_val_anim.h | |||
| @@ -11,4 +11,4 @@ static HSV BAND_VAL_math(HSV hsv, uint8_t i, uint8_t time) { | |||
| 11 | bool BAND_VAL(effect_params_t* params) { return effect_runner_i(params, &BAND_VAL_math); } | 11 | bool BAND_VAL(effect_params_t* params) { return effect_runner_i(params, &BAND_VAL_math); } |
| 12 | 12 | ||
| 13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 14 | #endif // DISABLE_RGB_MATRIX_BAND_VAL | 14 | #endif // ENABLE_RGB_MATRIX_BAND_VAL |
diff --git a/quantum/rgb_matrix/animations/cycle_all_anim.h b/quantum/rgb_matrix/animations/cycle_all_anim.h index 20af94b6b..3b73b9d38 100644 --- a/quantum/rgb_matrix/animations/cycle_all_anim.h +++ b/quantum/rgb_matrix/animations/cycle_all_anim.h | |||
| @@ -10,4 +10,4 @@ static HSV CYCLE_ALL_math(HSV hsv, uint8_t i, uint8_t time) { | |||
| 10 | bool CYCLE_ALL(effect_params_t* params) { return effect_runner_i(params, &CYCLE_ALL_math); } | 10 | bool CYCLE_ALL(effect_params_t* params) { return effect_runner_i(params, &CYCLE_ALL_math); } |
| 11 | 11 | ||
| 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 13 | #endif // DISABLE_RGB_MATRIX_CYCLE_ALL | 13 | #endif // ENABLE_RGB_MATRIX_CYCLE_ALL |
diff --git a/quantum/rgb_matrix/animations/cycle_left_right_anim.h b/quantum/rgb_matrix/animations/cycle_left_right_anim.h index 7f84f4bd5..bf6a57406 100644 --- a/quantum/rgb_matrix/animations/cycle_left_right_anim.h +++ b/quantum/rgb_matrix/animations/cycle_left_right_anim.h | |||
| @@ -10,4 +10,4 @@ static HSV CYCLE_LEFT_RIGHT_math(HSV hsv, uint8_t i, uint8_t time) { | |||
| 10 | bool CYCLE_LEFT_RIGHT(effect_params_t* params) { return effect_runner_i(params, &CYCLE_LEFT_RIGHT_math); } | 10 | bool CYCLE_LEFT_RIGHT(effect_params_t* params) { return effect_runner_i(params, &CYCLE_LEFT_RIGHT_math); } |
| 11 | 11 | ||
| 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 13 | #endif // DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT | 13 | #endif // ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT |
diff --git a/quantum/rgb_matrix/animations/cycle_out_in_anim.h b/quantum/rgb_matrix/animations/cycle_out_in_anim.h index 2277f16a2..2bdb9d937 100644 --- a/quantum/rgb_matrix/animations/cycle_out_in_anim.h +++ b/quantum/rgb_matrix/animations/cycle_out_in_anim.h | |||
| @@ -10,4 +10,4 @@ static HSV CYCLE_OUT_IN_math(HSV hsv, int16_t dx, int16_t dy, uint8_t dist, uint | |||
| 10 | bool CYCLE_OUT_IN(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &CYCLE_OUT_IN_math); } | 10 | bool CYCLE_OUT_IN(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &CYCLE_OUT_IN_math); } |
| 11 | 11 | ||
| 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 13 | #endif // DISABLE_RGB_MATRIX_CYCLE_OUT_IN | 13 | #endif // ENABLE_RGB_MATRIX_CYCLE_OUT_IN |
diff --git a/quantum/rgb_matrix/animations/cycle_out_in_dual_anim.h b/quantum/rgb_matrix/animations/cycle_out_in_dual_anim.h index 981c0afd0..51979c44f 100644 --- a/quantum/rgb_matrix/animations/cycle_out_in_dual_anim.h +++ b/quantum/rgb_matrix/animations/cycle_out_in_dual_anim.h | |||
| @@ -12,4 +12,4 @@ static HSV CYCLE_OUT_IN_DUAL_math(HSV hsv, int16_t dx, int16_t dy, uint8_t time) | |||
| 12 | bool CYCLE_OUT_IN_DUAL(effect_params_t* params) { return effect_runner_dx_dy(params, &CYCLE_OUT_IN_DUAL_math); } | 12 | bool CYCLE_OUT_IN_DUAL(effect_params_t* params) { return effect_runner_dx_dy(params, &CYCLE_OUT_IN_DUAL_math); } |
| 13 | 13 | ||
| 14 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 14 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 15 | #endif // DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL | 15 | #endif // ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL |
diff --git a/quantum/rgb_matrix/animations/cycle_pinwheel_anim.h b/quantum/rgb_matrix/animations/cycle_pinwheel_anim.h index 1a7db4a4c..10ba2b7c2 100644 --- a/quantum/rgb_matrix/animations/cycle_pinwheel_anim.h +++ b/quantum/rgb_matrix/animations/cycle_pinwheel_anim.h | |||
| @@ -10,4 +10,4 @@ static HSV CYCLE_PINWHEEL_math(HSV hsv, int16_t dx, int16_t dy, uint8_t time) { | |||
| 10 | bool CYCLE_PINWHEEL(effect_params_t* params) { return effect_runner_dx_dy(params, &CYCLE_PINWHEEL_math); } | 10 | bool CYCLE_PINWHEEL(effect_params_t* params) { return effect_runner_dx_dy(params, &CYCLE_PINWHEEL_math); } |
| 11 | 11 | ||
| 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 13 | #endif // DISABLE_RGB_MATRIX_CYCLE_PINWHEEL | 13 | #endif // ENABLE_RGB_MATRIX_CYCLE_PINWHEEL |
diff --git a/quantum/rgb_matrix/animations/cycle_spiral_anim.h b/quantum/rgb_matrix/animations/cycle_spiral_anim.h index 245cdc237..482c7e7da 100644 --- a/quantum/rgb_matrix/animations/cycle_spiral_anim.h +++ b/quantum/rgb_matrix/animations/cycle_spiral_anim.h | |||
| @@ -10,4 +10,4 @@ static HSV CYCLE_SPIRAL_math(HSV hsv, int16_t dx, int16_t dy, uint8_t dist, uint | |||
| 10 | bool CYCLE_SPIRAL(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &CYCLE_SPIRAL_math); } | 10 | bool CYCLE_SPIRAL(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &CYCLE_SPIRAL_math); } |
| 11 | 11 | ||
| 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 13 | #endif // DISABLE_RGB_MATRIX_CYCLE_SPIRAL | 13 | #endif // ENABLE_RGB_MATRIX_CYCLE_SPIRAL |
diff --git a/quantum/rgb_matrix/animations/cycle_up_down_anim.h b/quantum/rgb_matrix/animations/cycle_up_down_anim.h index c9b5a5413..277edccb2 100644 --- a/quantum/rgb_matrix/animations/cycle_up_down_anim.h +++ b/quantum/rgb_matrix/animations/cycle_up_down_anim.h | |||
| @@ -10,4 +10,4 @@ static HSV CYCLE_UP_DOWN_math(HSV hsv, uint8_t i, uint8_t time) { | |||
| 10 | bool CYCLE_UP_DOWN(effect_params_t* params) { return effect_runner_i(params, &CYCLE_UP_DOWN_math); } | 10 | bool CYCLE_UP_DOWN(effect_params_t* params) { return effect_runner_i(params, &CYCLE_UP_DOWN_math); } |
| 11 | 11 | ||
| 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 13 | #endif // DISABLE_RGB_MATRIX_CYCLE_UP_DOWN | 13 | #endif // ENABLE_RGB_MATRIX_CYCLE_UP_DOWN |
diff --git a/quantum/rgb_matrix/animations/digital_rain_anim.h b/quantum/rgb_matrix/animations/digital_rain_anim.h index 1de45f8e8..8ce8fd703 100644 --- a/quantum/rgb_matrix/animations/digital_rain_anim.h +++ b/quantum/rgb_matrix/animations/digital_rain_anim.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #if defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS) && !defined(DISABLE_RGB_MATRIX_DIGITAL_RAIN) | 1 | #if defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS) && defined(ENABLE_RGB_MATRIX_DIGITAL_RAIN) |
| 2 | RGB_MATRIX_EFFECT(DIGITAL_RAIN) | 2 | RGB_MATRIX_EFFECT(DIGITAL_RAIN) |
| 3 | # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 3 | # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 4 | 4 | ||
| @@ -72,4 +72,4 @@ bool DIGITAL_RAIN(effect_params_t* params) { | |||
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 74 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 75 | #endif // defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS) && !defined(DISABLE_RGB_MATRIX_DIGITAL_RAIN) | 75 | #endif // defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS) && !defined(ENABLE_RGB_MATRIX_DIGITAL_RAIN) |
diff --git a/quantum/rgb_matrix/animations/dual_beacon_anim.h b/quantum/rgb_matrix/animations/dual_beacon_anim.h index 5c06080a2..dbe9b3ecf 100644 --- a/quantum/rgb_matrix/animations/dual_beacon_anim.h +++ b/quantum/rgb_matrix/animations/dual_beacon_anim.h | |||
| @@ -10,4 +10,4 @@ static HSV DUAL_BEACON_math(HSV hsv, int8_t sin, int8_t cos, uint8_t i, uint8_t | |||
| 10 | bool DUAL_BEACON(effect_params_t* params) { return effect_runner_sin_cos_i(params, &DUAL_BEACON_math); } | 10 | bool DUAL_BEACON(effect_params_t* params) { return effect_runner_sin_cos_i(params, &DUAL_BEACON_math); } |
| 11 | 11 | ||
| 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 13 | #endif // DISABLE_RGB_MATRIX_DUAL_BEACON | 13 | #endif // ENABLE_RGB_MATRIX_DUAL_BEACON |
diff --git a/quantum/rgb_matrix/animations/fractal_anim.h b/quantum/rgb_matrix/animations/fractal_anim.h new file mode 100644 index 000000000..83a69daa6 --- /dev/null +++ b/quantum/rgb_matrix/animations/fractal_anim.h | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | /* Copyright (C) 2021 @filterpaper | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | // Inspired from 4x12 fractal created by @schwarzgrau | ||
| 18 | |||
| 19 | #ifdef ENABLE_RGB_MATRIX_FRACTAL | ||
| 20 | RGB_MATRIX_EFFECT(FRACTAL) | ||
| 21 | # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS | ||
| 22 | |||
| 23 | static bool FRACTAL(effect_params_t* params) { | ||
| 24 | # define MID_COL MATRIX_COLS / 2 | ||
| 25 | static bool led[MATRIX_ROWS][MATRIX_COLS]; | ||
| 26 | |||
| 27 | static uint32_t wait_timer = 0; | ||
| 28 | if (wait_timer > g_rgb_timer) { | ||
| 29 | return false; | ||
| 30 | } | ||
| 31 | |||
| 32 | inline uint32_t interval(void) { return 3000 / scale16by8(qadd8(rgb_matrix_config.speed, 16), 16); } | ||
| 33 | |||
| 34 | RGB rgb = rgb_matrix_hsv_to_rgb(rgb_matrix_config.hsv); | ||
| 35 | for (uint8_t h = 0; h < MATRIX_ROWS; ++h) { | ||
| 36 | for (uint8_t l = 0; l < MID_COL - 1; ++l) { // Light and move left columns outwards | ||
| 37 | if (led[h][l]) { | ||
| 38 | rgb_matrix_set_color(g_led_config.matrix_co[h][l], rgb.r, rgb.g, rgb.b); | ||
| 39 | } else { | ||
| 40 | rgb_matrix_set_color(g_led_config.matrix_co[h][l], 0, 0, 0); | ||
| 41 | } | ||
| 42 | led[h][l] = led[h][l + 1]; | ||
| 43 | } | ||
| 44 | |||
| 45 | for (uint8_t r = MATRIX_COLS - 1; r > MID_COL; --r) { // Light and move right columns outwards | ||
| 46 | if (led[h][r]) { | ||
| 47 | rgb_matrix_set_color(g_led_config.matrix_co[h][r], rgb.r, rgb.g, rgb.b); | ||
| 48 | } else { | ||
| 49 | rgb_matrix_set_color(g_led_config.matrix_co[h][r], 0, 0, 0); | ||
| 50 | } | ||
| 51 | led[h][r] = led[h][r - 1]; | ||
| 52 | } | ||
| 53 | |||
| 54 | // Light both middle columns | ||
| 55 | if (led[h][MID_COL]) { | ||
| 56 | rgb_matrix_set_color(g_led_config.matrix_co[h][MID_COL], rgb.r, rgb.g, rgb.b); | ||
| 57 | } else { | ||
| 58 | rgb_matrix_set_color(g_led_config.matrix_co[h][MID_COL], 0, 0, 0); | ||
| 59 | } | ||
| 60 | if (led[h][MID_COL - 1]) { | ||
| 61 | rgb_matrix_set_color(g_led_config.matrix_co[h][MID_COL - 1], rgb.r, rgb.g, rgb.b); | ||
| 62 | } else { | ||
| 63 | rgb_matrix_set_color(g_led_config.matrix_co[h][MID_COL - 1], 0, 0, 0); | ||
| 64 | } | ||
| 65 | |||
| 66 | // Generate new random fractal columns | ||
| 67 | led[h][MID_COL] = led[h][MID_COL - 1] = (random8() & 3) ? false : true; | ||
| 68 | } | ||
| 69 | |||
| 70 | wait_timer = g_rgb_timer + interval(); | ||
| 71 | return false; | ||
| 72 | } | ||
| 73 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | ||
| 74 | #endif // ENABLE_RGB_MATRIX_FRACTAL | ||
diff --git a/quantum/rgb_matrix/animations/gradient_left_right_anim.h b/quantum/rgb_matrix/animations/gradient_left_right_anim.h index b4f2752ff..8bb5e570b 100644 --- a/quantum/rgb_matrix/animations/gradient_left_right_anim.h +++ b/quantum/rgb_matrix/animations/gradient_left_right_anim.h | |||
| @@ -15,8 +15,8 @@ bool GRADIENT_LEFT_RIGHT(effect_params_t* params) { | |||
| 15 | RGB rgb = rgb_matrix_hsv_to_rgb(hsv); | 15 | RGB rgb = rgb_matrix_hsv_to_rgb(hsv); |
| 16 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); | 16 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); |
| 17 | } | 17 | } |
| 18 | return led_max < DRIVER_LED_TOTAL; | 18 | return rgb_matrix_check_finished_leds(led_max); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 21 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 22 | #endif // DISABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT | 22 | #endif // ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT |
diff --git a/quantum/rgb_matrix/animations/gradient_up_down_anim.h b/quantum/rgb_matrix/animations/gradient_up_down_anim.h index 3fd45cf99..a5674583e 100644 --- a/quantum/rgb_matrix/animations/gradient_up_down_anim.h +++ b/quantum/rgb_matrix/animations/gradient_up_down_anim.h | |||
| @@ -15,8 +15,8 @@ bool GRADIENT_UP_DOWN(effect_params_t* params) { | |||
| 15 | RGB rgb = rgb_matrix_hsv_to_rgb(hsv); | 15 | RGB rgb = rgb_matrix_hsv_to_rgb(hsv); |
| 16 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); | 16 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); |
| 17 | } | 17 | } |
| 18 | return led_max < DRIVER_LED_TOTAL; | 18 | return rgb_matrix_check_finished_leds(led_max); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 21 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 22 | #endif // DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 22 | #endif // ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
diff --git a/quantum/rgb_matrix/animations/hue_breathing_anim.h b/quantum/rgb_matrix/animations/hue_breathing_anim.h index 6d974b8c3..82be1a442 100644 --- a/quantum/rgb_matrix/animations/hue_breathing_anim.h +++ b/quantum/rgb_matrix/animations/hue_breathing_anim.h | |||
| @@ -15,7 +15,7 @@ bool HUE_BREATHING(effect_params_t* params) { | |||
| 15 | RGB_MATRIX_TEST_LED_FLAGS(); | 15 | RGB_MATRIX_TEST_LED_FLAGS(); |
| 16 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); | 16 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); |
| 17 | } | 17 | } |
| 18 | return led_max < DRIVER_LED_TOTAL; | 18 | return rgb_matrix_check_finished_leds(led_max); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 21 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
diff --git a/quantum/rgb_matrix/animations/jellybean_raindrops_anim.h b/quantum/rgb_matrix/animations/jellybean_raindrops_anim.h index 7d8eafffb..3ffb57eb3 100644 --- a/quantum/rgb_matrix/animations/jellybean_raindrops_anim.h +++ b/quantum/rgb_matrix/animations/jellybean_raindrops_anim.h | |||
| @@ -22,8 +22,8 @@ bool JELLYBEAN_RAINDROPS(effect_params_t* params) { | |||
| 22 | for (int i = led_min; i < led_max; i++) { | 22 | for (int i = led_min; i < led_max; i++) { |
| 23 | jellybean_raindrops_set_color(i, params); | 23 | jellybean_raindrops_set_color(i, params); |
| 24 | } | 24 | } |
| 25 | return led_max < DRIVER_LED_TOTAL; | 25 | return rgb_matrix_check_finished_leds(led_max); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 28 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 29 | #endif // DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS | 29 | #endif // ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS |
diff --git a/quantum/rgb_matrix/animations/pixel_rain_anim.h b/quantum/rgb_matrix/animations/pixel_rain_anim.h new file mode 100644 index 000000000..0209d3303 --- /dev/null +++ b/quantum/rgb_matrix/animations/pixel_rain_anim.h | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | /* Copyright (C) 2021 @filterpaper | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #ifdef ENABLE_RGB_MATRIX_PIXEL_RAIN | ||
| 18 | RGB_MATRIX_EFFECT(PIXEL_RAIN) | ||
| 19 | # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS | ||
| 20 | |||
| 21 | static bool PIXEL_RAIN(effect_params_t* params) { | ||
| 22 | static uint32_t wait_timer = 0; | ||
| 23 | if (wait_timer > g_rgb_timer) { return false; } | ||
| 24 | |||
| 25 | inline uint32_t interval(void) { return 500 / scale16by8(qadd8(rgb_matrix_config.speed, 16), 16); } | ||
| 26 | |||
| 27 | bool rain_pixel(uint8_t i, effect_params_t* params, bool off) { | ||
| 28 | if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) { return true; } | ||
| 29 | if (off) { | ||
| 30 | rgb_matrix_set_color(i, 0,0,0); | ||
| 31 | } else { | ||
| 32 | HSV hsv = {random8(), qadd8(random8() >> 1, 127), rgb_matrix_config.hsv.v}; | ||
| 33 | RGB rgb = rgb_matrix_hsv_to_rgb(hsv); | ||
| 34 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); | ||
| 35 | } | ||
| 36 | wait_timer = g_rgb_timer + interval(); | ||
| 37 | return false; | ||
| 38 | } | ||
| 39 | |||
| 40 | return rain_pixel(mod8(random8(), DRIVER_LED_TOTAL), params, random8() & 2); | ||
| 41 | } | ||
| 42 | |||
| 43 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | ||
| 44 | #endif // ENABLE_RGB_MATRIX_PIXEL_RAIN | ||
diff --git a/quantum/rgb_matrix/animations/rainbow_beacon_anim.h b/quantum/rgb_matrix/animations/rainbow_beacon_anim.h index b54d997f6..cd529958d 100644 --- a/quantum/rgb_matrix/animations/rainbow_beacon_anim.h +++ b/quantum/rgb_matrix/animations/rainbow_beacon_anim.h | |||
| @@ -10,4 +10,4 @@ static HSV RAINBOW_BEACON_math(HSV hsv, int8_t sin, int8_t cos, uint8_t i, uint8 | |||
| 10 | bool RAINBOW_BEACON(effect_params_t* params) { return effect_runner_sin_cos_i(params, &RAINBOW_BEACON_math); } | 10 | bool RAINBOW_BEACON(effect_params_t* params) { return effect_runner_sin_cos_i(params, &RAINBOW_BEACON_math); } |
| 11 | 11 | ||
| 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 13 | #endif // DISABLE_RGB_MATRIX_RAINBOW_BEACON | 13 | #endif // ENABLE_RGB_MATRIX_RAINBOW_BEACON |
diff --git a/quantum/rgb_matrix/animations/rainbow_moving_chevron_anim.h b/quantum/rgb_matrix/animations/rainbow_moving_chevron_anim.h index 50db92201..2f3de64e9 100644 --- a/quantum/rgb_matrix/animations/rainbow_moving_chevron_anim.h +++ b/quantum/rgb_matrix/animations/rainbow_moving_chevron_anim.h | |||
| @@ -10,4 +10,4 @@ static HSV RAINBOW_MOVING_CHEVRON_math(HSV hsv, uint8_t i, uint8_t time) { | |||
| 10 | bool RAINBOW_MOVING_CHEVRON(effect_params_t* params) { return effect_runner_i(params, &RAINBOW_MOVING_CHEVRON_math); } | 10 | bool RAINBOW_MOVING_CHEVRON(effect_params_t* params) { return effect_runner_i(params, &RAINBOW_MOVING_CHEVRON_math); } |
| 11 | 11 | ||
| 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 13 | #endif // DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON | 13 | #endif // ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON |
diff --git a/quantum/rgb_matrix/animations/rainbow_pinwheels_anim.h b/quantum/rgb_matrix/animations/rainbow_pinwheels_anim.h index 3299f15df..dae2b5d19 100644 --- a/quantum/rgb_matrix/animations/rainbow_pinwheels_anim.h +++ b/quantum/rgb_matrix/animations/rainbow_pinwheels_anim.h | |||
| @@ -10,4 +10,4 @@ static HSV RAINBOW_PINWHEELS_math(HSV hsv, int8_t sin, int8_t cos, uint8_t i, ui | |||
| 10 | bool RAINBOW_PINWHEELS(effect_params_t* params) { return effect_runner_sin_cos_i(params, &RAINBOW_PINWHEELS_math); } | 10 | bool RAINBOW_PINWHEELS(effect_params_t* params) { return effect_runner_sin_cos_i(params, &RAINBOW_PINWHEELS_math); } |
| 11 | 11 | ||
| 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 13 | #endif // DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS | 13 | #endif // ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS |
diff --git a/quantum/rgb_matrix/animations/raindrops_anim.h b/quantum/rgb_matrix/animations/raindrops_anim.h index c01688e2c..4b1b9dd9e 100644 --- a/quantum/rgb_matrix/animations/raindrops_anim.h +++ b/quantum/rgb_matrix/animations/raindrops_anim.h | |||
| @@ -32,8 +32,8 @@ bool RAINDROPS(effect_params_t* params) { | |||
| 32 | for (int i = led_min; i < led_max; i++) { | 32 | for (int i = led_min; i < led_max; i++) { |
| 33 | raindrops_set_color(i, params); | 33 | raindrops_set_color(i, params); |
| 34 | } | 34 | } |
| 35 | return led_max < DRIVER_LED_TOTAL; | 35 | return rgb_matrix_check_finished_leds(led_max); |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 38 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 39 | #endif // DISABLE_RGB_MATRIX_RAINDROPS | 39 | #endif // ENABLE_RGB_MATRIX_RAINDROPS |
diff --git a/quantum/rgb_matrix/animations/rgb_matrix_effects.inc b/quantum/rgb_matrix/animations/rgb_matrix_effects.inc index 302ad79c0..8ecf4367f 100644 --- a/quantum/rgb_matrix/animations/rgb_matrix_effects.inc +++ b/quantum/rgb_matrix/animations/rgb_matrix_effects.inc | |||
| @@ -26,6 +26,8 @@ | |||
| 26 | #include "hue_breathing_anim.h" | 26 | #include "hue_breathing_anim.h" |
| 27 | #include "hue_pendulum_anim.h" | 27 | #include "hue_pendulum_anim.h" |
| 28 | #include "hue_wave_anim.h" | 28 | #include "hue_wave_anim.h" |
| 29 | #include "fractal_anim.h" | ||
| 30 | #include "pixel_rain_anim.h" | ||
| 29 | #include "typing_heatmap_anim.h" | 31 | #include "typing_heatmap_anim.h" |
| 30 | #include "digital_rain_anim.h" | 32 | #include "digital_rain_anim.h" |
| 31 | #include "solid_reactive_simple_anim.h" | 33 | #include "solid_reactive_simple_anim.h" |
diff --git a/quantum/rgb_matrix/animations/runners/effect_runner_dx_dy.h b/quantum/rgb_matrix/animations/runners/effect_runner_dx_dy.h index 4867609c8..2ad0f22c2 100644 --- a/quantum/rgb_matrix/animations/runners/effect_runner_dx_dy.h +++ b/quantum/rgb_matrix/animations/runners/effect_runner_dx_dy.h | |||
| @@ -13,5 +13,5 @@ bool effect_runner_dx_dy(effect_params_t* params, dx_dy_f effect_func) { | |||
| 13 | RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, dx, dy, time)); | 13 | RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, dx, dy, time)); |
| 14 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); | 14 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); |
| 15 | } | 15 | } |
| 16 | return led_max < DRIVER_LED_TOTAL; | 16 | return rgb_matrix_check_finished_leds(led_max); |
| 17 | } | 17 | } |
diff --git a/quantum/rgb_matrix/animations/runners/effect_runner_dx_dy_dist.h b/quantum/rgb_matrix/animations/runners/effect_runner_dx_dy_dist.h index 9545b418d..bcae7c79b 100644 --- a/quantum/rgb_matrix/animations/runners/effect_runner_dx_dy_dist.h +++ b/quantum/rgb_matrix/animations/runners/effect_runner_dx_dy_dist.h | |||
| @@ -14,5 +14,5 @@ bool effect_runner_dx_dy_dist(effect_params_t* params, dx_dy_dist_f effect_func) | |||
| 14 | RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, dx, dy, dist, time)); | 14 | RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, dx, dy, dist, time)); |
| 15 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); | 15 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); |
| 16 | } | 16 | } |
| 17 | return led_max < DRIVER_LED_TOTAL; | 17 | return rgb_matrix_check_finished_leds(led_max); |
| 18 | } | 18 | } |
diff --git a/quantum/rgb_matrix/animations/runners/effect_runner_i.h b/quantum/rgb_matrix/animations/runners/effect_runner_i.h index 1881cd6c6..b4de2992b 100644 --- a/quantum/rgb_matrix/animations/runners/effect_runner_i.h +++ b/quantum/rgb_matrix/animations/runners/effect_runner_i.h | |||
| @@ -11,5 +11,5 @@ bool effect_runner_i(effect_params_t* params, i_f effect_func) { | |||
| 11 | RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, i, time)); | 11 | RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, i, time)); |
| 12 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); | 12 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); |
| 13 | } | 13 | } |
| 14 | return led_max < DRIVER_LED_TOTAL; | 14 | return rgb_matrix_check_finished_leds(led_max); |
| 15 | } | 15 | } |
diff --git a/quantum/rgb_matrix/animations/runners/effect_runner_reactive.h b/quantum/rgb_matrix/animations/runners/effect_runner_reactive.h index 75b7c0df4..d5c1a26ce 100644 --- a/quantum/rgb_matrix/animations/runners/effect_runner_reactive.h +++ b/quantum/rgb_matrix/animations/runners/effect_runner_reactive.h | |||
| @@ -23,7 +23,7 @@ bool effect_runner_reactive(effect_params_t* params, reactive_f effect_func) { | |||
| 23 | RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, offset)); | 23 | RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, offset)); |
| 24 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); | 24 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); |
| 25 | } | 25 | } |
| 26 | return led_max < DRIVER_LED_TOTAL; | 26 | return rgb_matrix_check_finished_leds(led_max); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 29 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/runners/effect_runner_reactive_splash.h b/quantum/rgb_matrix/animations/runners/effect_runner_reactive_splash.h index 2e46ffb35..d3a6e4e72 100644 --- a/quantum/rgb_matrix/animations/runners/effect_runner_reactive_splash.h +++ b/quantum/rgb_matrix/animations/runners/effect_runner_reactive_splash.h | |||
| @@ -23,7 +23,7 @@ bool effect_runner_reactive_splash(uint8_t start, effect_params_t* params, react | |||
| 23 | RGB rgb = rgb_matrix_hsv_to_rgb(hsv); | 23 | RGB rgb = rgb_matrix_hsv_to_rgb(hsv); |
| 24 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); | 24 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); |
| 25 | } | 25 | } |
| 26 | return led_max < DRIVER_LED_TOTAL; | 26 | return rgb_matrix_check_finished_leds(led_max); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 29 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/runners/effect_runner_sin_cos_i.h b/quantum/rgb_matrix/animations/runners/effect_runner_sin_cos_i.h index 02351de51..7776491d5 100644 --- a/quantum/rgb_matrix/animations/runners/effect_runner_sin_cos_i.h +++ b/quantum/rgb_matrix/animations/runners/effect_runner_sin_cos_i.h | |||
| @@ -13,5 +13,5 @@ bool effect_runner_sin_cos_i(effect_params_t* params, sin_cos_i_f effect_func) { | |||
| 13 | RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, cos_value, sin_value, i, time)); | 13 | RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, cos_value, sin_value, i, time)); |
| 14 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); | 14 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); |
| 15 | } | 15 | } |
| 16 | return led_max < DRIVER_LED_TOTAL; | 16 | return rgb_matrix_check_finished_leds(led_max); |
| 17 | } | 17 | } |
diff --git a/quantum/rgb_matrix/animations/solid_color_anim.h b/quantum/rgb_matrix/animations/solid_color_anim.h index 79d63cf13..420995946 100644 --- a/quantum/rgb_matrix/animations/solid_color_anim.h +++ b/quantum/rgb_matrix/animations/solid_color_anim.h | |||
| @@ -9,7 +9,7 @@ bool SOLID_COLOR(effect_params_t* params) { | |||
| 9 | RGB_MATRIX_TEST_LED_FLAGS(); | 9 | RGB_MATRIX_TEST_LED_FLAGS(); |
| 10 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); | 10 | rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); |
| 11 | } | 11 | } |
| 12 | return led_max < DRIVER_LED_TOTAL; | 12 | return rgb_matrix_check_finished_leds(led_max); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | #endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 15 | #endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
diff --git a/quantum/rgb_matrix/animations/solid_reactive_anim.h b/quantum/rgb_matrix/animations/solid_reactive_anim.h index d45bb961b..360d05a67 100644 --- a/quantum/rgb_matrix/animations/solid_reactive_anim.h +++ b/quantum/rgb_matrix/animations/solid_reactive_anim.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED |
| 2 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE | 2 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE |
| 3 | RGB_MATRIX_EFFECT(SOLID_REACTIVE) | 3 | RGB_MATRIX_EFFECT(SOLID_REACTIVE) |
| 4 | # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 4 | # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 5 | 5 | ||
| @@ -11,5 +11,5 @@ static HSV SOLID_REACTIVE_math(HSV hsv, uint16_t offset) { | |||
| 11 | bool SOLID_REACTIVE(effect_params_t* params) { return effect_runner_reactive(params, &SOLID_REACTIVE_math); } | 11 | bool SOLID_REACTIVE(effect_params_t* params) { return effect_runner_reactive(params, &SOLID_REACTIVE_math); } |
| 12 | 12 | ||
| 13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 14 | # endif // DISABLE_RGB_MATRIX_SOLID_REACTIVE | 14 | # endif // ENABLE_RGB_MATRIX_SOLID_REACTIVE |
| 15 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 15 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/solid_reactive_cross.h b/quantum/rgb_matrix/animations/solid_reactive_cross.h index f76c68e8c..496651f8a 100644 --- a/quantum/rgb_matrix/animations/solid_reactive_cross.h +++ b/quantum/rgb_matrix/animations/solid_reactive_cross.h | |||
| @@ -1,11 +1,11 @@ | |||
| 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED |
| 2 | # if !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS) | 2 | # if defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS) || defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS) |
| 3 | 3 | ||
| 4 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | 4 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS |
| 5 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_CROSS) | 5 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_CROSS) |
| 6 | # endif | 6 | # endif |
| 7 | 7 | ||
| 8 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | 8 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS |
| 9 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_MULTICROSS) | 9 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_MULTICROSS) |
| 10 | # endif | 10 | # endif |
| 11 | 11 | ||
| @@ -23,14 +23,14 @@ static HSV SOLID_REACTIVE_CROSS_math(HSV hsv, int16_t dx, int16_t dy, uint8_t di | |||
| 23 | return hsv; | 23 | return hsv; |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | 26 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS |
| 27 | bool SOLID_REACTIVE_CROSS(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_REACTIVE_CROSS_math); } | 27 | bool SOLID_REACTIVE_CROSS(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_REACTIVE_CROSS_math); } |
| 28 | # endif | 28 | # endif |
| 29 | 29 | ||
| 30 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | 30 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS |
| 31 | bool SOLID_REACTIVE_MULTICROSS(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_REACTIVE_CROSS_math); } | 31 | bool SOLID_REACTIVE_MULTICROSS(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_REACTIVE_CROSS_math); } |
| 32 | # endif | 32 | # endif |
| 33 | 33 | ||
| 34 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 34 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 35 | # endif // !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS) | 35 | # endif // !defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS) || defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS) |
| 36 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 36 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/solid_reactive_nexus.h b/quantum/rgb_matrix/animations/solid_reactive_nexus.h index 17f94e3c1..3562e74a7 100644 --- a/quantum/rgb_matrix/animations/solid_reactive_nexus.h +++ b/quantum/rgb_matrix/animations/solid_reactive_nexus.h | |||
| @@ -1,11 +1,11 @@ | |||
| 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED |
| 2 | # if !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS) | 2 | # if defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS) || defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS) |
| 3 | 3 | ||
| 4 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS | 4 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS |
| 5 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_NEXUS) | 5 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_NEXUS) |
| 6 | # endif | 6 | # endif |
| 7 | 7 | ||
| 8 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | 8 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS |
| 9 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_MULTINEXUS) | 9 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_MULTINEXUS) |
| 10 | # endif | 10 | # endif |
| 11 | 11 | ||
| @@ -21,14 +21,14 @@ static HSV SOLID_REACTIVE_NEXUS_math(HSV hsv, int16_t dx, int16_t dy, uint8_t di | |||
| 21 | return hsv; | 21 | return hsv; |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS | 24 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS |
| 25 | bool SOLID_REACTIVE_NEXUS(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_REACTIVE_NEXUS_math); } | 25 | bool SOLID_REACTIVE_NEXUS(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_REACTIVE_NEXUS_math); } |
| 26 | # endif | 26 | # endif |
| 27 | 27 | ||
| 28 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | 28 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS |
| 29 | bool SOLID_REACTIVE_MULTINEXUS(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_REACTIVE_NEXUS_math); } | 29 | bool SOLID_REACTIVE_MULTINEXUS(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_REACTIVE_NEXUS_math); } |
| 30 | # endif | 30 | # endif |
| 31 | 31 | ||
| 32 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 32 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 33 | # endif // !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS) | 33 | # endif // !defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS) || !defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS) |
| 34 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 34 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/solid_reactive_simple_anim.h b/quantum/rgb_matrix/animations/solid_reactive_simple_anim.h index 12eb248cc..69189f636 100644 --- a/quantum/rgb_matrix/animations/solid_reactive_simple_anim.h +++ b/quantum/rgb_matrix/animations/solid_reactive_simple_anim.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED |
| 2 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | 2 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE |
| 3 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_SIMPLE) | 3 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_SIMPLE) |
| 4 | # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 4 | # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 5 | 5 | ||
| @@ -11,5 +11,5 @@ static HSV SOLID_REACTIVE_SIMPLE_math(HSV hsv, uint16_t offset) { | |||
| 11 | bool SOLID_REACTIVE_SIMPLE(effect_params_t* params) { return effect_runner_reactive(params, &SOLID_REACTIVE_SIMPLE_math); } | 11 | bool SOLID_REACTIVE_SIMPLE(effect_params_t* params) { return effect_runner_reactive(params, &SOLID_REACTIVE_SIMPLE_math); } |
| 12 | 12 | ||
| 13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 14 | # endif // DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | 14 | # endif // ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE |
| 15 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 15 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/solid_reactive_wide.h b/quantum/rgb_matrix/animations/solid_reactive_wide.h index 1cc4dca72..a613c7ff5 100644 --- a/quantum/rgb_matrix/animations/solid_reactive_wide.h +++ b/quantum/rgb_matrix/animations/solid_reactive_wide.h | |||
| @@ -1,11 +1,11 @@ | |||
| 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED |
| 2 | # if !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE) | 2 | # if defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE) || defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE) |
| 3 | 3 | ||
| 4 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE | 4 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE |
| 5 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_WIDE) | 5 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_WIDE) |
| 6 | # endif | 6 | # endif |
| 7 | 7 | ||
| 8 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | 8 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE |
| 9 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_MULTIWIDE) | 9 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_MULTIWIDE) |
| 10 | # endif | 10 | # endif |
| 11 | 11 | ||
| @@ -18,14 +18,14 @@ static HSV SOLID_REACTIVE_WIDE_math(HSV hsv, int16_t dx, int16_t dy, uint8_t dis | |||
| 18 | return hsv; | 18 | return hsv; |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE | 21 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE |
| 22 | bool SOLID_REACTIVE_WIDE(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_REACTIVE_WIDE_math); } | 22 | bool SOLID_REACTIVE_WIDE(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_REACTIVE_WIDE_math); } |
| 23 | # endif | 23 | # endif |
| 24 | 24 | ||
| 25 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | 25 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE |
| 26 | bool SOLID_REACTIVE_MULTIWIDE(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_REACTIVE_WIDE_math); } | 26 | bool SOLID_REACTIVE_MULTIWIDE(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_REACTIVE_WIDE_math); } |
| 27 | # endif | 27 | # endif |
| 28 | 28 | ||
| 29 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 29 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 30 | # endif // !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE) | 30 | # endif // !defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE) || !defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE) |
| 31 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 31 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/solid_splash_anim.h b/quantum/rgb_matrix/animations/solid_splash_anim.h index 99efb4996..bd9c1cfe2 100644 --- a/quantum/rgb_matrix/animations/solid_splash_anim.h +++ b/quantum/rgb_matrix/animations/solid_splash_anim.h | |||
| @@ -1,11 +1,11 @@ | |||
| 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED |
| 2 | # if !defined(DISABLE_RGB_MATRIX_SOLID_SPLASH) || !defined(DISABLE_RGB_MATRIX_SOLID_MULTISPLASH) | 2 | # if defined(ENABLE_RGB_MATRIX_SOLID_SPLASH) || defined(ENABLE_RGB_MATRIX_SOLID_MULTISPLASH) |
| 3 | 3 | ||
| 4 | # ifndef DISABLE_RGB_MATRIX_SOLID_SPLASH | 4 | # ifdef ENABLE_RGB_MATRIX_SOLID_SPLASH |
| 5 | RGB_MATRIX_EFFECT(SOLID_SPLASH) | 5 | RGB_MATRIX_EFFECT(SOLID_SPLASH) |
| 6 | # endif | 6 | # endif |
| 7 | 7 | ||
| 8 | # ifndef DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 8 | # ifdef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH |
| 9 | RGB_MATRIX_EFFECT(SOLID_MULTISPLASH) | 9 | RGB_MATRIX_EFFECT(SOLID_MULTISPLASH) |
| 10 | # endif | 10 | # endif |
| 11 | 11 | ||
| @@ -18,14 +18,14 @@ HSV SOLID_SPLASH_math(HSV hsv, int16_t dx, int16_t dy, uint8_t dist, uint16_t ti | |||
| 18 | return hsv; | 18 | return hsv; |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | # ifndef DISABLE_RGB_MATRIX_SOLID_SPLASH | 21 | # ifdef ENABLE_RGB_MATRIX_SOLID_SPLASH |
| 22 | bool SOLID_SPLASH(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_SPLASH_math); } | 22 | bool SOLID_SPLASH(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_SPLASH_math); } |
| 23 | # endif | 23 | # endif |
| 24 | 24 | ||
| 25 | # ifndef DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 25 | # ifdef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH |
| 26 | bool SOLID_MULTISPLASH(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_SPLASH_math); } | 26 | bool SOLID_MULTISPLASH(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_SPLASH_math); } |
| 27 | # endif | 27 | # endif |
| 28 | 28 | ||
| 29 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 29 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 30 | # endif // !defined(DISABLE_RGB_MATRIX_SPLASH) && !defined(DISABLE_RGB_MATRIX_MULTISPLASH) | 30 | # endif // !defined(ENABLE_RGB_MATRIX_SPLASH) && !defined(ENABLE_RGB_MATRIX_MULTISPLASH) |
| 31 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 31 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/splash_anim.h b/quantum/rgb_matrix/animations/splash_anim.h index 1415bcc0f..382355e9e 100644 --- a/quantum/rgb_matrix/animations/splash_anim.h +++ b/quantum/rgb_matrix/animations/splash_anim.h | |||
| @@ -1,11 +1,11 @@ | |||
| 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED |
| 2 | # if !defined(DISABLE_RGB_MATRIX_SPLASH) || !defined(DISABLE_RGB_MATRIX_MULTISPLASH) | 2 | # if defined(ENABLE_RGB_MATRIX_SPLASH) || defined(ENABLE_RGB_MATRIX_MULTISPLASH) |
| 3 | 3 | ||
| 4 | # ifndef DISABLE_RGB_MATRIX_SPLASH | 4 | # ifdef ENABLE_RGB_MATRIX_SPLASH |
| 5 | RGB_MATRIX_EFFECT(SPLASH) | 5 | RGB_MATRIX_EFFECT(SPLASH) |
| 6 | # endif | 6 | # endif |
| 7 | 7 | ||
| 8 | # ifndef DISABLE_RGB_MATRIX_MULTISPLASH | 8 | # ifdef ENABLE_RGB_MATRIX_MULTISPLASH |
| 9 | RGB_MATRIX_EFFECT(MULTISPLASH) | 9 | RGB_MATRIX_EFFECT(MULTISPLASH) |
| 10 | # endif | 10 | # endif |
| 11 | 11 | ||
| @@ -19,14 +19,14 @@ HSV SPLASH_math(HSV hsv, int16_t dx, int16_t dy, uint8_t dist, uint16_t tick) { | |||
| 19 | return hsv; | 19 | return hsv; |
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | # ifndef DISABLE_RGB_MATRIX_SPLASH | 22 | # ifdef ENABLE_RGB_MATRIX_SPLASH |
| 23 | bool SPLASH(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SPLASH_math); } | 23 | bool SPLASH(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SPLASH_math); } |
| 24 | # endif | 24 | # endif |
| 25 | 25 | ||
| 26 | # ifndef DISABLE_RGB_MATRIX_MULTISPLASH | 26 | # ifdef ENABLE_RGB_MATRIX_MULTISPLASH |
| 27 | bool MULTISPLASH(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SPLASH_math); } | 27 | bool MULTISPLASH(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SPLASH_math); } |
| 28 | # endif | 28 | # endif |
| 29 | 29 | ||
| 30 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 30 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 31 | # endif // !defined(DISABLE_RGB_MATRIX_SPLASH) || !defined(DISABLE_RGB_MATRIX_MULTISPLASH) | 31 | # endif // !defined(ENABLE_RGB_MATRIX_SPLASH) || !defined(ENABLE_RGB_MATRIX_MULTISPLASH) |
| 32 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 32 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/typing_heatmap_anim.h b/quantum/rgb_matrix/animations/typing_heatmap_anim.h index 28f040109..b66667b9b 100644 --- a/quantum/rgb_matrix/animations/typing_heatmap_anim.h +++ b/quantum/rgb_matrix/animations/typing_heatmap_anim.h | |||
| @@ -83,4 +83,4 @@ bool TYPING_HEATMAP(effect_params_t* params) { | |||
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 85 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
| 86 | #endif // defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS) && !defined(DISABLE_RGB_MATRIX_TYPING_HEATMAP) | 86 | #endif // defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS) && defined(ENABLE_RGB_MATRIX_TYPING_HEATMAP) |
