Experiment in getting the differing delays in Single/MultiDynamic effects to work. Unsuccessful, for now.

This commit is contained in:
2019-06-03 06:43:50 +02:00
parent 7fdc28fe48
commit b2bc8aa75e
4 changed files with 25 additions and 9 deletions

View File

@ -4,9 +4,8 @@
#include "effect_single_dynamic.h"
class MultiDynamicEffect : public SingleDynamicEffect {
protected:
int getLoopTime();
public:
MultiDynamicEffect();
void update();
};

View File

@ -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();