Sensorian  1.0
C API Reference Guide Library
Font.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (C) 2015 Sensorian
3  * *
4  * This file is part of Sensorian. *
5  * *
6  * Sensorian is free software: you can redistribute it and/or modify it *
7  * under the terms of the GNU Lesser General Public License as published *
8  * by the Free Software Foundation, either version 3 of the License, or *
9  * (at your option) any later version. *
10  * *
11  * Sensorian is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU Lesser General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU Lesser General Public *
17  * License along with Sensorian. *
18  * If not, see <http://www.gnu.org/licenses/>. *
19  ****************************************************************************/
20 
28 #ifndef FONT5X7_H
29 #define FONT5X7_H
30 
31 
32 // standard ascii 5x7 font
33 
34 const static char font[255][5] =
35 {
36  {0x00, 0x00, 0x00, 0x00, 0x00},
37  {0x3E, 0x5B, 0x4F, 0x5B, 0x3E},
38  {0x3E, 0x6B, 0x4F, 0x6B, 0x3E},
39  {0x1C, 0x3E, 0x7C, 0x3E, 0x1C},
40  {0x18, 0x3C, 0x7E, 0x3C, 0x18},
41  {0x1C, 0x57, 0x7D, 0x57, 0x1C},
42  {0x1C, 0x5E, 0x7F, 0x5E, 0x1C},
43  {0x00, 0x18, 0x3C, 0x18, 0x00},
44  {0xFF, 0xE7, 0xC3, 0xE7, 0xFF},
45  {0x00, 0x18, 0x24, 0x18, 0x00},
46  {0xFF, 0xE7, 0xDB, 0xE7, 0xFF},
47  {0x30, 0x48, 0x3A, 0x06, 0x0E},
48  {0x26, 0x29, 0x79, 0x29, 0x26},
49  {0x40, 0x7F, 0x05, 0x05, 0x07},
50  {0x40, 0x7F, 0x05, 0x25, 0x3F},
51  {0x5A, 0x3C, 0xE7, 0x3C, 0x5A},
52  {0x7F, 0x3E, 0x1C, 0x1C, 0x08},
53  {0x08, 0x1C, 0x1C, 0x3E, 0x7F},
54  {0x14, 0x22, 0x7F, 0x22, 0x14},
55  {0x5F, 0x5F, 0x00, 0x5F, 0x5F},
56  {0x06, 0x09, 0x7F, 0x01, 0x7F},
57  {0x00, 0x66, 0x89, 0x95, 0x6A},
58  {0x60, 0x60, 0x60, 0x60, 0x60},
59  {0x94, 0xA2, 0xFF, 0xA2, 0x94},
60  {0x08, 0x04, 0x7E, 0x04, 0x08},
61  {0x10, 0x20, 0x7E, 0x20, 0x10},
62  {0x08, 0x08, 0x2A, 0x1C, 0x08},
63  {0x08, 0x1C, 0x2A, 0x08, 0x08},
64  {0x1E, 0x10, 0x10, 0x10, 0x10},
65  {0x0C, 0x1E, 0x0C, 0x1E, 0x0C},
66  {0x30, 0x38, 0x3E, 0x38, 0x30},
67  {0x06, 0x0E, 0x3E, 0x0E, 0x06},
68  {0x00, 0x00, 0x00, 0x00, 0x00},
69  {0x00, 0x00, 0x5F, 0x00, 0x00},
70  {0x00, 0x07, 0x00, 0x07, 0x00},
71  {0x14, 0x7F, 0x14, 0x7F, 0x14},
72  {0x24, 0x2A, 0x7F, 0x2A, 0x12},
73  {0x23, 0x13, 0x08, 0x64, 0x62},
74  {0x36, 0x49, 0x56, 0x20, 0x50},
75  {0x00, 0x08, 0x07, 0x03, 0x00},
76  {0x00, 0x1C, 0x22, 0x41, 0x00},
77  {0x00, 0x41, 0x22, 0x1C, 0x00},
78  {0x2A, 0x1C, 0x7F, 0x1C, 0x2A},
79  {0x08, 0x08, 0x3E, 0x08, 0x08},
80  {0x00, 0x80, 0x70, 0x30, 0x00},
81  {0x08, 0x08, 0x08, 0x08, 0x08},
82  {0x00, 0x00, 0x60, 0x60, 0x00},
83  {0x20, 0x10, 0x08, 0x04, 0x02},
84  {0x3E, 0x51, 0x49, 0x45, 0x3E},
85  {0x00, 0x42, 0x7F, 0x40, 0x00},
86  {0x72, 0x49, 0x49, 0x49, 0x46},
87  {0x21, 0x41, 0x49, 0x4D, 0x33},
88  {0x18, 0x14, 0x12, 0x7F, 0x10},
89  {0x27, 0x45, 0x45, 0x45, 0x39},
90  {0x3C, 0x4A, 0x49, 0x49, 0x31},
91  {0x41, 0x21, 0x11, 0x09, 0x07},
92  {0x36, 0x49, 0x49, 0x49, 0x36},
93  {0x46, 0x49, 0x49, 0x29, 0x1E},
94  {0x00, 0x00, 0x14, 0x00, 0x00},
95  {0x00, 0x40, 0x34, 0x00, 0x00},
96  {0x00, 0x08, 0x14, 0x22, 0x41},
97  {0x14, 0x14, 0x14, 0x14, 0x14},
98  {0x00, 0x41, 0x22, 0x14, 0x08},
99  {0x02, 0x01, 0x59, 0x09, 0x06},
100  {0x3E, 0x41, 0x5D, 0x59, 0x4E},
101  {0x7C, 0x12, 0x11, 0x12, 0x7C},
102  {0x7F, 0x49, 0x49, 0x49, 0x36},
103  {0x3E, 0x41, 0x41, 0x41, 0x22},
104  {0x7F, 0x41, 0x41, 0x41, 0x3E},
105  {0x7F, 0x49, 0x49, 0x49, 0x41},
106  {0x7F, 0x09, 0x09, 0x09, 0x01},
107  {0x3E, 0x41, 0x41, 0x51, 0x73},
108  {0x7F, 0x08, 0x08, 0x08, 0x7F},
109  {0x00, 0x41, 0x7F, 0x41, 0x00},
110  {0x20, 0x40, 0x41, 0x3F, 0x01},
111  {0x7F, 0x08, 0x14, 0x22, 0x41},
112  {0x7F, 0x40, 0x40, 0x40, 0x40},
113  {0x7F, 0x02, 0x1C, 0x02, 0x7F},
114  {0x7F, 0x04, 0x08, 0x10, 0x7F},
115  {0x3E, 0x41, 0x41, 0x41, 0x3E},
116  {0x7F, 0x09, 0x09, 0x09, 0x06},
117  {0x3E, 0x41, 0x51, 0x21, 0x5E},
118  {0x7F, 0x09, 0x19, 0x29, 0x46},
119  {0x26, 0x49, 0x49, 0x49, 0x32},
120  {0x03, 0x01, 0x7F, 0x01, 0x03},
121  {0x3F, 0x40, 0x40, 0x40, 0x3F},
122  {0x1F, 0x20, 0x40, 0x20, 0x1F},
123  {0x3F, 0x40, 0x38, 0x40, 0x3F},
124  {0x63, 0x14, 0x08, 0x14, 0x63},
125  {0x03, 0x04, 0x78, 0x04, 0x03},
126  {0x61, 0x59, 0x49, 0x4D, 0x43},
127  {0x00, 0x7F, 0x41, 0x41, 0x41},
128  {0x02, 0x04, 0x08, 0x10, 0x20},
129  {0x00, 0x41, 0x41, 0x41, 0x7F},
130  {0x04, 0x02, 0x01, 0x02, 0x04},
131  {0x40, 0x40, 0x40, 0x40, 0x40},
132  {0x00, 0x03, 0x07, 0x08, 0x00},
133  {0x20, 0x54, 0x54, 0x78, 0x40},
134  {0x7F, 0x28, 0x44, 0x44, 0x38},
135  {0x38, 0x44, 0x44, 0x44, 0x28},
136  {0x38, 0x44, 0x44, 0x28, 0x7F},
137  {0x38, 0x54, 0x54, 0x54, 0x18},
138  {0x00, 0x08, 0x7E, 0x09, 0x02},
139  {0x18, 0xA4, 0xA4, 0x9C, 0x78},
140  {0x7F, 0x08, 0x04, 0x04, 0x78},
141  {0x00, 0x44, 0x7D, 0x40, 0x00},
142  {0x20, 0x40, 0x40, 0x3D, 0x00},
143  {0x7F, 0x10, 0x28, 0x44, 0x00},
144  {0x00, 0x41, 0x7F, 0x40, 0x00},
145  {0x7C, 0x04, 0x78, 0x04, 0x78},
146  {0x7C, 0x08, 0x04, 0x04, 0x78},
147  {0x38, 0x44, 0x44, 0x44, 0x38},
148  {0xFC, 0x18, 0x24, 0x24, 0x18},
149  {0x18, 0x24, 0x24, 0x18, 0xFC},
150  {0x7C, 0x08, 0x04, 0x04, 0x08},
151  {0x48, 0x54, 0x54, 0x54, 0x24},
152  {0x04, 0x04, 0x3F, 0x44, 0x24},
153  {0x3C, 0x40, 0x40, 0x20, 0x7C},
154  {0x1C, 0x20, 0x40, 0x20, 0x1C},
155  {0x3C, 0x40, 0x30, 0x40, 0x3C},
156  {0x44, 0x28, 0x10, 0x28, 0x44},
157  {0x4C, 0x90, 0x90, 0x90, 0x7C},
158  {0x44, 0x64, 0x54, 0x4C, 0x44},
159  {0x00, 0x08, 0x36, 0x41, 0x00},
160  {0x00, 0x00, 0x77, 0x00, 0x00},
161  {0x00, 0x41, 0x36, 0x08, 0x00},
162  {0x02, 0x01, 0x02, 0x04, 0x02},
163  {0x3C, 0x26, 0x23, 0x26, 0x3C},
164  {0x1E, 0xA1, 0xA1, 0x61, 0x12},
165  {0x3A, 0x40, 0x40, 0x20, 0x7A},
166  {0x38, 0x54, 0x54, 0x55, 0x59},
167  {0x21, 0x55, 0x55, 0x79, 0x41},
168  {0x21, 0x54, 0x54, 0x78, 0x41},
169  {0x21, 0x55, 0x54, 0x78, 0x40},
170  {0x20, 0x54, 0x55, 0x79, 0x40},
171  {0x0C, 0x1E, 0x52, 0x72, 0x12},
172  {0x39, 0x55, 0x55, 0x55, 0x59},
173  {0x39, 0x54, 0x54, 0x54, 0x59},
174  {0x39, 0x55, 0x54, 0x54, 0x58},
175  {0x00, 0x00, 0x45, 0x7C, 0x41},
176  {0x00, 0x02, 0x45, 0x7D, 0x42},
177  {0x00, 0x01, 0x45, 0x7C, 0x40},
178  {0xF0, 0x29, 0x24, 0x29, 0xF0},
179  {0xF0, 0x28, 0x25, 0x28, 0xF0},
180  {0x7C, 0x54, 0x55, 0x45, 0x00},
181  {0x20, 0x54, 0x54, 0x7C, 0x54},
182  {0x7C, 0x0A, 0x09, 0x7F, 0x49},
183  {0x32, 0x49, 0x49, 0x49, 0x32},
184  {0x32, 0x48, 0x48, 0x48, 0x32},
185  {0x32, 0x4A, 0x48, 0x48, 0x30},
186  {0x3A, 0x41, 0x41, 0x21, 0x7A},
187  {0x3A, 0x42, 0x40, 0x20, 0x78},
188  {0x00, 0x9D, 0xA0, 0xA0, 0x7D},
189  {0x39, 0x44, 0x44, 0x44, 0x39},
190  {0x3D, 0x40, 0x40, 0x40, 0x3D},
191  {0x3C, 0x24, 0xFF, 0x24, 0x24},
192  {0x48, 0x7E, 0x49, 0x43, 0x66},
193  {0x2B, 0x2F, 0xFC, 0x2F, 0x2B},
194  {0xFF, 0x09, 0x29, 0xF6, 0x20},
195  {0xC0, 0x88, 0x7E, 0x09, 0x03},
196  {0x20, 0x54, 0x54, 0x79, 0x41},
197  {0x00, 0x00, 0x44, 0x7D, 0x41},
198  {0x30, 0x48, 0x48, 0x4A, 0x32},
199  {0x38, 0x40, 0x40, 0x22, 0x7A},
200  {0x00, 0x7A, 0x0A, 0x0A, 0x72},
201  {0x7D, 0x0D, 0x19, 0x31, 0x7D},
202  {0x26, 0x29, 0x29, 0x2F, 0x28},
203  {0x26, 0x29, 0x29, 0x29, 0x26},
204  {0x30, 0x48, 0x4D, 0x40, 0x20},
205  {0x38, 0x08, 0x08, 0x08, 0x08},
206  {0x08, 0x08, 0x08, 0x08, 0x38},
207  {0x2F, 0x10, 0xC8, 0xAC, 0xBA},
208  {0x2F, 0x10, 0x28, 0x34, 0xFA},
209  {0x00, 0x00, 0x7B, 0x00, 0x00},
210  {0x08, 0x14, 0x2A, 0x14, 0x22},
211  {0x22, 0x14, 0x2A, 0x14, 0x08},
212  {0xAA, 0x00, 0x55, 0x00, 0xAA},
213  {0xAA, 0x55, 0xAA, 0x55, 0xAA},
214  {0x00, 0x00, 0x00, 0xFF, 0x00},
215  {0x10, 0x10, 0x10, 0xFF, 0x00},
216  {0x14, 0x14, 0x14, 0xFF, 0x00},
217  {0x10, 0x10, 0xFF, 0x00, 0xFF},
218  {0x10, 0x10, 0xF0, 0x10, 0xF0},
219  {0x14, 0x14, 0x14, 0xFC, 0x00},
220  {0x14, 0x14, 0xF7, 0x00, 0xFF},
221  {0x00, 0x00, 0xFF, 0x00, 0xFF},
222  {0x14, 0x14, 0xF4, 0x04, 0xFC},
223  {0x14, 0x14, 0x17, 0x10, 0x1F},
224  {0x10, 0x10, 0x1F, 0x10, 0x1F},
225  {0x14, 0x14, 0x14, 0x1F, 0x00},
226  {0x10, 0x10, 0x10, 0xF0, 0x00},
227  {0x00, 0x00, 0x00, 0x1F, 0x10},
228  {0x10, 0x10, 0x10, 0x1F, 0x10},
229  {0x10, 0x10, 0x10, 0xF0, 0x10},
230  {0x00, 0x00, 0x00, 0xFF, 0x10},
231  {0x10, 0x10, 0x10, 0x10, 0x10},
232  {0x10, 0x10, 0x10, 0xFF, 0x10},
233  {0x00, 0x00, 0x00, 0xFF, 0x14},
234  {0x00, 0x00, 0xFF, 0x00, 0xFF},
235  {0x00, 0x00, 0x1F, 0x10, 0x17},
236  {0x00, 0x00, 0xFC, 0x04, 0xF4},
237  {0x14, 0x14, 0x17, 0x10, 0x17},
238  {0x14, 0x14, 0xF4, 0x04, 0xF4},
239  {0x00, 0x00, 0xFF, 0x00, 0xF7},
240  {0x14, 0x14, 0x14, 0x14, 0x14},
241  {0x14, 0x14, 0xF7, 0x00, 0xF7},
242  {0x14, 0x14, 0x14, 0x17, 0x14},
243  {0x10, 0x10, 0x1F, 0x10, 0x1F},
244  {0x14, 0x14, 0x14, 0xF4, 0x14},
245  {0x10, 0x10, 0xF0, 0x10, 0xF0},
246  {0x00, 0x00, 0x1F, 0x10, 0x1F},
247  {0x00, 0x00, 0x00, 0x1F, 0x14},
248  {0x00, 0x00, 0x00, 0xFC, 0x14},
249  {0x00, 0x00, 0xF0, 0x10, 0xF0},
250  {0x10, 0x10, 0xFF, 0x10, 0xFF},
251  {0x14, 0x14, 0x14, 0xFF, 0x14},
252  {0x10, 0x10, 0x10, 0x1F, 0x00},
253  {0x00, 0x00, 0x00, 0xF0, 0x10},
254  {0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
255  {0xF0, 0xF0, 0xF0, 0xF0, 0xF0},
256  {0xFF, 0xFF, 0xFF, 0x00, 0x00},
257  {0x00, 0x00, 0x00, 0xFF, 0xFF},
258  {0x0F, 0x0F, 0x0F, 0x0F, 0x0F},
259  {0x38, 0x44, 0x44, 0x38, 0x44},
260  {0x7C, 0x2A, 0x2A, 0x3E, 0x14},
261  {0x7E, 0x02, 0x02, 0x06, 0x06},
262  {0x02, 0x7E, 0x02, 0x7E, 0x02},
263  {0x63, 0x55, 0x49, 0x41, 0x63},
264  {0x38, 0x44, 0x44, 0x3C, 0x04},
265  {0x40, 0x7E, 0x20, 0x1E, 0x20},
266  {0x06, 0x02, 0x7E, 0x02, 0x02},
267  {0x99, 0xA5, 0xE7, 0xA5, 0x99},
268  {0x1C, 0x2A, 0x49, 0x2A, 0x1C},
269  {0x4C, 0x72, 0x01, 0x72, 0x4C},
270  {0x30, 0x4A, 0x4D, 0x4D, 0x30},
271  {0x30, 0x48, 0x78, 0x48, 0x30},
272  {0xBC, 0x62, 0x5A, 0x46, 0x3D},
273  {0x3E, 0x49, 0x49, 0x49, 0x00},
274  {0x7E, 0x01, 0x01, 0x01, 0x7E},
275  {0x2A, 0x2A, 0x2A, 0x2A, 0x2A},
276  {0x44, 0x44, 0x5F, 0x44, 0x44},
277  {0x40, 0x51, 0x4A, 0x44, 0x40},
278  {0x40, 0x44, 0x4A, 0x51, 0x40},
279  {0x00, 0x00, 0xFF, 0x01, 0x03},
280  {0xE0, 0x80, 0xFF, 0x00, 0x00},
281  {0x08, 0x08, 0x6B, 0x6B, 0x08},
282  {0x36, 0x12, 0x36, 0x24, 0x36},
283  {0x06, 0x0F, 0x09, 0x0F, 0x06},
284  {0x00, 0x00, 0x18, 0x18, 0x00},
285  {0x00, 0x00, 0x10, 0x10, 0x00},
286  {0x30, 0x40, 0xFF, 0x01, 0x01},
287  {0x00, 0x1F, 0x01, 0x01, 0x1E},
288  {0x00, 0x19, 0x1D, 0x17, 0x12},
289  {0x00, 0x3C, 0x3C, 0x3C, 0x3C},
290  {0x00, 0x00, 0x00, 0x00, 0x00}
291 };
292 
293 
294 #endif
const unsigned char font[]