44 lines
525 B
C
44 lines
525 B
C
|
#ifndef IMAGE_H
|
||
|
#define IMAGE_H
|
||
|
|
||
|
#include <Arduino.h>
|
||
|
|
||
|
#include "flipdot.h"
|
||
|
|
||
|
|
||
|
#define COLUMNS 50
|
||
|
#define ROWS 16
|
||
|
|
||
|
|
||
|
#define UPDATE_INTERVAL 5
|
||
|
|
||
|
class Image
|
||
|
{
|
||
|
|
||
|
private:
|
||
|
Flipdot flipdot;
|
||
|
|
||
|
bool frontBuffer[16][16];
|
||
|
|
||
|
|
||
|
int countz=0;
|
||
|
|
||
|
|
||
|
|
||
|
public:
|
||
|
Image();
|
||
|
void init();
|
||
|
|
||
|
bool updateByColumn(bool direction, bool clearFirst, bool optimizeClear, bool optimizeSet);
|
||
|
|
||
|
uint8_t getW(); //returns Columns
|
||
|
uint8_t getH(); //returns Rows
|
||
|
|
||
|
|
||
|
void loop_testDots();
|
||
|
void loop_drawClearTest();
|
||
|
};
|
||
|
|
||
|
#endif
|
||
|
|