-
Notifications
You must be signed in to change notification settings - Fork 0
/
font3x6limited.c
102 lines (96 loc) · 2.46 KB
/
font3x6limited.c
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
* font3x6limited.c
*
* Created: 4/8/2015 11:31:21 AM
* Author: Baron Williams
*/
#include "font3x6limited.h"
#define FONT_CHAR_FIRST 32
#define FONT_CHAR_LAST 96
#define FONT_CHARS 65
#define FONT_WIDTH 3
#define FONT_HEIGHT 6
#define FONT_SPACING 1
PROGMEM static const uint8_t font3x6limitedData[FONT_CHARS][FONT_WIDTH] ={
0x00,0x00,0x00, // ' ' 32
0x00,0x5C,0x00, // '!' 33
0x0C,0x00,0x0C, // '"' 34
0x7C,0x28,0x7C, // '#' 35
0x7C,0x44,0x7C, // '$' 36
0x24,0x10,0x48, // '%' 37
0x28,0x54,0x08, // '&' 38
0x00,0x0C,0x00, // ''' 39
0x38,0x44,0x00, // '(' 40
0x44,0x38,0x00, // ')' 41
0x20,0x10,0x08, // '*' 42
0x10,0x38,0x10, // '+' 43
0x80,0x40,0x00, // ',' 44
0x10,0x10,0x10, // '-' 45
0x00,0x40,0x00, // '.' 46
0x20,0x10,0x08, // '/' 47
0x38,0x44,0x38, // '0' 48
0x00,0x7C,0x00, // '1' 49
0x64,0x54,0x48, // '2' 50
0x44,0x54,0x28, // '3' 51
0x1C,0x10,0x7C, // '4' 52
0x4C,0x54,0x24, // '5' 53
0x38,0x54,0x20, // '6' 54
0x04,0x74,0x0C, // '7' 55
0x28,0x54,0x28, // '8' 56
0x08,0x54,0x38, // '9' 57
0x00,0x50,0x00, // ':' 58
0x80,0x50,0x00, // ';' 59
0x10,0x28,0x44, // '<' 60
0x28,0x28,0x28, // '=' 61
0x44,0x28,0x10, // '>' 62
0x04,0x54,0x08, // '?' 63
0x38,0x4C,0x5C, // '@' 64
0x78,0x14,0x78, // 'A' 65
0x7C,0x54,0x28, // 'B' 66
0x38,0x44,0x44, // 'C' 67
0x7C,0x44,0x38, // 'D' 68
0x7C,0x54,0x44, // 'E' 69
0x7C,0x14,0x04, // 'F' 70
0x38,0x44,0x34, // 'G' 71
0x7C,0x10,0x7C, // 'H' 72
0x00,0x7C,0x00, // 'I' 73
0x20,0x40,0x3C, // 'J' 74
0x7C,0x10,0x6C, // 'K' 75
0x7C,0x40,0x40, // 'L' 76
0x7C,0x08,0x7C, // 'M' 77
0x7C,0x04,0x7C, // 'N' 78
0x7C,0x44,0x7C, // 'O' 79
0x7C,0x14,0x08, // 'P' 80
0x38,0x44,0x78, // 'Q' 81
0x7C,0x14,0x68, // 'R' 82
0x48,0x54,0x24, // 'S' 83
0x04,0x7C,0x04, // 'T' 84
0x7C,0x40,0x7C, // 'U' 85
0x3C,0x40,0x3C, // 'V' 86
0x7C,0x20,0x7C, // 'W' 87
0x6C,0x10,0x6C, // 'X' 88
0x1C,0x60,0x1C, // 'Y' 89
0x64,0x54,0x4C, // 'Z' 90
0x7C,0x44,0x00, // '[' 91
0x08,0x10,0x20, // '\' 92
0x44,0x7C,0x00, // ']' 93
0x08,0x04,0x08, // '^' 94
0x80,0x80,0x80, // '_' 95
0x04,0x08,0x00 // '`' 96
};
/*
* Font Size: 3x6 (no horizontal space, use as 4x6)
* Characters: 65 (ASCII 32-96). No lowercase, missing everything above 96
* Bit format: vertical
* Memory: 195 bytes (65x3)
*/
PROGMEM const fontStruct font3x6limited = {
(byte *) font3x6limitedData,
FONT_CHARS,
FONT_CHAR_FIRST,
FONT_CHAR_LAST,
FONT_WIDTH,
FONT_HEIGHT,
FONT_SPACING,
true
};