-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path7_Segment_Font.h
41 lines (38 loc) · 1.45 KB
/
7_Segment_Font.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
/***************************************************************************************************************************/
/*
7 Segment Font
Store this lookup table in flash (program) memory instead of SRAM
Segment order for the display PCB = Dp, A, B, C, D, E, F, G
*/
/***************************************************************************************************************************/
const PROGMEM uint8_t Char_Set[] = {
// Characters 0-F Op-code
0b01111110, // 0x00 - '0'
0b00110000, // 0x01 - '1'
0b01101101, // 0x02 - '2'
0b01111001, // 0x03 - '3'
0b00110011, // 0x04 - '4'
0b01011011, // 0x05 - '5'
0b01011111, // 0x06 - '6'
0b01110000, // 0x07 - '7'
0b01111111, // 0x08 - '8'
0b01111011, // 0x09 - '9'
0b01110111, // 0x0A - 'A'
0b00011111, // 0x0B - 'B'
0b01001110, // 0x0C - 'C'
0b00111101, // 0x0D - 'D'
0b01001111, // 0x0E - 'E'
0b01000111, // 0x0F - 'F'
// Other Characters
0b00000001, // 0x10 - '- minus'
0b01000011, // 0x11 - 'c for centigrade'
0b01100011, // 0x12 - 'o for degree'
0b00110111, // 0x13 - 'H'
0b00001110, // 0x14 - 'L'
0b01110110, // 0x15 - 'n'
0b01100111, // 0x16 - 'P'
0b00001111, // 0x17 - 't'
0b00111011, // 0x18 - 'Y'
0b00111110, // 0x19 - 'U'
0b00000000 // 0x1A - 'blank'
};