Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 267 lines (263 sloc) 8.335 kB
4a4d5d6 @ladyada First commit!
ladyada authored
1 #include <avr/io.h>
2 #include <avr/pgmspace.h>
3
4 #ifndef FONT5X7_H
5 #define FONT5X7_H
6
7 // standard ascii 5x7 font
8
9 static unsigned char font[] PROGMEM = {
10 0x00, 0x00, 0x00, 0x00, 0x00,
11 0x3E, 0x5B, 0x4F, 0x5B, 0x3E,
12 0x3E, 0x6B, 0x4F, 0x6B, 0x3E,
13 0x1C, 0x3E, 0x7C, 0x3E, 0x1C,
14 0x18, 0x3C, 0x7E, 0x3C, 0x18,
15 0x1C, 0x57, 0x7D, 0x57, 0x1C,
16 0x1C, 0x5E, 0x7F, 0x5E, 0x1C,
17 0x00, 0x18, 0x3C, 0x18, 0x00,
18 0xFF, 0xE7, 0xC3, 0xE7, 0xFF,
19 0x00, 0x18, 0x24, 0x18, 0x00,
20 0xFF, 0xE7, 0xDB, 0xE7, 0xFF,
21 0x30, 0x48, 0x3A, 0x06, 0x0E,
22 0x26, 0x29, 0x79, 0x29, 0x26,
23 0x40, 0x7F, 0x05, 0x05, 0x07,
24 0x40, 0x7F, 0x05, 0x25, 0x3F,
25 0x5A, 0x3C, 0xE7, 0x3C, 0x5A,
26 0x7F, 0x3E, 0x1C, 0x1C, 0x08,
27 0x08, 0x1C, 0x1C, 0x3E, 0x7F,
28 0x14, 0x22, 0x7F, 0x22, 0x14,
29 0x5F, 0x5F, 0x00, 0x5F, 0x5F,
30 0x06, 0x09, 0x7F, 0x01, 0x7F,
31 0x00, 0x66, 0x89, 0x95, 0x6A,
32 0x60, 0x60, 0x60, 0x60, 0x60,
33 0x94, 0xA2, 0xFF, 0xA2, 0x94,
34 0x08, 0x04, 0x7E, 0x04, 0x08,
35 0x10, 0x20, 0x7E, 0x20, 0x10,
36 0x08, 0x08, 0x2A, 0x1C, 0x08,
37 0x08, 0x1C, 0x2A, 0x08, 0x08,
38 0x1E, 0x10, 0x10, 0x10, 0x10,
39 0x0C, 0x1E, 0x0C, 0x1E, 0x0C,
40 0x30, 0x38, 0x3E, 0x38, 0x30,
41 0x06, 0x0E, 0x3E, 0x0E, 0x06,
42 0x00, 0x00, 0x00, 0x00, 0x00,
43 0x00, 0x00, 0x5F, 0x00, 0x00,
44 0x00, 0x07, 0x00, 0x07, 0x00,
45 0x14, 0x7F, 0x14, 0x7F, 0x14,
46 0x24, 0x2A, 0x7F, 0x2A, 0x12,
47 0x23, 0x13, 0x08, 0x64, 0x62,
48 0x36, 0x49, 0x56, 0x20, 0x50,
49 0x00, 0x08, 0x07, 0x03, 0x00,
50 0x00, 0x1C, 0x22, 0x41, 0x00,
51 0x00, 0x41, 0x22, 0x1C, 0x00,
52 0x2A, 0x1C, 0x7F, 0x1C, 0x2A,
53 0x08, 0x08, 0x3E, 0x08, 0x08,
54 0x00, 0x80, 0x70, 0x30, 0x00,
55 0x08, 0x08, 0x08, 0x08, 0x08,
56 0x00, 0x00, 0x60, 0x60, 0x00,
57 0x20, 0x10, 0x08, 0x04, 0x02,
58 0x3E, 0x51, 0x49, 0x45, 0x3E,
59 0x00, 0x42, 0x7F, 0x40, 0x00,
60 0x72, 0x49, 0x49, 0x49, 0x46,
61 0x21, 0x41, 0x49, 0x4D, 0x33,
62 0x18, 0x14, 0x12, 0x7F, 0x10,
63 0x27, 0x45, 0x45, 0x45, 0x39,
64 0x3C, 0x4A, 0x49, 0x49, 0x31,
65 0x41, 0x21, 0x11, 0x09, 0x07,
66 0x36, 0x49, 0x49, 0x49, 0x36,
67 0x46, 0x49, 0x49, 0x29, 0x1E,
68 0x00, 0x00, 0x14, 0x00, 0x00,
69 0x00, 0x40, 0x34, 0x00, 0x00,
70 0x00, 0x08, 0x14, 0x22, 0x41,
71 0x14, 0x14, 0x14, 0x14, 0x14,
72 0x00, 0x41, 0x22, 0x14, 0x08,
73 0x02, 0x01, 0x59, 0x09, 0x06,
74 0x3E, 0x41, 0x5D, 0x59, 0x4E,
75 0x7C, 0x12, 0x11, 0x12, 0x7C,
76 0x7F, 0x49, 0x49, 0x49, 0x36,
77 0x3E, 0x41, 0x41, 0x41, 0x22,
78 0x7F, 0x41, 0x41, 0x41, 0x3E,
79 0x7F, 0x49, 0x49, 0x49, 0x41,
80 0x7F, 0x09, 0x09, 0x09, 0x01,
81 0x3E, 0x41, 0x41, 0x51, 0x73,
82 0x7F, 0x08, 0x08, 0x08, 0x7F,
83 0x00, 0x41, 0x7F, 0x41, 0x00,
84 0x20, 0x40, 0x41, 0x3F, 0x01,
85 0x7F, 0x08, 0x14, 0x22, 0x41,
86 0x7F, 0x40, 0x40, 0x40, 0x40,
87 0x7F, 0x02, 0x1C, 0x02, 0x7F,
88 0x7F, 0x04, 0x08, 0x10, 0x7F,
89 0x3E, 0x41, 0x41, 0x41, 0x3E,
90 0x7F, 0x09, 0x09, 0x09, 0x06,
91 0x3E, 0x41, 0x51, 0x21, 0x5E,
92 0x7F, 0x09, 0x19, 0x29, 0x46,
93 0x26, 0x49, 0x49, 0x49, 0x32,
94 0x03, 0x01, 0x7F, 0x01, 0x03,
95 0x3F, 0x40, 0x40, 0x40, 0x3F,
96 0x1F, 0x20, 0x40, 0x20, 0x1F,
97 0x3F, 0x40, 0x38, 0x40, 0x3F,
98 0x63, 0x14, 0x08, 0x14, 0x63,
99 0x03, 0x04, 0x78, 0x04, 0x03,
100 0x61, 0x59, 0x49, 0x4D, 0x43,
101 0x00, 0x7F, 0x41, 0x41, 0x41,
102 0x02, 0x04, 0x08, 0x10, 0x20,
103 0x00, 0x41, 0x41, 0x41, 0x7F,
104 0x04, 0x02, 0x01, 0x02, 0x04,
105 0x40, 0x40, 0x40, 0x40, 0x40,
106 0x00, 0x03, 0x07, 0x08, 0x00,
107 0x20, 0x54, 0x54, 0x78, 0x40,
108 0x7F, 0x28, 0x44, 0x44, 0x38,
109 0x38, 0x44, 0x44, 0x44, 0x28,
110 0x38, 0x44, 0x44, 0x28, 0x7F,
111 0x38, 0x54, 0x54, 0x54, 0x18,
112 0x00, 0x08, 0x7E, 0x09, 0x02,
113 0x18, 0xA4, 0xA4, 0x9C, 0x78,
114 0x7F, 0x08, 0x04, 0x04, 0x78,
115 0x00, 0x44, 0x7D, 0x40, 0x00,
116 0x20, 0x40, 0x40, 0x3D, 0x00,
117 0x7F, 0x10, 0x28, 0x44, 0x00,
118 0x00, 0x41, 0x7F, 0x40, 0x00,
119 0x7C, 0x04, 0x78, 0x04, 0x78,
120 0x7C, 0x08, 0x04, 0x04, 0x78,
121 0x38, 0x44, 0x44, 0x44, 0x38,
122 0xFC, 0x18, 0x24, 0x24, 0x18,
123 0x18, 0x24, 0x24, 0x18, 0xFC,
124 0x7C, 0x08, 0x04, 0x04, 0x08,
125 0x48, 0x54, 0x54, 0x54, 0x24,
126 0x04, 0x04, 0x3F, 0x44, 0x24,
127 0x3C, 0x40, 0x40, 0x20, 0x7C,
128 0x1C, 0x20, 0x40, 0x20, 0x1C,
129 0x3C, 0x40, 0x30, 0x40, 0x3C,
130 0x44, 0x28, 0x10, 0x28, 0x44,
131 0x4C, 0x90, 0x90, 0x90, 0x7C,
132 0x44, 0x64, 0x54, 0x4C, 0x44,
133 0x00, 0x08, 0x36, 0x41, 0x00,
134 0x00, 0x00, 0x77, 0x00, 0x00,
135 0x00, 0x41, 0x36, 0x08, 0x00,
136 0x02, 0x01, 0x02, 0x04, 0x02,
137 0x3C, 0x26, 0x23, 0x26, 0x3C,
138 0x1E, 0xA1, 0xA1, 0x61, 0x12,
139 0x3A, 0x40, 0x40, 0x20, 0x7A,
140 0x38, 0x54, 0x54, 0x55, 0x59,
141 0x21, 0x55, 0x55, 0x79, 0x41,
142 0x21, 0x54, 0x54, 0x78, 0x41,
143 0x21, 0x55, 0x54, 0x78, 0x40,
144 0x20, 0x54, 0x55, 0x79, 0x40,
145 0x0C, 0x1E, 0x52, 0x72, 0x12,
146 0x39, 0x55, 0x55, 0x55, 0x59,
147 0x39, 0x54, 0x54, 0x54, 0x59,
148 0x39, 0x55, 0x54, 0x54, 0x58,
149 0x00, 0x00, 0x45, 0x7C, 0x41,
150 0x00, 0x02, 0x45, 0x7D, 0x42,
151 0x00, 0x01, 0x45, 0x7C, 0x40,
152 0xF0, 0x29, 0x24, 0x29, 0xF0,
153 0xF0, 0x28, 0x25, 0x28, 0xF0,
154 0x7C, 0x54, 0x55, 0x45, 0x00,
155 0x20, 0x54, 0x54, 0x7C, 0x54,
156 0x7C, 0x0A, 0x09, 0x7F, 0x49,
157 0x32, 0x49, 0x49, 0x49, 0x32,
158 0x32, 0x48, 0x48, 0x48, 0x32,
159 0x32, 0x4A, 0x48, 0x48, 0x30,
160 0x3A, 0x41, 0x41, 0x21, 0x7A,
161 0x3A, 0x42, 0x40, 0x20, 0x78,
162 0x00, 0x9D, 0xA0, 0xA0, 0x7D,
163 0x39, 0x44, 0x44, 0x44, 0x39,
164 0x3D, 0x40, 0x40, 0x40, 0x3D,
165 0x3C, 0x24, 0xFF, 0x24, 0x24,
166 0x48, 0x7E, 0x49, 0x43, 0x66,
167 0x2B, 0x2F, 0xFC, 0x2F, 0x2B,
168 0xFF, 0x09, 0x29, 0xF6, 0x20,
169 0xC0, 0x88, 0x7E, 0x09, 0x03,
170 0x20, 0x54, 0x54, 0x79, 0x41,
171 0x00, 0x00, 0x44, 0x7D, 0x41,
172 0x30, 0x48, 0x48, 0x4A, 0x32,
173 0x38, 0x40, 0x40, 0x22, 0x7A,
174 0x00, 0x7A, 0x0A, 0x0A, 0x72,
175 0x7D, 0x0D, 0x19, 0x31, 0x7D,
176 0x26, 0x29, 0x29, 0x2F, 0x28,
177 0x26, 0x29, 0x29, 0x29, 0x26,
178 0x30, 0x48, 0x4D, 0x40, 0x20,
179 0x38, 0x08, 0x08, 0x08, 0x08,
180 0x08, 0x08, 0x08, 0x08, 0x38,
181 0x2F, 0x10, 0xC8, 0xAC, 0xBA,
182 0x2F, 0x10, 0x28, 0x34, 0xFA,
183 0x00, 0x00, 0x7B, 0x00, 0x00,
184 0x08, 0x14, 0x2A, 0x14, 0x22,
185 0x22, 0x14, 0x2A, 0x14, 0x08,
186 0xAA, 0x00, 0x55, 0x00, 0xAA,
187 0xAA, 0x55, 0xAA, 0x55, 0xAA,
188 0x00, 0x00, 0x00, 0xFF, 0x00,
189 0x10, 0x10, 0x10, 0xFF, 0x00,
190 0x14, 0x14, 0x14, 0xFF, 0x00,
191 0x10, 0x10, 0xFF, 0x00, 0xFF,
192 0x10, 0x10, 0xF0, 0x10, 0xF0,
193 0x14, 0x14, 0x14, 0xFC, 0x00,
194 0x14, 0x14, 0xF7, 0x00, 0xFF,
195 0x00, 0x00, 0xFF, 0x00, 0xFF,
196 0x14, 0x14, 0xF4, 0x04, 0xFC,
197 0x14, 0x14, 0x17, 0x10, 0x1F,
198 0x10, 0x10, 0x1F, 0x10, 0x1F,
199 0x14, 0x14, 0x14, 0x1F, 0x00,
200 0x10, 0x10, 0x10, 0xF0, 0x00,
201 0x00, 0x00, 0x00, 0x1F, 0x10,
202 0x10, 0x10, 0x10, 0x1F, 0x10,
203 0x10, 0x10, 0x10, 0xF0, 0x10,
204 0x00, 0x00, 0x00, 0xFF, 0x10,
205 0x10, 0x10, 0x10, 0x10, 0x10,
206 0x10, 0x10, 0x10, 0xFF, 0x10,
207 0x00, 0x00, 0x00, 0xFF, 0x14,
208 0x00, 0x00, 0xFF, 0x00, 0xFF,
209 0x00, 0x00, 0x1F, 0x10, 0x17,
210 0x00, 0x00, 0xFC, 0x04, 0xF4,
211 0x14, 0x14, 0x17, 0x10, 0x17,
212 0x14, 0x14, 0xF4, 0x04, 0xF4,
213 0x00, 0x00, 0xFF, 0x00, 0xF7,
214 0x14, 0x14, 0x14, 0x14, 0x14,
215 0x14, 0x14, 0xF7, 0x00, 0xF7,
216 0x14, 0x14, 0x14, 0x17, 0x14,
217 0x10, 0x10, 0x1F, 0x10, 0x1F,
218 0x14, 0x14, 0x14, 0xF4, 0x14,
219 0x10, 0x10, 0xF0, 0x10, 0xF0,
220 0x00, 0x00, 0x1F, 0x10, 0x1F,
221 0x00, 0x00, 0x00, 0x1F, 0x14,
222 0x00, 0x00, 0x00, 0xFC, 0x14,
223 0x00, 0x00, 0xF0, 0x10, 0xF0,
224 0x10, 0x10, 0xFF, 0x10, 0xFF,
225 0x14, 0x14, 0x14, 0xFF, 0x14,
226 0x10, 0x10, 0x10, 0x1F, 0x00,
227 0x00, 0x00, 0x00, 0xF0, 0x10,
228 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
229 0xF0, 0xF0, 0xF0, 0xF0, 0xF0,
230 0xFF, 0xFF, 0xFF, 0x00, 0x00,
231 0x00, 0x00, 0x00, 0xFF, 0xFF,
232 0x0F, 0x0F, 0x0F, 0x0F, 0x0F,
233 0x38, 0x44, 0x44, 0x38, 0x44,
234 0x7C, 0x2A, 0x2A, 0x3E, 0x14,
235 0x7E, 0x02, 0x02, 0x06, 0x06,
236 0x02, 0x7E, 0x02, 0x7E, 0x02,
237 0x63, 0x55, 0x49, 0x41, 0x63,
238 0x38, 0x44, 0x44, 0x3C, 0x04,
239 0x40, 0x7E, 0x20, 0x1E, 0x20,
240 0x06, 0x02, 0x7E, 0x02, 0x02,
241 0x99, 0xA5, 0xE7, 0xA5, 0x99,
242 0x1C, 0x2A, 0x49, 0x2A, 0x1C,
243 0x4C, 0x72, 0x01, 0x72, 0x4C,
244 0x30, 0x4A, 0x4D, 0x4D, 0x30,
245 0x30, 0x48, 0x78, 0x48, 0x30,
246 0xBC, 0x62, 0x5A, 0x46, 0x3D,
247 0x3E, 0x49, 0x49, 0x49, 0x00,
248 0x7E, 0x01, 0x01, 0x01, 0x7E,
249 0x2A, 0x2A, 0x2A, 0x2A, 0x2A,
250 0x44, 0x44, 0x5F, 0x44, 0x44,
251 0x40, 0x51, 0x4A, 0x44, 0x40,
252 0x40, 0x44, 0x4A, 0x51, 0x40,
253 0x00, 0x00, 0xFF, 0x01, 0x03,
254 0xE0, 0x80, 0xFF, 0x00, 0x00,
255 0x08, 0x08, 0x6B, 0x6B, 0x08,
256 0x36, 0x12, 0x36, 0x24, 0x36,
257 0x06, 0x0F, 0x09, 0x0F, 0x06,
258 0x00, 0x00, 0x18, 0x18, 0x00,
259 0x00, 0x00, 0x10, 0x10, 0x00,
260 0x30, 0x40, 0xFF, 0x01, 0x01,
261 0x00, 0x1F, 0x01, 0x01, 0x1E,
262 0x00, 0x19, 0x1D, 0x17, 0x12,
263 0x00, 0x3C, 0x3C, 0x3C, 0x3C,
264 0x00, 0x00, 0x00, 0x00, 0x00,
265 };
266 #endif
Something went wrong with that request. Please try again.