diff options
Diffstat (limited to 'firmware/drivers/lcd-charset-player.c')
-rw-r--r-- | firmware/drivers/lcd-charset-player.c | 594 |
1 files changed, 594 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-charset-player.c b/firmware/drivers/lcd-charset-player.c new file mode 100644 index 0000000000..1276f2840d --- /dev/null +++ b/firmware/drivers/lcd-charset-player.c | |||
@@ -0,0 +1,594 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Jens Arnold | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #include "config.h" | ||
21 | #include "hwcompat.h" | ||
22 | |||
23 | #include "lcd-charcell.h" | ||
24 | |||
25 | int hw_pattern_count; /* actual number of user-definable hw patterns */ | ||
26 | |||
27 | const struct xchar_info *xchar_info; | ||
28 | int xchar_info_size; /* number of entries */ | ||
29 | |||
30 | static const struct xchar_info xchar_info_newlcd[] = { | ||
31 | /* Standard ascii */ | ||
32 | { 0x20, 0, 0, 0x20 }, /* */ | ||
33 | { 0x21, 0, 0, 0x21 }, /* ! */ | ||
34 | { 0x22, 0, 0, 0x22 }, /* " */ | ||
35 | { 0x23, 0, 0, 0x23 }, /* # */ | ||
36 | { 0x24, 0, 0, 0x24 }, /* $ */ | ||
37 | { 0x25, 0, 0, 0x25 }, /* % */ | ||
38 | { 0x26, 0, 0, 0x26 }, /* & */ | ||
39 | { 0x27, 0, 0, 0x27 }, /* ' */ | ||
40 | { 0x28, 0, 0, 0x28 }, /* ( */ | ||
41 | { 0x29, 0, 0, 0x29 }, /* ) */ | ||
42 | { 0x2a, 0, 0, 0x2a }, /* * */ | ||
43 | { 0x2b, 0, 0, 0x2b }, /* + */ | ||
44 | { 0x2c, 0, 0, 0x2c }, /* , */ | ||
45 | { 0x2d, 0, 0, 0x2d }, /* - */ | ||
46 | { 0x2e, 0, 0, 0x2e }, /* . */ | ||
47 | { 0x2f, 0, 0, 0x2f }, /* / */ | ||
48 | { 0x30, 0, 0, 0x30 }, /* 0 */ | ||
49 | { 0x31, 0, 0, 0x31 }, /* 1 */ | ||
50 | { 0x32, 0, 0, 0x32 }, /* 2 */ | ||
51 | { 0x33, 0, 0, 0x33 }, /* 3 */ | ||
52 | { 0x34, 0, 0, 0x34 }, /* 4 */ | ||
53 | { 0x35, 0, 0, 0x35 }, /* 5 */ | ||
54 | { 0x36, 0, 0, 0x36 }, /* 6 */ | ||
55 | { 0x37, 0, 0, 0x37 }, /* 7 */ | ||
56 | { 0x38, 0, 0, 0x38 }, /* 8 */ | ||
57 | { 0x39, 0, 0, 0x39 }, /* 9 */ | ||
58 | { 0x3a, 0, 0, 0x3a }, /* : */ | ||
59 | { 0x3b, 0, 0, 0x3b }, /* ; */ | ||
60 | { 0x3c, 0, 0, 0x3c }, /* < */ | ||
61 | { 0x3d, 0, 0, 0x3d }, /* = */ | ||
62 | { 0x3e, 0, 0, 0x3e }, /* > */ | ||
63 | { 0x3f, 0, 0, 0x3f }, /* ? */ | ||
64 | { 0x40, 0, 0, 0x40 }, /* @ */ | ||
65 | { 0x41, 0, 0, 0x41 }, /* A */ | ||
66 | { 0x42, 0, 0, 0x42 }, /* B */ | ||
67 | { 0x43, 0, 0, 0x43 }, /* C */ | ||
68 | { 0x44, 0, 0, 0x44 }, /* D */ | ||
69 | { 0x45, 0, 0, 0x45 }, /* E */ | ||
70 | { 0x46, 0, 0, 0x46 }, /* F */ | ||
71 | { 0x47, 0, 0, 0x47 }, /* G */ | ||
72 | { 0x48, 0, 0, 0x48 }, /* H */ | ||
73 | { 0x49, 0, 0, 0x49 }, /* I */ | ||
74 | { 0x4a, 0, 0, 0x4a }, /* J */ | ||
75 | { 0x4b, 0, 0, 0x4b }, /* K */ | ||
76 | { 0x4c, 0, 0, 0x4c }, /* L */ | ||
77 | { 0x4d, 0, 0, 0x4d }, /* M */ | ||
78 | { 0x4e, 0, 0, 0x4e }, /* N */ | ||
79 | { 0x4f, 0, 0, 0x4f }, /* O */ | ||
80 | { 0x50, 0, 0, 0x50 }, /* P */ | ||
81 | { 0x51, 0, 0, 0x51 }, /* Q */ | ||
82 | { 0x52, 0, 0, 0x52 }, /* R */ | ||
83 | { 0x53, 0, 0, 0x53 }, /* S */ | ||
84 | { 0x54, 0, 0, 0x54 }, /* T */ | ||
85 | { 0x55, 0, 0, 0x55 }, /* U */ | ||
86 | { 0x56, 0, 0, 0x56 }, /* V */ | ||
87 | { 0x57, 0, 0, 0x57 }, /* W */ | ||
88 | { 0x58, 0, 0, 0x58 }, /* X */ | ||
89 | { 0x59, 0, 0, 0x59 }, /* Y */ | ||
90 | { 0x5a, 0, 0, 0x5a }, /* Z */ | ||
91 | { 0x5b, 0, 0, 0x5b }, /* [ */ | ||
92 | { 0x5c, 0, 0, 0x12 }, /* \ */ | ||
93 | { 0x5d, 0, 0, 0x5d }, /* ] */ | ||
94 | { 0x5e, 0, 0, 0x5e }, /* ^ */ | ||
95 | { 0x5f, 0, 0, 0x5f }, /* _ */ | ||
96 | { 0x60, 0, 0, 0x60 }, /* ` */ | ||
97 | { 0x61, 0, 0, 0x61 }, /* a */ | ||
98 | { 0x62, 0, 0, 0x62 }, /* b */ | ||
99 | { 0x63, 0, 0, 0x63 }, /* c */ | ||
100 | { 0x64, 0, 0, 0x64 }, /* d */ | ||
101 | { 0x65, 0, 0, 0x65 }, /* e */ | ||
102 | { 0x66, 0, 0, 0x66 }, /* f */ | ||
103 | { 0x67, 0, 0, 0x67 }, /* g */ | ||
104 | { 0x68, 0, 0, 0x68 }, /* h */ | ||
105 | { 0x69, 0, 0, 0x69 }, /* i */ | ||
106 | { 0x6a, 0, 0, 0x6a }, /* j */ | ||
107 | { 0x6b, 0, 0, 0x6b }, /* k */ | ||
108 | { 0x6c, 0, 0, 0x6c }, /* l */ | ||
109 | { 0x6d, 0, 0, 0x6d }, /* m */ | ||
110 | { 0x6e, 0, 0, 0x6e }, /* n */ | ||
111 | { 0x6f, 0, 0, 0x6f }, /* o */ | ||
112 | { 0x70, 0, 0, 0x70 }, /* p */ | ||
113 | { 0x71, 0, 0, 0x71 }, /* q */ | ||
114 | { 0x72, 0, 0, 0x72 }, /* r */ | ||
115 | { 0x73, 0, 0, 0x73 }, /* s */ | ||
116 | { 0x74, 0, 0, 0x74 }, /* t */ | ||
117 | { 0x75, 0, 0, 0x75 }, /* u */ | ||
118 | { 0x76, 0, 0, 0x76 }, /* v */ | ||
119 | { 0x77, 0, 0, 0x77 }, /* w */ | ||
120 | { 0x78, 0, 0, 0x78 }, /* x */ | ||
121 | { 0x79, 0, 0, 0x79 }, /* y */ | ||
122 | { 0x7a, 0, 0, 0x7a }, /* z */ | ||
123 | { 0x7b, 0, 0, 0x7b }, /* { */ | ||
124 | { 0x7c, 0, 0, 0x7c }, /* | */ | ||
125 | { 0x7d, 0, 0, 0x7d }, /* } */ | ||
126 | { 0x7e, 0, 0, 0xf0 }, /* ~ */ | ||
127 | { 0x7f, 0, 0, 0xfe }, /* (full grid) */ | ||
128 | |||
129 | #ifndef BOOTLOADER /* bootloader only supports pure ASCII */ | ||
130 | /* Latin 1 */ | ||
131 | { 0xa0, 0, 0, 0x20 }, /* (non-breaking space) */ | ||
132 | |||
133 | { 0xa3, 0x000f, 1, 0x4c }, /* £ (pound sign) */ | ||
134 | |||
135 | { 0xa5, 0, 0, 0x5c }, /* ¥ (yen sign) */ | ||
136 | |||
137 | { 0xa7, 0, 0, 0x15 }, /* § (paragraph sign) */ | ||
138 | |||
139 | { 0xab, 0, 0, 0x9e }, /* « (left double-angle quotation mark) */ | ||
140 | |||
141 | { 0xaf, 0x0010, 1, 0x2d }, /* ¯ (macron) */ | ||
142 | |||
143 | { 0xb1, 0, 0, 0x95 }, /* ± (plus-minus sign) */ | ||
144 | { 0xb2, 0, 0, 0x99 }, /* ³ (superscript 2) */ | ||
145 | { 0xb3, 0, 0, 0x9a }, /* ³ (superscript 3) */ | ||
146 | |||
147 | { 0xb5, 0, 0, 0xe6 }, /* µ (micro sign) */ | ||
148 | { 0xb6, 0, 0, 0x14 }, /* ¶ (pilcrow sign) */ | ||
149 | { 0xb7, 0, 0, 0xa5 }, /* · (middle dot) */ | ||
150 | |||
151 | { 0xbb, 0, 0, 0x9f }, /* » (right double-angle quotation mark) */ | ||
152 | { 0xbc, 0, 0, 0x9c }, /* ¼ (one quarter) */ | ||
153 | { 0xbd, 0, 0, 0x9b }, /* ½ (one half) */ | ||
154 | { 0xbe, 0, 0, 0x9d }, /* ¾ (three quarters) */ | ||
155 | { 0xbf, 0x0011, 1, 0x3f }, /* ¿ (inverted ?) */ | ||
156 | { 0xc0, 0x0012, 1, 0x41 }, /* À (A grave) */ | ||
157 | { 0xc1, 0x0013, 1, 0x41 }, /* Á (A acute) */ | ||
158 | { 0xc2, 0x0014, 1, 0x41 }, /* Â (A circumflex) */ | ||
159 | { 0xc3, 0x0015, 1, 0x41 }, /* Ã (A tilde) */ | ||
160 | { 0xc4, 0x0016, 1, 0x41 }, /* Ä (A dieresis) */ | ||
161 | { 0xc5, 0x0017, 1, 0x41 }, /* Å (A with ring above) */ | ||
162 | { 0xc6, 0x0018, 1, 0x41 }, /* Æ (AE ligature) */ | ||
163 | { 0xc7, 0x0019, 1, 0x43 }, /* Ç (C cedilla) */ | ||
164 | { 0xc8, 0x001a, 1, 0x45 }, /* È (E grave) */ | ||
165 | { 0xc9, 0x001b, 1, 0x45 }, /* É (E acute) */ | ||
166 | { 0xca, 0x001c, 1, 0x45 }, /* Ê (E circumflex) */ | ||
167 | { 0xcb, 0x001d, 1, 0x45 }, /* Ë (E dieresis) */ | ||
168 | { 0xcc, 0x001e, 1, 0x49 }, /* Ì (I grave) */ | ||
169 | { 0xcd, 0x001f, 1, 0x49 }, /* Í (I acute) */ | ||
170 | { 0xce, 0, 0, 0x49 }, /* Î (I circumflex) */ | ||
171 | { 0xcf, 0, 0, 0x49 }, /* Ï (I dieresis) */ | ||
172 | { 0xd0, 0x0020, 1, 0x44 }, /* Ð (ETH) */ | ||
173 | { 0xd1, 0x0021, 1, 0x4e }, /* Ñ (N tilde) */ | ||
174 | { 0xd2, 0x0022, 1, 0x4f }, /* Ò (O grave) */ | ||
175 | { 0xd3, 0x0023, 1, 0x4f }, /* Ó (O acute) */ | ||
176 | { 0xd4, 0x0024, 1, 0x4f }, /* Ô (O circumflex) */ | ||
177 | { 0xd5, 0x0025, 1, 0x4f }, /* Õ (O tilde) */ | ||
178 | { 0xd6, 0x0026, 1, 0x4f }, /* Ö (O dieresis) */ | ||
179 | { 0xd7, 0, 0, 0x96 }, /* × (multiplication sign) */ | ||
180 | { 0xd8, 0x0027, 1, 0x4f }, /* Ø (O stroke) */ | ||
181 | { 0xd9, 0x0028, 1, 0x55 }, /* Ù (U grave) */ | ||
182 | { 0xda, 0x0029, 1, 0x55 }, /* Ú (U acute) */ | ||
183 | { 0xdb, 0, 0, 0x55 }, /* Û (U circumflex) */ | ||
184 | { 0xdc, 0x002a, 1, 0x55 }, /* Ü (U dieresis) */ | ||
185 | { 0xdd, 0, 0, 0x59 }, /* Ý (Y acute) */ | ||
186 | |||
187 | { 0xdf, 0, 0, 0xe1 }, /* ß (sharp s) */ | ||
188 | { 0xe0, 0x002b, 1, 0x61 }, /* à (a grave) */ | ||
189 | { 0xe1, 0x002c, 1, 0x61 }, /* á (a acute) */ | ||
190 | { 0xe2, 0x002d, 1, 0x61 }, /* â (a circumflex) */ | ||
191 | { 0xe3, 0x002e, 1, 0x61 }, /* ã (a tilde) */ | ||
192 | { 0xe4, 0x002f, 1, 0x61 }, /* ä (a dieresis) */ | ||
193 | { 0xe5, 0x0030, 1, 0x61 }, /* å (a with ring above) */ | ||
194 | |||
195 | { 0xe7, 0x0031, 1, 0x63 }, /* ç (c cedilla) */ | ||
196 | { 0xe8, 0x0032, 1, 0x65 }, /* è (e grave) */ | ||
197 | { 0xe9, 0x0033, 1, 0x65 }, /* é (e acute) */ | ||
198 | { 0xea, 0x0034, 1, 0x65 }, /* ê (e circumflex) */ | ||
199 | { 0xeb, 0x0035, 1, 0x65 }, /* ë (e dieresis) */ | ||
200 | { 0xec, 0, 0, 0x69 }, /* ì (i grave) */ | ||
201 | { 0xed, 0x0036, 1, 0x69 }, /* í (i acute) */ | ||
202 | { 0xee, 0x0037, 1, 0x69 }, /* î (i circumflex) */ | ||
203 | { 0xef, 0x0038, 1, 0x69 }, /* ï (i dieresis) */ | ||
204 | |||
205 | { 0xf1, 0x0039, 1, 0x6e }, /* ñ (n tilde) */ | ||
206 | { 0xf2, 0x003a, 1, 0x6f }, /* ò (o grave) */ | ||
207 | { 0xf3, 0x003b, 1, 0x6f }, /* ó (o acute) */ | ||
208 | { 0xf4, 0x003c, 1, 0x6f }, /* ô (o circumflex) */ | ||
209 | { 0xf5, 0x003d, 1, 0x6f }, /* õ (o tilde) */ | ||
210 | { 0xf6, 0x003e, 1, 0x6f }, /* ö (o dieresis) */ | ||
211 | { 0xf7, 0, 0, 0x97 }, /* ÷ (division sign) */ | ||
212 | { 0xf8, 0x003f, 1, 0x6f }, /* ø (o slash) */ | ||
213 | { 0xf9, 0x0040, 1, 0x75 }, /* ù (u grave) */ | ||
214 | { 0xfa, 0x0041, 1, 0x75 }, /* ú (u acute) */ | ||
215 | { 0xfb, 0, 0, 0x75 }, /* û (u circumflex) */ | ||
216 | { 0xfc, 0x0042, 1, 0x75 }, /* ü (u dieresis) */ | ||
217 | { 0xfd, 0x0043, 1, 0x79 }, /* ý (y acute) */ | ||
218 | |||
219 | { 0xff, 0, 0, 0x79 }, /* ÿ (y dieresis) */ | ||
220 | |||
221 | /* Runtime-definable characters */ | ||
222 | { 0xe000, 0x8000, 15, 0x20 }, /* variable character 0 */ | ||
223 | { 0xe001, 0x8001, 15, 0x20 }, /* variable character 1 */ | ||
224 | { 0xe002, 0x8002, 15, 0x20 }, /* variable character 2 */ | ||
225 | { 0xe003, 0x8003, 15, 0x20 }, /* variable character 3 */ | ||
226 | { 0xe004, 0x8004, 15, 0x20 }, /* variable character 4 */ | ||
227 | { 0xe005, 0x8005, 15, 0x20 }, /* variable character 5 */ | ||
228 | { 0xe006, 0x8006, 15, 0x20 }, /* variable character 6 */ | ||
229 | { 0xe007, 0x8007, 15, 0x20 }, /* variable character 7 */ | ||
230 | { 0xe008, 0x8008, 15, 0x20 }, /* variable character 8 */ | ||
231 | { 0xe009, 0x8009, 15, 0x20 }, /* variable character 9 */ | ||
232 | { 0xe00a, 0x800a, 15, 0x20 }, /* variable character 10 */ | ||
233 | { 0xe00b, 0x800b, 15, 0x20 }, /* variable character 11 */ | ||
234 | { 0xe00c, 0x800c, 15, 0x20 }, /* variable character 12 */ | ||
235 | { 0xe00d, 0x800d, 15, 0x20 }, /* variable character 13 */ | ||
236 | { 0xe00e, 0x800e, 15, 0x20 }, /* variable character 14 */ | ||
237 | { 0xe00f, 0x800f, 15, 0x20 }, /* variable character 15 */ | ||
238 | |||
239 | /* Icons and special symbols */ | ||
240 | { 0xe100, 0x0004, 14, 0x3f }, /* unknown icon (mirrored ?) */ | ||
241 | { 0xe101, 0x0005, 14, 0x94 }, /* bookmark icon */ | ||
242 | { 0xe102, 0x0006, 14, 0x29 }, /* plugin icon */ | ||
243 | { 0xe103, 0x0007, 14, 0x91 }, /* folder icon */ | ||
244 | { 0xe104, 0x0008, 14, 0x78 }, /* firmware icon */ | ||
245 | { 0xe105, 0x0009, 14, 0x2b }, /* language icon */ | ||
246 | { 0xe106, 0x000a, 14, 0x13 }, /* audio icon (note) */ | ||
247 | { 0xe107, 0x000b, 14, 0x94 }, /* wps icon */ | ||
248 | { 0xe108, 0x000c, 14, 0xd0 }, /* playlist icon */ | ||
249 | { 0xe109, 0x000d, 14, 0xd0 }, /* text file icon */ | ||
250 | { 0xe10a, 0x000e, 14, 0xd0 }, /* config icon */ | ||
251 | { 0xe10b, 0, 0, 0x7f }, /* left arrow */ | ||
252 | { 0xe10c, 0, 0, 0x7e }, /* right arrow */ | ||
253 | { 0xe10d, 0, 0, 0x18 }, /* up arrow */ | ||
254 | { 0xe10e, 0, 0, 0x19 }, /* down arrow */ | ||
255 | { 0xe10f, 0, 0, 0x11 }, /* filled left arrow */ | ||
256 | { 0xe110, 0, 0, 0x10 }, /* filled right arrow */ | ||
257 | { 0xe111, 0, 0, 0x1f }, /* filled up arrow */ | ||
258 | { 0xe112, 0, 0, 0x1e }, /* filled down arrow */ | ||
259 | { 0xe113, 0, 0, 0x20 }, /* level 0/7 */ | ||
260 | { 0xe114, 0, 0, 0x80 }, /* level 1/7 */ | ||
261 | { 0xe115, 0, 0, 0x81 }, /* level 2/7 */ | ||
262 | { 0xe116, 0, 0, 0x82 }, /* level 3/7 */ | ||
263 | { 0xe117, 0, 0, 0x83 }, /* level 4/7 */ | ||
264 | { 0xe118, 0, 0, 0x84 }, /* level 5/7 */ | ||
265 | { 0xe119, 0, 0, 0x85 }, /* level 6/7 */ | ||
266 | { 0xe11a, 0, 0, 0x86 }, /* level 7/7 */ | ||
267 | #endif /* !BOOTLOADER */ | ||
268 | |||
269 | /* no-char symbol */ | ||
270 | { 0xfffd, 0, 0, 0x91 }, | ||
271 | }; | ||
272 | |||
273 | static const struct xchar_info xchar_info_oldlcd[] = { | ||
274 | /* Standard ascii */ | ||
275 | { 0x20, 0, 0, 0x24 }, /* */ | ||
276 | { 0x21, 0, 0, 0x25 }, /* ! */ | ||
277 | { 0x22, 0, 0, 0x26 }, /* " */ | ||
278 | { 0x23, 0, 0, 0x27 }, /* # */ | ||
279 | { 0x24, 0, 0, 0x28 }, /* $ */ | ||
280 | { 0x25, 0, 0, 0x29 }, /* % */ | ||
281 | { 0x26, 0, 0, 0x2a }, /* & */ | ||
282 | { 0x27, 0, 0, 0x2b }, /* ' */ | ||
283 | { 0x28, 0, 0, 0x2c }, /* ( */ | ||
284 | { 0x29, 0, 0, 0x2d }, /* ) */ | ||
285 | { 0x2a, 0, 0, 0x2e }, /* * */ | ||
286 | { 0x2b, 0, 0, 0x2f }, /* + */ | ||
287 | { 0x2c, 0, 0, 0x30 }, /* , */ | ||
288 | { 0x2d, 0, 0, 0x31 }, /* - */ | ||
289 | { 0x2e, 0, 0, 0x32 }, /* . */ | ||
290 | { 0x2f, 0, 0, 0x33 }, /* / */ | ||
291 | { 0x30, 0, 0, 0x34 }, /* 0 */ | ||
292 | { 0x31, 0, 0, 0x35 }, /* 1 */ | ||
293 | { 0x32, 0, 0, 0x36 }, /* 2 */ | ||
294 | { 0x33, 0, 0, 0x37 }, /* 3 */ | ||
295 | { 0x34, 0, 0, 0x38 }, /* 4 */ | ||
296 | { 0x35, 0, 0, 0x39 }, /* 5 */ | ||
297 | { 0x36, 0, 0, 0x3a }, /* 6 */ | ||
298 | { 0x37, 0, 0, 0x3b }, /* 7 */ | ||
299 | { 0x38, 0, 0, 0x3c }, /* 8 */ | ||
300 | { 0x39, 0, 0, 0x3d }, /* 9 */ | ||
301 | { 0x3a, 0, 0, 0x3e }, /* : */ | ||
302 | { 0x3b, 0, 0, 0x3f }, /* ; */ | ||
303 | { 0x3c, 0, 0, 0x40 }, /* < */ | ||
304 | { 0x3d, 0, 0, 0x41 }, /* = */ | ||
305 | { 0x3e, 0, 0, 0x42 }, /* > */ | ||
306 | { 0x3f, 0, 0, 0x43 }, /* ? */ | ||
307 | { 0x40, 0, 0, 0x04 }, /* @ */ | ||
308 | { 0x41, 0, 0, 0x45 }, /* A */ | ||
309 | { 0x42, 0, 0, 0x46 }, /* B */ | ||
310 | { 0x43, 0, 0, 0x47 }, /* C */ | ||
311 | { 0x44, 0, 0, 0x48 }, /* D */ | ||
312 | { 0x45, 0, 0, 0x49 }, /* E */ | ||
313 | { 0x46, 0, 0, 0x4a }, /* F */ | ||
314 | { 0x47, 0, 0, 0x4b }, /* G */ | ||
315 | { 0x48, 0, 0, 0x4c }, /* H */ | ||
316 | { 0x49, 0, 0, 0x4d }, /* I */ | ||
317 | { 0x4a, 0, 0, 0x4e }, /* J */ | ||
318 | { 0x4b, 0, 0, 0x4f }, /* K */ | ||
319 | { 0x4c, 0, 0, 0x50 }, /* L */ | ||
320 | { 0x4d, 0, 0, 0x51 }, /* M */ | ||
321 | { 0x4e, 0, 0, 0x52 }, /* N */ | ||
322 | { 0x4f, 0, 0, 0x53 }, /* O */ | ||
323 | { 0x50, 0, 0, 0x54 }, /* P */ | ||
324 | { 0x51, 0, 0, 0x55 }, /* Q */ | ||
325 | { 0x52, 0, 0, 0x56 }, /* R */ | ||
326 | { 0x53, 0, 0, 0x57 }, /* S */ | ||
327 | { 0x54, 0, 0, 0x58 }, /* T */ | ||
328 | { 0x55, 0, 0, 0x59 }, /* U */ | ||
329 | { 0x56, 0, 0, 0x5a }, /* V */ | ||
330 | { 0x57, 0, 0, 0x5b }, /* W */ | ||
331 | { 0x58, 0, 0, 0x5c }, /* X */ | ||
332 | { 0x59, 0, 0, 0x5d }, /* Y */ | ||
333 | { 0x5a, 0, 0, 0x5e }, /* Z */ | ||
334 | { 0x5b, 0, 0, 0xa9 }, /* [ */ | ||
335 | { 0x5c, 0x0000, 2, 0x33 }, /* \ */ | ||
336 | { 0x5d, 0, 0, 0xce }, /* ] */ | ||
337 | |||
338 | { 0x5f, 0, 0, 0x15 }, /* _ */ | ||
339 | { 0x60, 0x0001, 2, 0x2b }, /* ` */ | ||
340 | { 0x61, 0, 0, 0x65 }, /* a */ | ||
341 | { 0x62, 0, 0, 0x66 }, /* b */ | ||
342 | { 0x63, 0, 0, 0x67 }, /* c */ | ||
343 | { 0x64, 0, 0, 0x68 }, /* d */ | ||
344 | { 0x65, 0, 0, 0x69 }, /* e */ | ||
345 | { 0x66, 0, 0, 0x6a }, /* f */ | ||
346 | { 0x67, 0, 0, 0x6b }, /* g */ | ||
347 | { 0x68, 0, 0, 0x6c }, /* h */ | ||
348 | { 0x69, 0, 0, 0x6d }, /* i */ | ||
349 | { 0x6a, 0, 0, 0x6e }, /* j */ | ||
350 | { 0x6b, 0, 0, 0x6f }, /* k */ | ||
351 | { 0x6c, 0, 0, 0x70 }, /* l */ | ||
352 | { 0x6d, 0, 0, 0x71 }, /* m */ | ||
353 | { 0x6e, 0, 0, 0x72 }, /* n */ | ||
354 | { 0x6f, 0, 0, 0x73 }, /* o */ | ||
355 | { 0x70, 0, 0, 0x74 }, /* p */ | ||
356 | { 0x71, 0, 0, 0x75 }, /* q */ | ||
357 | { 0x72, 0, 0, 0x76 }, /* r */ | ||
358 | { 0x73, 0, 0, 0x77 }, /* s */ | ||
359 | { 0x74, 0, 0, 0x78 }, /* t */ | ||
360 | { 0x75, 0, 0, 0x79 }, /* u */ | ||
361 | { 0x76, 0, 0, 0x7a }, /* v */ | ||
362 | { 0x77, 0, 0, 0x7b }, /* w */ | ||
363 | { 0x78, 0, 0, 0x7c }, /* x */ | ||
364 | { 0x79, 0, 0, 0x7d }, /* y */ | ||
365 | { 0x7a, 0, 0, 0x7e }, /* z */ | ||
366 | { 0x7b, 0, 0, 0x2c }, /* { (hard-coded ( ) */ | ||
367 | { 0x7c, 0x0002, 2, 0x25 }, /* | */ | ||
368 | { 0x7d, 0, 0, 0x2d }, /* } (hard-coded ) ) */ | ||
369 | { 0x7e, 0x0003, 2, 0x31 }, /* ~ */ | ||
370 | { 0x7f, 0, 0, 0x8b }, /* (full grid) */ | ||
371 | |||
372 | #ifndef BOOTLOADER /* bootloader only supports pure ASCII */ | ||
373 | /* Latin 1 */ | ||
374 | { 0xa0, 0, 0, 0x24 }, /* (non-breaking space) */ | ||
375 | { 0xa1, 0, 0, 0x44 }, /* ¡ (inverted !) */ | ||
376 | { 0xa2, 0, 0, 0xa8 }, /* ¢ (cent sign) */ | ||
377 | { 0xa3, 0, 0, 0x05 }, /* £ (pound sign) */ | ||
378 | { 0xa4, 0, 0, 0x28 }, /* ¤ (currency sign) */ | ||
379 | { 0xa5, 0, 0, 0x07 }, /* ¥ (yen sign) */ | ||
380 | |||
381 | { 0xa7, 0, 0, 0x63 }, /* § (paragraph sign) */ | ||
382 | |||
383 | { 0xaf, 0, 0, 0xee }, /* ¯ (macron) */ | ||
384 | |||
385 | { 0xbf, 0, 0, 0x64 }, /* ¿ (inverted ?) */ | ||
386 | { 0xc0, 0, 0, 0x8c }, /* À (A grave) */ | ||
387 | { 0xc1, 0, 0, 0x8d }, /* Á (A acute) */ | ||
388 | { 0xc2, 0, 0, 0x8e }, /* Â (A circumflex) */ | ||
389 | { 0xc3, 0, 0, 0x8f }, /* Ã (A tilde) */ | ||
390 | { 0xc4, 0, 0, 0x5f }, /* Ä (A dieresis) */ | ||
391 | { 0xc5, 0, 0, 0x12 }, /* Å (A with ring above) */ | ||
392 | { 0xc6, 0, 0, 0x20 }, /* Æ (AE ligature) */ | ||
393 | { 0xc7, 0, 0, 0x0d }, /* Ç (C cedilla) */ | ||
394 | { 0xc8, 0, 0, 0x90 }, /* È (E grave) */ | ||
395 | { 0xc9, 0, 0, 0x23 }, /* É (E acute) */ | ||
396 | { 0xca, 0, 0, 0x91 }, /* Ê (E circumflex) */ | ||
397 | { 0xcb, 0, 0, 0x92 }, /* Ë (E dieresis) */ | ||
398 | { 0xcc, 0, 0, 0x93 }, /* Ì (I grave) */ | ||
399 | { 0xcd, 0, 0, 0x94 }, /* Í (I acute) */ | ||
400 | { 0xce, 0, 0, 0x4d }, /* Î (I circumflex) */ | ||
401 | { 0xcf, 0, 0, 0x4d }, /* Ï (I dieresis) */ | ||
402 | { 0xd0, 0, 0, 0x95 }, /* Ð (ETH) */ | ||
403 | { 0xd1, 0, 0, 0x61 }, /* Ñ (N tilde) */ | ||
404 | { 0xd2, 0, 0, 0x96 }, /* Ò (O grave) */ | ||
405 | { 0xd3, 0, 0, 0x97 }, /* Ó (O acute) */ | ||
406 | { 0xd4, 0, 0, 0x98 }, /* Ô (O circumflex) */ | ||
407 | { 0xd5, 0, 0, 0x99 }, /* Õ (O tilde) */ | ||
408 | { 0xd6, 0, 0, 0x60 }, /* Ö (O dieresis) */ | ||
409 | { 0xd7, 0, 0, 0xde }, /* × (multiplication sign) */ | ||
410 | { 0xd8, 0, 0, 0x0f }, /* Ø (O stroke) */ | ||
411 | { 0xd9, 0, 0, 0x9a }, /* Ù (U grave) */ | ||
412 | { 0xda, 0, 0, 0x9b }, /* Ú (U acute) */ | ||
413 | { 0xdb, 0, 0, 0x59 }, /* Û (U circumflex) */ | ||
414 | { 0xdc, 0, 0, 0x62 }, /* Ü (U dieresis) */ | ||
415 | { 0xdd, 0, 0, 0x5d }, /* Ý (Y acute) */ | ||
416 | |||
417 | { 0xdf, 0, 0, 0x22 }, /* ß (sharp s) */ | ||
418 | { 0xe0, 0, 0, 0x83 }, /* à (a grave) */ | ||
419 | { 0xe1, 0, 0, 0x9c }, /* á (a acute) */ | ||
420 | { 0xe2, 0, 0, 0x9d }, /* â (a circumflex) */ | ||
421 | { 0xe3, 0, 0, 0x9e }, /* ã (a tilde) */ | ||
422 | { 0xe4, 0, 0, 0x7f }, /* ä (a dieresis) */ | ||
423 | { 0xe5, 0, 0, 0x13 }, /* å (a with ring above) */ | ||
424 | |||
425 | { 0xe7, 0, 0, 0x84 }, /* ç (c cedilla) */ | ||
426 | { 0xe8, 0, 0, 0x08 }, /* è (e grave) */ | ||
427 | { 0xe9, 0, 0, 0x09 }, /* é (e acute) */ | ||
428 | { 0xea, 0, 0, 0x9f }, /* ê (e circumflex) */ | ||
429 | { 0xeb, 0, 0, 0xa0 }, /* ë (e dieresis) */ | ||
430 | { 0xec, 0, 0, 0x6d }, /* ì (i grave) */ | ||
431 | { 0xed, 0, 0, 0xa1 }, /* í (i acute) */ | ||
432 | { 0xee, 0, 0, 0xa2 }, /* î (i circumflex) */ | ||
433 | { 0xef, 0, 0, 0xa3 }, /* ï (i dieresis) */ | ||
434 | |||
435 | { 0xf1, 0, 0, 0x81 }, /* ñ (n tilde) */ | ||
436 | { 0xf2, 0, 0, 0x0c }, /* ò (o grave) */ | ||
437 | { 0xf3, 0, 0, 0xa4 }, /* ó (o acute) */ | ||
438 | { 0xf4, 0, 0, 0xa5 }, /* ô (o circumflex) */ | ||
439 | { 0xf5, 0, 0, 0xa6 }, /* õ (o tilde) */ | ||
440 | { 0xf6, 0, 0, 0x80 }, /* ö (o dieresis) */ | ||
441 | |||
442 | { 0xf8, 0, 0, 0x10 }, /* ø (o slash) */ | ||
443 | { 0xf9, 0, 0, 0x0a }, /* ù (u grave) */ | ||
444 | { 0xfa, 0, 0, 0xa7 }, /* ú (u acute) */ | ||
445 | { 0xfb, 0, 0, 0x79 }, /* û (u circumflex) */ | ||
446 | { 0xfc, 0, 0, 0xa2 }, /* ü (u dieresis) */ | ||
447 | { 0xfd, 0, 0, 0xaf }, /* ý (y acute) */ | ||
448 | |||
449 | { 0xff, 0, 0, 0x7d }, /* ÿ (y dieresis) */ | ||
450 | |||
451 | /* Runtime-definable characters */ | ||
452 | { 0xe000, 0x8000, 15, 0x24 }, /* variable character 0 */ | ||
453 | { 0xe001, 0x8001, 15, 0x24 }, /* variable character 1 */ | ||
454 | { 0xe002, 0x8002, 15, 0x24 }, /* variable character 2 */ | ||
455 | { 0xe003, 0x8003, 15, 0x24 }, /* variable character 3 */ | ||
456 | { 0xe004, 0x8004, 15, 0x24 }, /* variable character 4 */ | ||
457 | { 0xe005, 0x8005, 15, 0x24 }, /* variable character 5 */ | ||
458 | { 0xe006, 0x8006, 15, 0x24 }, /* variable character 6 */ | ||
459 | { 0xe007, 0x8007, 15, 0x24 }, /* variable character 7 */ | ||
460 | { 0xe008, 0x8008, 15, 0x24 }, /* variable character 8 */ | ||
461 | { 0xe009, 0x8009, 15, 0x24 }, /* variable character 9 */ | ||
462 | { 0xe00a, 0x800a, 15, 0x24 }, /* variable character 10 */ | ||
463 | { 0xe00b, 0x800b, 15, 0x24 }, /* variable character 11 */ | ||
464 | { 0xe00c, 0x800c, 15, 0x24 }, /* variable character 12 */ | ||
465 | { 0xe00d, 0x800d, 15, 0x24 }, /* variable character 13 */ | ||
466 | { 0xe00e, 0x800e, 15, 0x24 }, /* variable character 14 */ | ||
467 | { 0xe00f, 0x800f, 15, 0x24 }, /* variable character 15 */ | ||
468 | |||
469 | /* Icons and special symbols */ | ||
470 | { 0xe100, 0x0004, 14, 0x43 }, /* unknown icon (mirrored ?) */ | ||
471 | { 0xe101, 0x0005, 14, 0xd4 }, /* bookmark icon */ | ||
472 | { 0xe102, 0x0006, 14, 0x2d }, /* plugin icon */ | ||
473 | { 0xe103, 0x0007, 14, 0x34 }, /* folder icon */ | ||
474 | { 0xe104, 0x0008, 14, 0x7c }, /* firmware icon */ | ||
475 | { 0xe105, 0x0009, 14, 0x2f }, /* language icon */ | ||
476 | { 0xe106, 0, 0, 0xfc }, /* audio icon (note) */ | ||
477 | { 0xe107, 0x000b, 14, 0xd4 }, /* wps icon */ | ||
478 | { 0xe108, 0x000c, 14, 0xfa }, /* playlist icon */ | ||
479 | { 0xe109, 0x000f, 14, 0xfa }, /* text file icon */ | ||
480 | { 0xe10a, 0x000e, 14, 0xfa }, /* config icon */ | ||
481 | { 0xe10b, 0, 0, 0x88 }, /* left arrow */ | ||
482 | { 0xe10c, 0, 0, 0x89 }, /* right arrow */ | ||
483 | { 0xe10d, 0, 0, 0x86 }, /* up arrow */ | ||
484 | { 0xe10e, 0, 0, 0x87 }, /* down arrow */ | ||
485 | { 0xe10f, 0, 0, 0x88 }, /* filled left arrow */ | ||
486 | { 0xe110, 0, 0, 0x89 }, /* filled right arrow */ | ||
487 | { 0xe111, 0, 0, 0x86 }, /* filled up arrow */ | ||
488 | { 0xe112, 0, 0, 0x87 }, /* filled down arrow */ | ||
489 | { 0xe113, 0, 0, 0x24 }, /* level 0/7 */ | ||
490 | { 0xe114, 0, 0, 0x15 }, /* level 1/7 */ | ||
491 | { 0xe115, 0, 0, 0xdf }, /* level 2/7 */ | ||
492 | { 0xe116, 0, 0, 0xe0 }, /* level 3/7 */ | ||
493 | { 0xe117, 0, 0, 0xe1 }, /* level 4/7 */ | ||
494 | { 0xe118, 0, 0, 0xe2 }, /* level 5/7 */ | ||
495 | { 0xe119, 0, 0, 0xe3 }, /* level 6/7 */ | ||
496 | { 0xe11a, 0, 0, 0xec }, /* level 7/7 */ | ||
497 | #endif /* !BOOTLOADER */ | ||
498 | |||
499 | /* no-char symbol */ | ||
500 | { 0xfffd, 0, 0, 0xd8 }, | ||
501 | }; | ||
502 | |||
503 | const unsigned char xfont_fixed[][8] = { | ||
504 | /* Standard ascii */ | ||
505 | { 0x00, 0x10, 0x08, 0x04, 0x02, 0x01, 0x00, 0x00}, /* 0x000 \ */ | ||
506 | { 0x08, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x001 ` */ | ||
507 | { 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x00}, /* 0x002 | */ | ||
508 | { 0x00, 0x00, 0x08, 0x15, 0x02, 0x00, 0x00, 0x00}, /* 0x003 ~ */ | ||
509 | |||
510 | #ifndef BOOTLOADER /* bootloader only supports pure ASCII */ | ||
511 | /* Icons and special symbols */ | ||
512 | { 0x0c, 0x12, 0x12, 0x08, 0x08, 0x00, 0x08, 0x00}, /* 0x004 unknown icon */ | ||
513 | { 0x00, 0x03, 0x07, 0x0e, 0x1c, 0x08, 0x00, 0x00}, /* 0x005 bookmark icon */ | ||
514 | { 0x04, 0x1e, 0x07, 0x1f, 0x05, 0x01, 0x06, 0x00}, /* 0x006 plugin icon */ | ||
515 | { 0x0c, 0x13, 0x11, 0x11, 0x11, 0x11, 0x1f, 0x00}, /* 0x007 folder icon */ | ||
516 | { 0x1f, 0x11, 0x1b, 0x15, 0x1b, 0x11, 0x1f, 0x00}, /* 0x008 firmware icon */ | ||
517 | { 0x00, 0x1f, 0x15, 0x1f, 0x15, 0x1f, 0x00, 0x00}, /* 0x009 language icon */ | ||
518 | { 0x03, 0x05, 0x09, 0x09, 0x0b, 0x1b, 0x18, 0x00}, /* 0x00a audio icon (note) */ | ||
519 | { 0x01, 0x01, 0x02, 0x02, 0x14, 0x0c, 0x04, 0x00}, /* 0x00b wps icon */ | ||
520 | { 0x17, 0x00, 0x17, 0x00, 0x17, 0x00, 0x17, 0x00}, /* 0x00c playlist icon */ | ||
521 | { 0x1f, 0x00, 0x1f, 0x00, 0x1f, 0x00, 0x1f, 0x00}, /* 0x00d text file icon */ | ||
522 | { 0x0b, 0x10, 0x0b, 0x00, 0x1f, 0x00, 0x1f, 0x00}, /* 0x00e config icon */ | ||
523 | /* Latin 1 */ | ||
524 | { 0x06, 0x09, 0x08, 0x1e, 0x08, 0x08, 0x1f, 0x00}, /* 0x00f £ (pound sign) */ | ||
525 | { 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x010 ¯ (macron) */ | ||
526 | { 0x04, 0x00, 0x04, 0x08, 0x10, 0x11, 0x0e, 0x00}, /* 0x011 ¿ (inverted ?) */ | ||
527 | { 0x08, 0x04, 0x0e, 0x11, 0x1f, 0x11, 0x11, 0x00}, /* 0x012 À (A grave) */ | ||
528 | { 0x02, 0x04, 0x0e, 0x11, 0x1f, 0x11, 0x11, 0x00}, /* 0x013 Á (A acute) */ | ||
529 | { 0x04, 0x0a, 0x0e, 0x11, 0x1f, 0x11, 0x11, 0x00}, /* 0x014 Â (a circumflex) */ | ||
530 | { 0x0d, 0x12, 0x0e, 0x11, 0x1f, 0x11, 0x11, 0x00}, /* 0x015 Ã (A tilde) */ | ||
531 | { 0x0a, 0x00, 0x04, 0x0a, 0x11, 0x1f, 0x11, 0x00}, /* 0x016 Ä (A dieresis) */ | ||
532 | { 0x04, 0x0a, 0x04, 0x0e, 0x11, 0x1f, 0x11, 0x00}, /* 0x017 Å (A with ring above) */ | ||
533 | { 0x0f, 0x14, 0x14, 0x1f, 0x14, 0x14, 0x17, 0x00}, /* 0x018 Æ (AE ligature) */ | ||
534 | { 0x0f, 0x10, 0x10, 0x10, 0x0f, 0x02, 0x0e, 0x00}, /* 0x019 Ç (C cedilla) */ | ||
535 | { 0x08, 0x04, 0x1f, 0x10, 0x1e, 0x10, 0x1f, 0x00}, /* 0x01a È (E grave) */ | ||
536 | { 0x02, 0x04, 0x1f, 0x10, 0x1c, 0x10, 0x1f, 0x00}, /* 0x01b É (E acute) */ | ||
537 | { 0x04, 0x0a, 0x1f, 0x10, 0x1c, 0x10, 0x1f, 0x00}, /* 0x01c Ê (E circumflex) */ | ||
538 | { 0x0a, 0x00, 0x1f, 0x10, 0x1c, 0x10, 0x1f, 0x00}, /* 0x01d Ë (E dieresis)*/ | ||
539 | { 0x08, 0x04, 0x0e, 0x04, 0x04, 0x04, 0x0e, 0x00}, /* 0x01e Ì (I grave) */ | ||
540 | { 0x02, 0x04, 0x0e, 0x04, 0x04, 0x04, 0x0e, 0x00}, /* 0x01f Í (I acute) */ | ||
541 | { 0x0c, 0x0a, 0x09, 0x1d, 0x09, 0x0a, 0x0c, 0x00}, /* 0x020 Ð (ETH) */ | ||
542 | { 0x0d, 0x12, 0x00, 0x19, 0x15, 0x13, 0x11, 0x00}, /* 0x021 Ñ (N tilde) */ | ||
543 | { 0x08, 0x04, 0x0e, 0x11, 0x11, 0x11, 0x0e, 0x00}, /* 0x022 Ò (O grave) */ | ||
544 | { 0x02, 0x04, 0x0e, 0x11, 0x11, 0x11, 0x0e, 0x00}, /* 0x023 Ó (O acute) */ | ||
545 | { 0x04, 0x0a, 0x0e, 0x11, 0x11, 0x11, 0x0e, 0x00}, /* 0x024 Ô (O circumflex) */ | ||
546 | { 0x0d, 0x12, 0x0e, 0x11, 0x11, 0x11, 0x0e, 0x00}, /* 0x025 Õ (O tilde) */ | ||
547 | { 0x0a, 0x00, 0x0e, 0x11, 0x11, 0x11, 0x0e, 0x00}, /* 0x026 Ö (O dieresis) */ | ||
548 | { 0x01, 0x0e, 0x13, 0x15, 0x19, 0x0e, 0x10, 0x00}, /* 0x027 Ø (O stroke) */ | ||
549 | { 0x08, 0x04, 0x11, 0x11, 0x11, 0x11, 0x0e, 0x00}, /* 0x028 Ù (U grave) */ | ||
550 | { 0x02, 0x04, 0x11, 0x11, 0x11, 0x11, 0x0e, 0x00}, /* 0x029 Ú (U acute) */ | ||
551 | { 0x0a, 0x00, 0x11, 0x11, 0x11, 0x11, 0x0e, 0x00}, /* 0x02a Ü (U dieresis) */ | ||
552 | { 0x08, 0x04, 0x0e, 0x01, 0x0f, 0x11, 0x0f, 0x00}, /* 0x02b à (a grave) */ | ||
553 | { 0x02, 0x04, 0x0e, 0x01, 0x0f, 0x11, 0x0f, 0x00}, /* 0x02c á (a acute) */ | ||
554 | { 0x04, 0x0a, 0x0e, 0x01, 0x0f, 0x11, 0x0f, 0x00}, /* 0x02d â (a circumflex) */ | ||
555 | { 0x0d, 0x12, 0x0e, 0x01, 0x0f, 0x11, 0x0f, 0x00}, /* 0x02e ã (a tilde) */ | ||
556 | { 0x0a, 0x00, 0x0e, 0x01, 0x0f, 0x11, 0x0f, 0x00}, /* 0x02f ä (a dieresis) */ | ||
557 | { 0x04, 0x0a, 0x0e, 0x01, 0x0f, 0x11, 0x0f, 0x00}, /* 0x030 å (a with ring above) */ | ||
558 | { 0x00, 0x0f, 0x10, 0x10, 0x0f, 0x02, 0x04, 0x00}, /* 0x031 ç (c cedilla) */ | ||
559 | { 0x08, 0x04, 0x0e, 0x11, 0x1f, 0x10, 0x0e, 0x00}, /* 0x032 è (e grave) */ | ||
560 | { 0x02, 0x04, 0x0e, 0x11, 0x1f, 0x10, 0x0e, 0x00}, /* 0x033 é (e acute) */ | ||
561 | { 0x04, 0x0a, 0x0e, 0x11, 0x1f, 0x10, 0x0e, 0x00}, /* 0x034 ê (e circumflex) */ | ||
562 | { 0x0a, 0x00, 0x0e, 0x11, 0x1f, 0x10, 0x0e, 0x00}, /* 0x035 ë (e dieresis) */ | ||
563 | { 0x02, 0x04, 0x00, 0x0c, 0x04, 0x04, 0x0e, 0x00}, /* 0x036 í (i acute) */ | ||
564 | { 0x04, 0x0a, 0x00, 0x0c, 0x04, 0x04, 0x0e, 0x00}, /* 0x037 î (i circumflex) */ | ||
565 | { 0x0a, 0x00, 0x00, 0x0c, 0x04, 0x04, 0x0e, 0x00}, /* 0x038 ï (i dieresis) */ | ||
566 | { 0x0d, 0x12, 0x00, 0x16, 0x19, 0x11, 0x11, 0x00}, /* 0x039 ñ (n tilde) */ | ||
567 | { 0x08, 0x04, 0x00, 0x0e, 0x11, 0x11, 0x0e, 0x00}, /* 0x03a ò (o grave) */ | ||
568 | { 0x02, 0x04, 0x00, 0x0e, 0x11, 0x11, 0x0e, 0x00}, /* 0x03b ó (o acute) */ | ||
569 | { 0x04, 0x0a, 0x00, 0x0e, 0x11, 0x11, 0x0e, 0x00}, /* 0x03c ô (o circumflex) */ | ||
570 | { 0x0d, 0x12, 0x00, 0x0e, 0x11, 0x11, 0x0e, 0x00}, /* 0x03d õ (o tilde) */ | ||
571 | { 0x00, 0x0a, 0x00, 0x0e, 0x11, 0x11, 0x0e, 0x00}, /* 0x03e ö (o dieresis) */ | ||
572 | { 0x00, 0x02, 0x0e, 0x15, 0x15, 0x0e, 0x08, 0x00}, /* 0x03f ø (o slash) */ | ||
573 | { 0x08, 0x04, 0x00, 0x11, 0x11, 0x13, 0x0d, 0x00}, /* 0x040 ù (u grave) */ | ||
574 | { 0x02, 0x04, 0x00, 0x11, 0x11, 0x13, 0x0d, 0x00}, /* 0x041 ú (u acute) */ | ||
575 | { 0x00, 0x0a, 0x00, 0x11, 0x11, 0x13, 0x0d, 0x00}, /* 0x042 ü (u dieresis) */ | ||
576 | { 0x02, 0x04, 0x11, 0x11, 0x0f, 0x01, 0x0e, 0x00}, /* 0x043 ý (y acute) */ | ||
577 | #endif /* !BOOTLOADER */ | ||
578 | }; | ||
579 | |||
580 | void lcd_charset_init(void) | ||
581 | { | ||
582 | if (is_new_player()) | ||
583 | { | ||
584 | hw_pattern_count = 8; | ||
585 | xchar_info = xchar_info_newlcd; | ||
586 | xchar_info_size = sizeof(xchar_info_newlcd)/sizeof(struct xchar_info); | ||
587 | } | ||
588 | else /* old lcd */ | ||
589 | { | ||
590 | hw_pattern_count = 4; | ||
591 | xchar_info = xchar_info_oldlcd; | ||
592 | xchar_info_size = sizeof(xchar_info_oldlcd)/sizeof(struct xchar_info); | ||
593 | } | ||
594 | } | ||