-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmyDisplay.h
More file actions
58 lines (54 loc) · 2.06 KB
/
myDisplay.h
File metadata and controls
58 lines (54 loc) · 2.06 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
55
56
57
58
#ifndef MY_DISPLAY_H
#define MY_DISPLAY_H
#include <Arduino.h>
#include "myLogging.h"
#define DIGIT_OFF 18
#define DIGIT_DASH 19
byte const mapping[] = {
0b10000001, // 0
0b11001111, // 1
0b10010010, // 2
0b10000110, // 3
0b11001100, // 4
0b10100100, // 5
0b10100000, // 6
0b10001111, // 7
0b10000000, // 8
0b10000100, // 9
0b11111110, // segment #1 only - #10
0b11111101, // segment #2 only - #11
0b11111011, // segment #3 only - #12
0b11110111, // segment #4 only - #13
0b11101111, // segment #5 only - #14
0b11011111, // segment #6 only - #15
0b10111111, // segment #7 only - #16
0b10000000, // full digit ON - #17
0b11111111, // full digit OFF - #18
0b11111110, // dash - #19
};
byte const mappingClever[] = {
0b10000001, // 0
0b11111001, // 1
0b10010010, // 2
0b10000110, // 3
0b11001100, // 4
0b10100100, // 5
0b10100000, // 6
0b10001111, // 7
0b10000000, // 8
0b10000100, // 9
0b11111110, // segment #1 only - #10
0b11111101, // segment #2 only - #11
0b11111011, // segment #3 only - #12
0b11110111, // segment #4 only - #13
0b11101111, // segment #5 only - #14
0b11011111, // segment #6 only - #15
0b10111111, // segment #7 only - #16
0b10000000, // full digit ON - #17
0b11111111, // full digit OFF - #18
0b11111110, // dash - #19
};
void syncDisplayScheduler();
void updateDisplay();
void displaySetup();
#endif