40 lines
637 B
C
40 lines
637 B
C
|
#ifndef effect_matrix_H
|
||
|
#define effect_matrix_H
|
||
|
|
||
|
#include "prototypes.h"
|
||
|
#include "Effect.h"
|
||
|
#include "config.h"
|
||
|
#include "my_fastled.h"
|
||
|
|
||
|
class MatrixEffectColumn {
|
||
|
private:
|
||
|
int x, y;
|
||
|
int length;
|
||
|
Window* window;
|
||
|
int speed;
|
||
|
boolean running;
|
||
|
long last_move = 0;
|
||
|
public:
|
||
|
MatrixEffectColumn();
|
||
|
MatrixEffectColumn(Window* win, int xPos);
|
||
|
|
||
|
void start();
|
||
|
|
||
|
void advance();
|
||
|
|
||
|
void draw();
|
||
|
|
||
|
void loop();
|
||
|
};
|
||
|
|
||
|
class MatrixEffect : public Effect {
|
||
|
private:
|
||
|
MatrixEffectColumn columns[LED_WIDTH];
|
||
|
public:
|
||
|
boolean can_be_shown_with_clock();
|
||
|
MatrixEffect();
|
||
|
void loop();
|
||
|
};
|
||
|
|
||
|
#endif
|