2019-06-11 17:48:09 +00:00
|
|
|
#pragma once
|
2019-05-29 22:49:54 +00:00
|
|
|
|
|
|
|
#include "Effect.h"
|
|
|
|
#include "prototypes.h"
|
2019-06-11 17:48:09 +00:00
|
|
|
#include "my_fastled.h"
|
|
|
|
#include "Window.h"
|
2019-05-29 22:49:54 +00:00
|
|
|
|
|
|
|
class ClockEffect : public Effect {
|
2019-09-25 16:11:52 +00:00
|
|
|
protected:
|
2019-06-11 17:48:09 +00:00
|
|
|
Window* window = new Window(0, LED_HEIGHT - 6, LED_WIDTH, 6);
|
2019-05-29 22:49:54 +00:00
|
|
|
|
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();
|
2019-09-25 16:11:03 +00:00
|
|
|
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;
|
2019-05-29 22:49:54 +00:00
|
|
|
};
|