pitrix/include/effect_matrix.h

41 lines
674 B
C
Raw Normal View History

#ifndef effect_matrix_H
#define effect_matrix_H
#include "prototypes.h"
#include "Effect.h"
#include "config.h"
#include "my_fastled.h"
#include "my_color_palettes.h"
class MatrixEffectColumn {
2019-06-07 04:24:16 +00:00
private:
int x, y;
int length;
Window* window;
uint16_t speed;
boolean running;
unsigned long last_move = 0;
2019-06-07 04:24:16 +00:00
public:
MatrixEffectColumn();
MatrixEffectColumn(Window* win, int xPos);
void start();
void advance();
void draw();
void loop();
};
class MatrixEffect : public Effect {
2019-06-07 04:24:16 +00:00
private:
MatrixEffectColumn columns[LED_WIDTH];
2019-06-07 04:24:16 +00:00
public:
boolean can_be_shown_with_clock();
MatrixEffect();
void loop();
};
#endif