Experiment in getting the differing delays in Single/MultiDynamic effects to work. Unsuccessful, for now.
This commit is contained in:
@ -4,9 +4,8 @@
|
||||
#include "effect_single_dynamic.h"
|
||||
|
||||
class MultiDynamicEffect : public SingleDynamicEffect {
|
||||
protected:
|
||||
int getLoopTime();
|
||||
public:
|
||||
MultiDynamicEffect();
|
||||
void update();
|
||||
};
|
||||
|
||||
|
@ -8,12 +8,13 @@ class SingleDynamicEffect : public Effect {
|
||||
protected:
|
||||
static const int factor = 2;
|
||||
static const int tile_count = LED_WIDTH/factor * LED_HEIGHT/factor;
|
||||
virtual int getLoopTime();
|
||||
int loopTime = 200;
|
||||
CRGB tiles[tile_count];
|
||||
CRGB old_tiles[tile_count];
|
||||
uint8_t blend = 0;
|
||||
public:
|
||||
SingleDynamicEffect();
|
||||
void init();
|
||||
virtual void update();
|
||||
boolean can_be_shown_with_clock();
|
||||
virtual void loop();
|
||||
|
Reference in New Issue
Block a user