forked from bracci/Qlockthree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LedDriverUeberPixel.h
46 lines (31 loc) · 961 Bytes
/
LedDriverUeberPixel.h
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
/**
LedDriverUeberPixel
Implementierung auf der Basis von 4 MAX7219 wie es der Ueberpixel verwendet.
@mc Arduino/RBBB
@autor Christian Aschoff / caschoff _AT_ mac _DOT_ com
@version 1.4
@created 18.1.2013
*/
#ifndef LED_DRIVER_UEBERPIXEL_H
#define LED_DRIVER_UEBERPIXEL_H
#include "Arduino.h"
#include <LedControl.h>
#include "LedDriver.h"
class LedDriverUeberPixel : public LedDriver {
public:
LedDriverUeberPixel(byte data, byte clock, byte load);
void init();
void printSignature();
void writeScreenBufferToMatrix(word matrix[16], boolean onChange, eColors a_color = color_none);
void setBrightness(byte brightnessInPercent);
byte getBrightness();
void setLinesToWrite(byte linesToWrite);
void shutDown();
void wakeUp();
void clearData();
private:
void _setPixel(byte x, byte y, boolean state);
byte _brightnessInPercent;
LedControl *_ledControl;
};
#endif