pitrix/include/effect_dynamic.h
Fabian Schlenz c5856a6f7a
Some checks failed
continuous-integration/drone/push Build is failing
Whitespace stuff. Tabs rule!
2019-06-07 06:24:16 +02:00

24 lines
518 B
C++

#pragma once
#include "Effect.h"
#include "config.h"
class SingleDynamicEffect : public Effect {
protected:
static const int factor = 2;
static const int tile_count = LED_WIDTH/factor * LED_HEIGHT/factor;
CRGB tiles[tile_count];
CRGB old_tiles[tile_count];
uint8_t blend = 0;
public:
SingleDynamicEffect();
void init();
boolean can_be_shown_with_clock();
virtual void loop();
void draw();
};
class MultiDynamicEffect : public SingleDynamicEffect {
public:
void loop();
};