-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLedDriver.h
More file actions
54 lines (40 loc) · 1.03 KB
/
Copy pathLedDriver.h
File metadata and controls
54 lines (40 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
LedDriver
*/
#ifndef LEDDRIVER_H
#define LEDDRIVER_H
#include "Arduino.h"
#include "Settings.h"
#include "MyRTC.h"
#include "Transitions.h"
#include "Modes.h"
#include "Configuration.h"
#include "Colors.h"
extern volatile byte helperSeconds;
extern Mode mode;
extern Settings settings;
extern MyRTC rtc;
class LedDriver {
public:
virtual void init();
virtual void printSignature();
virtual void writeScreenBufferToMatrix(word matrix[16], boolean onChange, eColors a_color);
virtual void setBrightness(byte brightnessInPercent);
virtual byte getBrightness();
virtual void setLinesToWrite(byte linesToWrite);
virtual void shutDown();
virtual void wakeUp();
virtual void clearData();
void resetWheelPos(void);
void demoTransition();
protected:
word _matrixOld[11];
word _matrixNew[11];
word _matrixOverlay[11];
byte _wheelPos;
unsigned long _lastColorUpdate;
boolean _transitionCompleted;
uint16_t _transitionCounter;
boolean _demoTransition;
};
#endif