Effect Clock * Trying to get the nightclock effect to work...
This commit is contained in:
parent
6ba916282b
commit
c6b2a8a1d0
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user