Joined SingleDynamicEffect and MultiDynamicEffect into one file and finally got different timings for both classes to work.

This commit is contained in:
2019-06-05 06:27:07 +02:00
parent b2ff3bdc54
commit 57815cb3bf
6 changed files with 50 additions and 73 deletions

View File

@ -8,14 +8,14 @@
#include "effect_clock.h"
#include "effect_static.h"
#include "effect_animation.h"
#include "effect_single_dynamic.h"
#include "effect_multi_dynamic.h"
#include "effect_dynamic.h"
#include "effect_matrix.h"
#include "effect_twirl.h"
#include "effect_cycle.h"
#include "effect_confetti.h"
#include "effect_snake.h"
#include "effect_fire.h"
#include "effect_firework.h"
SimpleList<EffectEntry>* effects;
SimpleList<Effect*>* cycle_effects;
@ -26,9 +26,9 @@ BigClockEffect effect_big_clock;
//ClockEffect effect_clock; <-- generated as global variable in effects.h
BellEffect effect_bell;
StaticEffect effect_off(CRGB(0x000000));
AnimationEffect effect_anim_koopa(&animation_koopa, CRGB(0x000000), 0, 0);
AnimationEffect effect_anim_couple_rain(&animation_couple_rain, CRGB(0x000000), -8, -16);
AnimationEffect effect_anim_heart(&animation_heart, CRGB(0x000000), 0, 0);
AnimationEffect effect_anim_koopa(&animation_koopa, new CRGB(0x000000), 0, 0);
AnimationEffect effect_anim_couple_rain(&animation_couple_rain, new CRGB(0x000000), -8, -16);
AnimationEffect effect_anim_heart(&animation_heart, new CRGB(0x000000), 0, 0);
SingleDynamicEffect effect_single_dynamic;
MultiDynamicEffect effect_multi_dynamic;
MatrixEffect effect_matrix;
@ -37,6 +37,7 @@ TwirlEffect effect_twirl;
ConfettiEffect effect_confetti;
SnakeEffect effect_snake;
FireEffect effect_fire;
FireworkEffect effect_firework;
Effect* current_effect;
@ -60,6 +61,7 @@ void setup_effects() {
effects->add((EffectEntry){"confetti", (Effect *)&effect_confetti});
effects->add((EffectEntry){"snake", (Effect *)&effect_snake});
effects->add((EffectEntry){"fire", (Effect *)&effect_fire});
effects->add((EffectEntry){"firework", (Effect *)&effect_firework});
cycle_effects->add(&effect_sinematrix3);
cycle_effects->add(&effect_single_dynamic);