Splitting the code into single files is done. \o/
This commit is contained in:
39
include/effect_matrix.h
Normal file
39
include/effect_matrix.h
Normal file
@ -0,0 +1,39 @@
|
||||
#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
|
Reference in New Issue
Block a user