pitrix/include/effect_clock.h

25 lines
538 B
C
Raw Normal View History

#pragma once
#include "Effect.h"
#include "prototypes.h"
#include "my_fastled.h"
#include "Window.h"
class ClockEffect : public Effect {
2019-09-25 16:11:52 +00:00
protected:
Window* window = new Window(0, LED_HEIGHT - 6, LED_WIDTH, 6);
2019-06-07 04:24:16 +00:00
public:
2019-06-19 20:23:49 +00:00
~ClockEffect();
2019-09-25 16:11:52 +00:00
virtual void loop();
String get_name() override { return "clock"; }
2019-09-25 16:11:52 +00:00
void loop_with_invert(bool invert);
void loop(boolean invert, CRGB fg_color, CRGB bg_color, uint8_t y);
};
class NightClockEffect : public ClockEffect {
public:
NightClockEffect();
void loop() override;
};