Splitting the code into single files is done. \o/

This commit is contained in:
2019-05-30 00:49:54 +02:00
parent 76802ffa78
commit 2f58fd14d0
45 changed files with 1142 additions and 834 deletions

39
include/effect_matrix.h Normal file
View 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