From 632456285de560a8dbabb75be74b2bb337c1a828 Mon Sep 17 00:00:00 2001 From: HorrorTroll Date: Wed, 2 Feb 2022 19:45:46 +0700 Subject: [PATCH] Added Pixel Rain and Fractal to VIALRGB effects (#109) * Added Pixel Rain and Fractal to VIALRGB effects * Move those 2 effects, into last enum list --- quantum/rgb_matrix/animations/pixel_fractal_anim.h | 1 + quantum/rgb_matrix/animations/pixel_rain_anim.h | 1 + quantum/vialrgb_effects.inc | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/quantum/rgb_matrix/animations/pixel_fractal_anim.h b/quantum/rgb_matrix/animations/pixel_fractal_anim.h index 8e25ec402c..3939094ead 100644 --- a/quantum/rgb_matrix/animations/pixel_fractal_anim.h +++ b/quantum/rgb_matrix/animations/pixel_fractal_anim.h @@ -17,6 +17,7 @@ // Inspired from 4x12 fractal created by @schwarzgrau #ifdef ENABLE_RGB_MATRIX_PIXEL_FRACTAL +#define RGB_MATRIX_EFFECT_PIXEL_FRACTAL RGB_MATRIX_EFFECT(PIXEL_FRACTAL) # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS diff --git a/quantum/rgb_matrix/animations/pixel_rain_anim.h b/quantum/rgb_matrix/animations/pixel_rain_anim.h index 001649aa6e..791361542f 100644 --- a/quantum/rgb_matrix/animations/pixel_rain_anim.h +++ b/quantum/rgb_matrix/animations/pixel_rain_anim.h @@ -15,6 +15,7 @@ */ #ifdef ENABLE_RGB_MATRIX_PIXEL_RAIN +#define RGB_MATRIX_EFFECT_PIXEL_RAIN RGB_MATRIX_EFFECT(PIXEL_RAIN) # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS diff --git a/quantum/vialrgb_effects.inc b/quantum/vialrgb_effects.inc index 1d21ce3813..36ef22659b 100644 --- a/quantum/vialrgb_effects.inc +++ b/quantum/vialrgb_effects.inc @@ -45,6 +45,8 @@ enum { VIALRGB_EFFECT_MULTISPLASH, VIALRGB_EFFECT_SOLID_SPLASH, VIALRGB_EFFECT_SOLID_MULTISPLASH, + VIALRGB_EFFECT_PIXEL_RAIN, + VIALRGB_EFFECT_PIXEL_FRACTAL, }; static const PROGMEM vialrgb_supported_mode_t supported_modes[] = { @@ -175,4 +177,10 @@ static const PROGMEM vialrgb_supported_mode_t supported_modes[] = { #ifdef RGB_MATRIX_EFFECT_SOLID_MULTISPLASH { VIALRGB_EFFECT_SOLID_MULTISPLASH, RGB_MATRIX_SOLID_MULTISPLASH }, #endif +#ifdef RGB_MATRIX_EFFECT_PIXEL_RAIN + { VIALRGB_EFFECT_PIXEL_RAIN, RGB_MATRIX_PIXEL_RAIN }, +#endif +#ifdef RGB_MATRIX_EFFECT_PIXEL_FRACTAL + { VIALRGB_EFFECT_PIXEL_FRACTAL, RGB_MATRIX_PIXEL_FRACTAL }, +#endif };