-
Notifications
You must be signed in to change notification settings - Fork 1
/
picture.h
41 lines (33 loc) · 800 Bytes
/
picture.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
#ifndef Picture_h
#define Picture_h
#include "Arduino.h"
#include "symbols.h"
#include "constants.h"
class Picture {
public:
Picture(LedControl& lc) : lc(lc) {}
virtual void setup() {}
virtual void enter() {}
virtual void leave() {}
virtual void loop() {}
virtual int getDelay() {return 250;}
protected:
LedControl& lc;
};
class H_Lines : public Picture {
public:
H_Lines(LedControl& lc) : Picture(lc) {}
virtual void setup();
virtual void enter();
virtual void leave();
virtual void loop();
virtual int getDelay();
};
class StaticSymbol : public Picture {
public:
StaticSymbol(LedControl& lc, const prog_uint8_t* symbol) : Picture(lc), symbol(symbol) {}
virtual void enter();
private:
const prog_uint8_t* symbol;
};
#endif