forked from arachnidlabs/minishift-arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
glcdfont.c
264 lines (261 loc) · 10.3 KB
/
glcdfont.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
#include <avr/io.h>
#include <avr/pgmspace.h>
#include "glcdfont.h"
// standard ascii 5x7 font
unsigned const char font[] PROGMEM = {
0x7C, 0x54, 0x6C, 0x54, 0x7C,
0x7C, 0xDA, 0xF2, 0xDA, 0x7C,
0x7C, 0xD6, 0xF2, 0xD6, 0x7C,
0x38, 0x7C, 0x3E, 0x7C, 0x38,
0x18, 0x3C, 0x7E, 0x3C, 0x18,
0x38, 0xEA, 0xBE, 0xEA, 0x38,
0x38, 0x7A, 0xFE, 0x7A, 0x38,
0x00, 0x18, 0x3C, 0x18, 0x00,
0xFF, 0xE7, 0xC3, 0xE7, 0xFF,
0x00, 0x18, 0x24, 0x18, 0x00,
0xFF, 0xE7, 0xDB, 0xE7, 0xFF,
0x0C, 0x12, 0x5C, 0x60, 0x70,
0x64, 0x94, 0x9E, 0x94, 0x64,
0x02, 0xFE, 0xA0, 0xA0, 0xE0,
0x02, 0xFE, 0xA0, 0xA4, 0xFC,
0x5A, 0x3C, 0xE7, 0x3C, 0x5A,
0xFE, 0x7C, 0x38, 0x38, 0x10,
0x10, 0x38, 0x38, 0x7C, 0xFE,
0x28, 0x44, 0xFE, 0x44, 0x28,
0xFA, 0xFA, 0x00, 0xFA, 0xFA,
0x60, 0x90, 0xFE, 0x80, 0xFE,
0x00, 0x66, 0x91, 0xA9, 0x56,
0x06, 0x06, 0x06, 0x06, 0x06,
0x29, 0x45, 0xFF, 0x45, 0x29,
0x10, 0x20, 0x7E, 0x20, 0x10,
0x08, 0x04, 0x7E, 0x04, 0x08,
0x10, 0x10, 0x54, 0x38, 0x10,
0x10, 0x38, 0x54, 0x10, 0x10,
0x78, 0x08, 0x08, 0x08, 0x08,
0x30, 0x78, 0x30, 0x78, 0x30,
0x0C, 0x1C, 0x7C, 0x1C, 0x0C,
0x60, 0x70, 0x7C, 0x70, 0x60,
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0xFA, 0x00, 0x00,
0x00, 0xE0, 0x00, 0xE0, 0x00,
0x28, 0xFE, 0x28, 0xFE, 0x28,
0x24, 0x54, 0xFE, 0x54, 0x48,
0xC4, 0xC8, 0x10, 0x26, 0x46,
0x6C, 0x92, 0x6A, 0x04, 0x0A,
0x00, 0x10, 0xE0, 0xC0, 0x00,
0x00, 0x38, 0x44, 0x82, 0x00,
0x00, 0x82, 0x44, 0x38, 0x00,
0x54, 0x38, 0xFE, 0x38, 0x54,
0x10, 0x10, 0x7C, 0x10, 0x10,
0x00, 0x01, 0x0E, 0x0C, 0x00,
0x10, 0x10, 0x10, 0x10, 0x10,
0x00, 0x00, 0x06, 0x06, 0x00,
0x04, 0x08, 0x10, 0x20, 0x40,
0x7C, 0x8A, 0x92, 0xA2, 0x7C,
0x00, 0x42, 0xFE, 0x02, 0x00,
0x4E, 0x92, 0x92, 0x92, 0x62,
0x84, 0x82, 0x92, 0xB2, 0xCC,
0x18, 0x28, 0x48, 0xFE, 0x08,
0xE4, 0xA2, 0xA2, 0xA2, 0x9C,
0x3C, 0x52, 0x92, 0x92, 0x8C,
0x82, 0x84, 0x88, 0x90, 0xE0,
0x6C, 0x92, 0x92, 0x92, 0x6C,
0x62, 0x92, 0x92, 0x94, 0x78,
0x00, 0x00, 0x28, 0x00, 0x00,
0x00, 0x02, 0x2C, 0x00, 0x00,
0x00, 0x10, 0x28, 0x44, 0x82,
0x28, 0x28, 0x28, 0x28, 0x28,
0x00, 0x82, 0x44, 0x28, 0x10,
0x40, 0x80, 0x9A, 0x90, 0x60,
0x7C, 0x82, 0xBA, 0x9A, 0x72,
0x3E, 0x48, 0x88, 0x48, 0x3E,
0xFE, 0x92, 0x92, 0x92, 0x6C,
0x7C, 0x82, 0x82, 0x82, 0x44,
0xFE, 0x82, 0x82, 0x82, 0x7C,
0xFE, 0x92, 0x92, 0x92, 0x82,
0xFE, 0x90, 0x90, 0x90, 0x80,
0x7C, 0x82, 0x82, 0x8A, 0xCE,
0xFE, 0x10, 0x10, 0x10, 0xFE,
0x00, 0x82, 0xFE, 0x82, 0x00,
0x04, 0x02, 0x82, 0xFC, 0x80,
0xFE, 0x10, 0x28, 0x44, 0x82,
0xFE, 0x02, 0x02, 0x02, 0x02,
0xFE, 0x40, 0x38, 0x40, 0xFE,
0xFE, 0x20, 0x10, 0x08, 0xFE,
0x7C, 0x82, 0x82, 0x82, 0x7C,
0xFE, 0x90, 0x90, 0x90, 0x60,
0x7C, 0x82, 0x8A, 0x84, 0x7A,
0xFE, 0x90, 0x98, 0x94, 0x62,
0x64, 0x92, 0x92, 0x92, 0x4C,
0xC0, 0x80, 0xFE, 0x80, 0xC0,
0xFC, 0x02, 0x02, 0x02, 0xFC,
0xF8, 0x04, 0x02, 0x04, 0xF8,
0xFC, 0x02, 0x1C, 0x02, 0xFC,
0xC6, 0x28, 0x10, 0x28, 0xC6,
0xC0, 0x20, 0x1E, 0x20, 0xC0,
0x86, 0x9A, 0x92, 0xB2, 0xC2,
0x00, 0xFE, 0x82, 0x82, 0x82,
0x40, 0x20, 0x10, 0x08, 0x04,
0x00, 0x82, 0x82, 0x82, 0xFE,
0x20, 0x40, 0x80, 0x40, 0x20,
0x02, 0x02, 0x02, 0x02, 0x02,
0x00, 0xC0, 0xE0, 0x10, 0x00,
0x04, 0x2A, 0x2A, 0x1E, 0x02,
0xFE, 0x14, 0x22, 0x22, 0x1C,
0x1C, 0x22, 0x22, 0x22, 0x14,
0x1C, 0x22, 0x22, 0x14, 0xFE,
0x1C, 0x2A, 0x2A, 0x2A, 0x18,
0x00, 0x10, 0x7E, 0x90, 0x40,
0x18, 0x25, 0x25, 0x39, 0x1E,
0xFE, 0x10, 0x20, 0x20, 0x1E,
0x00, 0x22, 0xBE, 0x02, 0x00,
0x04, 0x02, 0x02, 0xBC, 0x00,
0xFE, 0x08, 0x14, 0x22, 0x00,
0x00, 0x82, 0xFE, 0x02, 0x00,
0x3E, 0x20, 0x1E, 0x20, 0x1E,
0x3E, 0x10, 0x20, 0x20, 0x1E,
0x1C, 0x22, 0x22, 0x22, 0x1C,
0x3F, 0x18, 0x24, 0x24, 0x18,
0x18, 0x24, 0x24, 0x18, 0x3F,
0x3E, 0x10, 0x20, 0x20, 0x10,
0x12, 0x2A, 0x2A, 0x2A, 0x24,
0x20, 0x20, 0xFC, 0x22, 0x24,
0x3C, 0x02, 0x02, 0x04, 0x3E,
0x38, 0x04, 0x02, 0x04, 0x38,
0x3C, 0x02, 0x0C, 0x02, 0x3C,
0x22, 0x14, 0x08, 0x14, 0x22,
0x32, 0x09, 0x09, 0x09, 0x3E,
0x22, 0x26, 0x2A, 0x32, 0x22,
0x00, 0x10, 0x6C, 0x82, 0x00,
0x00, 0x00, 0xEE, 0x00, 0x00,
0x00, 0x82, 0x6C, 0x10, 0x00,
0x40, 0x80, 0x40, 0x20, 0x40,
0x3C, 0x64, 0xC4, 0x64, 0x3C,
0x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 0xB0, 0x98, 0x8C, 0xBE,
0x64, 0x94, 0x94, 0xF4, 0x14,
0x64, 0x94, 0x94, 0x94, 0x64,
0x0C, 0x12, 0xB2, 0x02, 0x04,
0x1C, 0x10, 0x10, 0x10, 0x10,
0x10, 0x10, 0x10, 0x10, 0x1C,
0xF4, 0x08, 0x13, 0x35, 0x5D,
0xF4, 0x08, 0x14, 0x2C, 0x5F,
0x00, 0x00, 0xDE, 0x00, 0x00,
0x10, 0x28, 0x54, 0x28, 0x44,
0x44, 0x28, 0x54, 0x28, 0x10,
0x55, 0x00, 0xAA, 0x00, 0x55,
0x55, 0xAA, 0x55, 0xAA, 0x55,
0x00, 0x00, 0x00, 0xFF, 0x00,
0x08, 0x08, 0x08, 0xFF, 0x00,
0x28, 0x28, 0x28, 0xFF, 0x00,
0x08, 0x08, 0xFF, 0x00, 0xFF,
0x08, 0x08, 0x0F, 0x08, 0x0F,
0x28, 0x28, 0x28, 0x3F, 0x00,
0x28, 0x28, 0xEF, 0x00, 0xFF,
0x00, 0x00, 0xFF, 0x00, 0xFF,
0x28, 0x28, 0x2F, 0x20, 0x3F,
0x28, 0x28, 0xE8, 0x08, 0xF8,
0x08, 0x08, 0xF8, 0x08, 0xF8,
0x28, 0x28, 0x28, 0xF8, 0x00,
0x08, 0x08, 0x08, 0x0F, 0x00,
0x00, 0x00, 0x00, 0xF8, 0x08,
0x08, 0x08, 0x08, 0xF8, 0x08,
0x08, 0x08, 0x08, 0x0F, 0x08,
0x00, 0x00, 0x00, 0xFF, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08,
0x08, 0x08, 0x08, 0xFF, 0x08,
0x00, 0x00, 0x00, 0xFF, 0x28,
0x00, 0x00, 0xFF, 0x00, 0xFF,
0x00, 0x00, 0xF8, 0x08, 0xE8,
0x00, 0x00, 0x3F, 0x20, 0x2F,
0x28, 0x28, 0xE8, 0x08, 0xE8,
0x28, 0x28, 0x2F, 0x20, 0x2F,
0x00, 0x00, 0xFF, 0x00, 0xEF,
0x28, 0x28, 0x28, 0x28, 0x28,
0x28, 0x28, 0xEF, 0x00, 0xEF,
0x28, 0x28, 0x28, 0xE8, 0x28,
0x08, 0x08, 0xF8, 0x08, 0xF8,
0x28, 0x28, 0x28, 0x2F, 0x28,
0x08, 0x08, 0x0F, 0x08, 0x0F,
0x00, 0x00, 0xF8, 0x08, 0xF8,
0x00, 0x00, 0x00, 0xF8, 0x28,
0x00, 0x00, 0x00, 0x3F, 0x28,
0x00, 0x00, 0x0F, 0x08, 0x0F,
0x08, 0x08, 0xFF, 0x08, 0xFF,
0x28, 0x28, 0x28, 0xFF, 0x28,
0x08, 0x08, 0x08, 0xF8, 0x00,
0x00, 0x00, 0x00, 0x0F, 0x08,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0x0F, 0x0F, 0x0F, 0x0F, 0x0F,
0xFF, 0xFF, 0xFF, 0x00, 0x00,
0x00, 0x00, 0x00, 0xFF, 0xFF,
0xF0, 0xF0, 0xF0, 0xF0, 0xF0,
0x1C, 0x22, 0x22, 0x1C, 0x22,
0x3E, 0x54, 0x54, 0x7C, 0x28,
0x7E, 0x40, 0x40, 0x60, 0x60,
0x40, 0x7E, 0x40, 0x7E, 0x40,
0xC6, 0xAA, 0x92, 0x82, 0xC6,
0x1C, 0x22, 0x22, 0x3C, 0x20,
0x02, 0x7E, 0x04, 0x78, 0x04,
0x60, 0x40, 0x7E, 0x40, 0x40,
0x99, 0xA5, 0xE7, 0xA5, 0x99,
0x38, 0x54, 0x92, 0x54, 0x38,
0x32, 0x4E, 0x80, 0x4E, 0x32,
0x0C, 0x52, 0xB2, 0xB2, 0x0C,
0x0C, 0x12, 0x1E, 0x12, 0x0C,
0x3D, 0x46, 0x5A, 0x62, 0xBC,
0x7C, 0x92, 0x92, 0x92, 0x00,
0x7E, 0x80, 0x80, 0x80, 0x7E,
0x54, 0x54, 0x54, 0x54, 0x54,
0x22, 0x22, 0xFA, 0x22, 0x22,
0x02, 0x8A, 0x52, 0x22, 0x02,
0x02, 0x22, 0x52, 0x8A, 0x02,
0x00, 0x00, 0xFF, 0x80, 0xC0,
0x07, 0x01, 0xFF, 0x00, 0x00,
0x10, 0x10, 0xD6, 0xD6, 0x10,
0x6C, 0x48, 0x6C, 0x24, 0x6C,
0x60, 0xF0, 0x90, 0xF0, 0x60,
0x00, 0x00, 0x18, 0x18, 0x00,
0x00, 0x00, 0x08, 0x08, 0x00,
0x0C, 0x02, 0xFF, 0x80, 0x80,
0x00, 0xF8, 0x80, 0x80, 0x78,
0x00, 0x98, 0xB8, 0xE8, 0x48,
0x00, 0x3C, 0x3C, 0x3C, 0x3C,
0x00, 0x00, 0x00, 0x00, 0x00,
};