2019-06-19 20:17:39 +00:00
|
|
|
#pragma once
|
|
|
|
#include "Effect.h"
|
|
|
|
|
|
|
|
class DvdEffect : public Effect {
|
|
|
|
private:
|
|
|
|
Window* window = new Window(0, 0, LED_WIDTH, LED_HEIGHT-6);
|
2019-10-04 13:58:24 +00:00
|
|
|
saccum78 _x = 0;
|
|
|
|
saccum78 _y = 0;
|
2019-06-19 20:17:39 +00:00
|
|
|
int8_t _x_dir = 1;
|
|
|
|
int8_t _y_dir = 1;
|
|
|
|
CRGB _color;
|
|
|
|
public:
|
|
|
|
DvdEffect();
|
|
|
|
~DvdEffect();
|
2019-10-01 04:29:32 +00:00
|
|
|
void loop(uint16_t ms) override;
|
2019-06-19 20:17:39 +00:00
|
|
|
bool can_be_shown_with_clock() override;
|
2019-09-25 16:11:03 +00:00
|
|
|
String get_name() override { return "dvd"; }
|
2019-06-19 20:17:39 +00:00
|
|
|
};
|