New Effect: DvdEffect
This commit is contained in:
17
include/effect_dvd.h
Normal file
17
include/effect_dvd.h
Normal file
@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
#include "Effect.h"
|
||||
|
||||
class DvdEffect : public Effect {
|
||||
private:
|
||||
Window* window = new Window(0, 0, LED_WIDTH, LED_HEIGHT-6);
|
||||
uint8_t _x = 0;
|
||||
uint8_t _y = 0;
|
||||
int8_t _x_dir = 1;
|
||||
int8_t _y_dir = 1;
|
||||
CRGB _color;
|
||||
public:
|
||||
DvdEffect();
|
||||
~DvdEffect();
|
||||
void loop() override;
|
||||
bool can_be_shown_with_clock() override;
|
||||
};
|
Reference in New Issue
Block a user