Effect Clock * Trying to get the nightclock effect to work...

This commit is contained in:
Fabian Schlenz 2020-04-28 17:45:29 +02:00
parent 6ba916282b
commit c6b2a8a1d0
2 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,7 @@ protected:
Window* window = new Window(0, LED_HEIGHT - 6, LED_WIDTH, 6);
public:
~ClockEffect();
virtual ~ClockEffect();
virtual void loop(uint16_t ms);
String get_name() override { return "clock"; }
void loop_with_invert(bool invert);
@ -20,5 +20,6 @@ public:
class NightClockEffect : public ClockEffect {
public:
NightClockEffect();
~NightClockEffect();
void loop(uint16_t ms) override;
};

View File

@ -66,3 +66,7 @@ void ClockEffect::loop(boolean invert, CRGB fg_color, CRGB bg_color, uint8_t yPo
ClockEffect::~ClockEffect() {
delete window;
}
NightClockEffect::~NightClockEffect() {
delete window;
}