Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2136 | - | 1 | /***************************************************************************** |
2 | * Copyright (C) 2009 Peter "woggle" Mack, mac@denich.net * |
||
3 | * - font provided by Claas Anders "CaScAdE" Rathje * |
||
4 | * - umlauts and special characters by Peter "woggle" Mack * |
||
5 | * * |
||
6 | * This program is free software; you can redistribute it and/or modify * |
||
7 | * it under the terms of the GNU General Public License as published by * |
||
8 | * the Free Software Foundation; either version 2 of the License. * |
||
9 | * * |
||
10 | * This program is distributed in the hope that it will be useful, * |
||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
||
13 | * GNU General Public License for more details. * |
||
14 | * * |
||
15 | * You should have received a copy of the GNU General Public License * |
||
16 | * along with this program; if not, write to the * |
||
17 | * Free Software Foundation, Inc., * |
||
18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
||
19 | * * |
||
20 | *****************************************************************************/ |
||
21 | |||
22 | //############################################################################ |
||
23 | //# HISTORY font8x6.c |
||
24 | //# |
||
25 | //# 07.07.2013 OG |
||
26 | //# - add: SYMBOL_CHECK (ehemals 'Antenne' Ascii 31) |
||
27 | //# |
||
28 | //# 11.06.2013 OG |
||
29 | //# - add: SYMBOL_AVG, SYMBOL_MIN, SYMBOL_MAX fuer OSDDATA Anzeige |
||
30 | //# - del: Antennen-Symbol von OSD_General (wird wieder gezeichnet) |
||
31 | //# |
||
32 | //# 15.05.2013 OG |
||
33 | //# - add: ASC 11 (0x0B) SYMBOL_SMALLDEGREE |
||
34 | //# - add: ASC 16 (0x10) SYMBOL_RCQUALITY |
||
35 | //############################################################################ |
||
36 | |||
37 | #include <avr/pgmspace.h> |
||
38 | |||
39 | // one byte is a column |
||
40 | // bit 7 is the bottom |
||
41 | // |
||
42 | // 123456 |
||
43 | // L 1 | XXX | |
||
44 | // O 2 |X X | |
||
45 | // W 4 |X X | |
||
46 | // 8 | XXX | |
||
47 | // H 1 |X X | |
||
48 | // I 2 |X X | |
||
49 | // G 4 | XXX | |
||
50 | // H 8 | | |
||
51 | // |
||
52 | // 0x36,0x49,0x49,0x49,0x36,0x00 |
||
53 | // |
||
54 | |||
55 | // 123456 |
||
56 | // L 1 | | |
||
57 | // O 2 | | |
||
58 | // W 4 | X| |
||
59 | // 8 | X | |
||
60 | // H 1 | X | |
||
61 | // I 2 |X X | |
||
62 | // G 4 | X | |
||
63 | // H 8 | | |
||
64 | |||
65 | // 0x20,0x40,0x20,0x10,0x08,0x04 |
||
66 | |||
67 | |||
68 | // 123456 |
||
69 | // L 1 | | |
||
70 | // O 2 | X| |
||
71 | // W 4 | X | |
||
72 | // 8 | X | |
||
73 | // H 1 |X X | |
||
74 | // I 2 | X | |
||
75 | // G 4 | | |
||
76 | // H 8 | | |
||
77 | |||
78 | // 0x10,0x20,0x10,0x08,0x04,0x02 |
||
79 | |||
80 | // 123456 |
||
81 | // L 1 | | |
||
82 | // O 2 | | |
||
83 | // W 4 | XX| |
||
84 | // 8 | XX | |
||
85 | // H 1 |X XX | |
||
86 | // I 2 | XX | |
||
87 | // G 4 | | |
||
88 | // H 8 | | |
||
89 | |||
90 | // 0x10,0x20,0x30,0x18,0x0c,0x04 |
||
91 | //---------------------------------------------------------------- |
||
92 | |||
93 | const uint8_t font8x6[128][6] PROGMEM = |
||
94 | { |
||
95 | { 0x00,0x00,0x00,0x00,0x00,0x00 }, // ASCII - 0 00 (not useable) |
||
96 | |||
97 | { 0x78,0x15,0x14,0x15,0x78,0x00 }, // ASCII - 1 01 'Ä' |
||
98 | { 0x20,0x55,0x54,0x55,0x78,0x00 }, // ASCII - 2 02 'ä' |
||
99 | { 0x38,0x45,0x44,0x45,0x38,0x00 }, // ASCII - 3 03 'Ö' |
||
100 | { 0x30,0x49,0x48,0x49,0x30,0x00 }, // ASCII - 4 04 'ö' |
||
101 | { 0x3c,0x41,0x40,0x41,0x3c,0x00 }, // ASCII - 5 05 'Ü' |
||
102 | { 0x38,0x41,0x40,0x21,0x78,0x00 }, // ASCII - 6 06 'ü' |
||
103 | { 0x7e,0x15,0x15,0x15,0x0a,0x00 }, // ASCII - 7 07 'ß' |
||
104 | { 0x22,0x17,0x0F,0x17,0x22,0x00 }, // ASCII - 8 08 SAT Symbol |
||
105 | { 0x00,0x84,0x82,0xFF,0x82,0x84 }, // ASCII - 9 09 Altitude Symbol |
||
106 | { 0x1c,0x14,0x1c,0x00,0x00,0x00 }, // ASCII - 10 0A (not useable) SYMBOL_AVG |
||
107 | { 0x00,0x07,0x05,0x07,0x00,0x00 }, // ASCII - 11 0B small degree SYMBOL_SMALLDEGREE |
||
108 | { 0x10,0x38,0x54,0x10,0x10,0x1e }, // ASCII - 12 0C Enter Symbol |
||
109 | { 0x18,0x0c,0x18,0x00,0x00,0x00 }, // ASCII - 13 0D (not useable) SYMBOL_MAX |
||
110 | { 0x10,0x10,0x10,0x10,0x10,0x10 }, // ASCII - 14 0E hor. line |
||
111 | { 0x10,0x10,0x10,0x7c,0x10,0x10 }, // ASCII - 15 0F hor. line with tick mark |
||
112 | { 0x08,0x10,0x08,0x00,0x00,0x00 }, // ASCII - 16 10 rc quality SYMBOL_MIN |
||
113 | { 0x08,0x14,0x00,0x00,0x14,0x08 }, // ASCII - 17 11 <> Change |
||
114 | { 0x10,0x08,0x04,0x04,0x08,0x10 }, // ASCII - 18 12 /\ Up |
||
115 | { 0x08,0x10,0x20,0x20,0x10,0x08 }, // ASCII - 19 13 \/ Down |
||
116 | { 0x00,0x08,0x14,0x22,0x41,0x00 }, // ASCII - 20 14 < Left |
||
117 | { 0x00,0x41,0x22,0x14,0x08,0x00 }, // ASCII - 21 15 > Right |
||
118 | { 0x04,0x02,0x7f,0x02,0x04,0x00 }, // ASCII - 22 16 /|\ Arrow up |
||
119 | { 0x10,0x20,0x7f,0x20,0x10,0x00 }, // ASCII - 23 17 \|/ Arrow down |
||
120 | { 0x10,0x38,0x54,0x10,0x10,0x10 }, // ASCII - 24 18 <- Arrow left |
||
121 | { 0x10,0x10,0x10,0x54,0x38,0x10 }, // ASCII - 25 19 -> Arrow right |
||
122 | { 0x10,0x18,0x1c,0x1c,0x18,0x10 }, // ASCII - 26 1A ^ Triangle up |
||
123 | { 0x08,0x18,0x38,0x38,0x18,0x08 }, // ASCII - 27 1B v Triangle down |
||
124 | { 0x00,0x08,0x1c,0x3e,0x7f,0x00 }, // ASCII - 28 1C < Triangle left |
||
125 | { 0x00,0x7f,0x3e,0x1c,0x08,0x00 }, // ASCII - 29 1D > Triangle right |
||
126 | { 0x06,0x09,0x09,0x09,0x06,0x00 }, // ASCII - 30 1E '°' big degree SYMBOL_BIGDEGREE |
||
127 | |||
128 | // { 0x06,0x49,0x7d,0x49,0x06,0x00 }, // ASCII - 31 1F Antenne (ALT) |
||
129 | { 0x10,0x20,0x10,0x08,0x04,0x02 }, // ASCII - 31 1F SYMBOL_CHECK |
||
130 | |||
131 | { 0x00,0x00,0x00,0x00,0x00,0x00 }, // ASCII - 32 20 ' ' |
||
132 | { 0x00,0x00,0x2f,0x00,0x00,0x00 }, // ASCII - 33 21 '!' |
||
133 | { 0x00,0x07,0x00,0x07,0x00,0x00 }, // ASCII - 34 22 '"' |
||
134 | { 0x14,0x7f,0x14,0x7f,0x14,0x00 }, // ASCII - 35 23 '#' |
||
135 | { 0x24,0x2a,0x6b,0x2a,0x12,0x00 }, // ASCII - 36 24 '$' |
||
136 | { 0x23,0x13,0x08,0x64,0x62,0x00 }, // ASCII - 37 25 '%' |
||
137 | { 0x36,0x49,0x55,0x22,0x50,0x00 }, // ASCII - 38 26 '&' |
||
138 | { 0x00,0x05,0x03,0x00,0x00,0x00 }, // ASCII - 39 27 ''' |
||
139 | { 0x00,0x1c,0x22,0x41,0x00,0x00 }, // ASCII - 40 28 '(' |
||
140 | { 0x00,0x41,0x22,0x1c,0x00,0x00 }, // ASCII - 41 29 ')' |
||
141 | { 0x14,0x08,0x3e,0x08,0x14,0x00 }, // ASCII - 42 2a '*' |
||
142 | { 0x08,0x08,0x3e,0x08,0x08,0x00 }, // ASCII - 43 2b '+' |
||
143 | { 0x00,0x50,0x30,0x00,0x00,0x00 }, // ASCII - 44 2c ',' |
||
144 | { 0x08,0x08,0x08,0x08,0x08,0x00 }, // ASCII - 45 2d '-' |
||
145 | { 0x00,0x60,0x60,0x00,0x00,0x00 }, // ASCII - 46 2e '.' |
||
146 | { 0x20,0x10,0x08,0x04,0x02,0x00 }, // ASCII - 47 2f '/' |
||
147 | { 0x3e,0x51,0x49,0x45,0x3e,0x00 }, // ASCII - 48 30 '0' |
||
148 | { 0x00,0x42,0x7f,0x40,0x00,0x00 }, // ASCII - 49 31 '1' |
||
149 | { 0x42,0x61,0x51,0x49,0x46,0x00 }, // ASCII - 50 32 '2' |
||
150 | { 0x21,0x41,0x45,0x4b,0x31,0x00 }, // ASCII - 51 33 '3' |
||
151 | { 0x18,0x14,0x12,0x7f,0x10,0x00 }, // ASCII - 52 34 '4' |
||
152 | { 0x27,0x45,0x45,0x45,0x39,0x00 }, // ASCII - 53 35 '5' |
||
153 | { 0x3c,0x4a,0x49,0x49,0x30,0x00 }, // ASCII - 54 36 '6' |
||
154 | { 0x03,0x01,0x71,0x09,0x07,0x00 }, // ASCII - 55 37 '7' |
||
155 | { 0x36,0x49,0x49,0x49,0x36,0x00 }, // ASCII - 56 38 '8' |
||
156 | { 0x06,0x49,0x49,0x29,0x1e,0x00 }, // ASCII - 57 39 '9' |
||
157 | { 0x00,0x36,0x36,0x00,0x00,0x00 }, // ASCII - 58 3a ':' |
||
158 | { 0x00,0x56,0x36,0x00,0x00,0x00 }, // ASCII - 59 3b ';' |
||
159 | { 0x08,0x14,0x22,0x41,0x00,0x00 }, // ASCII - 60 3c '<' |
||
160 | { 0x14,0x14,0x14,0x14,0x14,0x00 }, // ASCII - 61 3d '=' |
||
161 | { 0x00,0x41,0x22,0x14,0x08,0x00 }, // ASCII - 62 3e '>' |
||
162 | { 0x02,0x01,0x51,0x09,0x06,0x00 }, // ASCII - 63 3f '?' |
||
163 | { 0x32,0x49,0x79,0x41,0x3e,0x00 }, // ASCII - 64 40 '@' |
||
164 | { 0x7e,0x11,0x11,0x11,0x7e,0x00 }, // ASCII - 65 41 'A' |
||
165 | { 0x7f,0x49,0x49,0x49,0x36,0x00 }, // ASCII - 66 42 'B' |
||
166 | { 0x3e,0x41,0x41,0x41,0x22,0x00 }, // ASCII - 67 43 'C' |
||
167 | { 0x7f,0x41,0x41,0x22,0x1c,0x00 }, // ASCII - 68 44 'D' |
||
168 | { 0x7f,0x49,0x49,0x49,0x41,0x00 }, // ASCII - 69 45 'E' |
||
169 | { 0x7f,0x09,0x09,0x09,0x01,0x00 }, // ASCII - 70 46 'F' |
||
170 | { 0x3e,0x41,0x49,0x49,0x7a,0x00 }, // ASCII - 71 47 'G' |
||
171 | { 0x7f,0x08,0x08,0x08,0x7f,0x00 }, // ASCII - 72 48 'H' |
||
172 | { 0x00,0x41,0x7f,0x41,0x00,0x00 }, // ASCII - 73 49 'I' |
||
173 | { 0x20,0x40,0x41,0x3f,0x01,0x00 }, // ASCII - 74 4a 'J' |
||
174 | { 0x7f,0x08,0x14,0x22,0x41,0x00 }, // ASCII - 75 4b 'K' |
||
175 | { 0x7f,0x40,0x40,0x40,0x40,0x00 }, // ASCII - 76 4c 'L' |
||
176 | { 0x7f,0x02,0x0c,0x02,0x7f,0x00 }, // ASCII - 77 4d 'M' |
||
177 | { 0x7f,0x04,0x08,0x10,0x7f,0x00 }, // ASCII - 78 4e 'N' |
||
178 | { 0x3e,0x41,0x41,0x41,0x3e,0x00 }, // ASCII - 79 4f 'O' |
||
179 | { 0x7f,0x09,0x09,0x09,0x06,0x00 }, // ASCII - 80 50 'P' |
||
180 | { 0x3e,0x41,0x51,0x21,0x5e,0x00 }, // ASCII - 81 51 'Q' |
||
181 | { 0x7f,0x09,0x19,0x29,0x46,0x00 }, // ASCII - 82 52 'R' |
||
182 | { 0x46,0x49,0x49,0x49,0x31,0x00 }, // ASCII - 83 53 'S' |
||
183 | { 0x01,0x01,0x7f,0x01,0x01,0x00 }, // ASCII - 84 54 'T' |
||
184 | { 0x3f,0x40,0x40,0x40,0x3f,0x00 }, // ASCII - 85 55 'U' |
||
185 | { 0x1f,0x20,0x40,0x20,0x1f,0x00 }, // ASCII - 86 56 'V' |
||
186 | { 0x3f,0x40,0x38,0x40,0x3f,0x00 }, // ASCII - 87 57 'W' |
||
187 | { 0x63,0x14,0x08,0x14,0x63,0x00 }, // ASCII - 88 58 'X' |
||
188 | { 0x07,0x08,0x70,0x08,0x07,0x00 }, // ASCII - 89 59 'Y' |
||
189 | { 0x61,0x51,0x49,0x45,0x43,0x00 }, // ASCII - 90 5a 'Z' |
||
190 | { 0x7f,0x41,0x41,0x00,0x00,0x00 }, // ASCII - 91 5b '[' |
||
191 | { 0x02,0x04,0x08,0x10,0x20,0x00 }, // ASCII - 92 5c '\' |
||
192 | { 0x00,0x41,0x41,0x7f,0x00,0x00 }, // ASCII - 93 5d ']' |
||
193 | { 0x04,0x02,0x01,0x02,0x04,0x00 }, // ASCII - 94 5e '^' |
||
194 | { 0x40,0x40,0x40,0x40,0x40,0x00 }, // ASCII - 95 5f '_' |
||
195 | { 0x00,0x01,0x02,0x04,0x00,0x00 }, // ASCII - 96 60 '`' |
||
196 | { 0x20,0x54,0x54,0x54,0x78,0x00 }, // ASCII - 97 61 'a' |
||
197 | { 0x7f,0x48,0x44,0x44,0x38,0x00 }, // ASCII - 98 62 'b' |
||
198 | { 0x38,0x44,0x44,0x44,0x20,0x00 }, // ASCII - 99 63 'c' |
||
199 | { 0x38,0x44,0x44,0x48,0x7f,0x00 }, // ASCII - 100 64 'd' |
||
200 | { 0x38,0x54,0x54,0x54,0x18,0x00 }, // ASCII - 101 65 'e' |
||
201 | { 0x08,0x7e,0x09,0x01,0x02,0x00 }, // ASCII - 102 66 'f' |
||
202 | { 0x0c,0x52,0x52,0x52,0x3e,0x00 }, // ASCII - 103 67 'g' |
||
203 | { 0x7f,0x08,0x04,0x04,0x78,0x00 }, // ASCII - 104 68 'h' |
||
204 | { 0x00,0x44,0x7d,0x40,0x00,0x00 }, // ASCII - 105 69 'i' |
||
205 | { 0x20,0x40,0x44,0x3d,0x00,0x00 }, // ASCII - 106 6a 'j' |
||
206 | { 0x7f,0x10,0x28,0x44,0x00,0x00 }, // ASCII - 107 6b 'k' |
||
207 | { 0x00,0x41,0x7f,0x40,0x00,0x00 }, // ASCII - 108 6c 'l' |
||
208 | { 0x7c,0x04,0x18,0x04,0x78,0x00 }, // ASCII - 109 6d 'm' |
||
209 | { 0x7c,0x08,0x04,0x04,0x78,0x00 }, // ASCII - 110 6e 'n' |
||
210 | { 0x38,0x44,0x44,0x44,0x38,0x00 }, // ASCII - 111 6f 'o' |
||
211 | { 0x7c,0x14,0x14,0x14,0x08,0x00 }, // ASCII - 112 70 'p' |
||
212 | { 0x08,0x14,0x14,0x18,0x7c,0x00 }, // ASCII - 113 71 'q' |
||
213 | { 0x7c,0x08,0x04,0x04,0x08,0x00 }, // ASCII - 114 72 'r' |
||
214 | { 0x48,0x54,0x54,0x54,0x20,0x00 }, // ASCII - 115 73 's' |
||
215 | { 0x04,0x3f,0x44,0x40,0x20,0x00 }, // ASCII - 116 74 't' |
||
216 | { 0x3c,0x40,0x40,0x20,0x7c,0x00 }, // ASCII - 117 75 'u' |
||
217 | { 0x1c,0x20,0x40,0x20,0x1c,0x00 }, // ASCII - 118 76 'v' |
||
218 | { 0x3c,0x40,0x38,0x40,0x3c,0x00 }, // ASCII - 119 77 'w' |
||
219 | { 0x44,0x28,0x10,0x28,0x44,0x00 }, // ASCII - 120 78 'x' |
||
220 | { 0x0c,0x50,0x50,0x50,0x3c,0x00 }, // ASCII - 121 79 'y' |
||
221 | { 0x44,0x64,0x54,0x4c,0x44,0x00 }, // ASCII - 122 7a 'z' |
||
222 | { 0x00,0x08,0x36,0x41,0x00,0x00 }, // ASCII - 123 7b '{' |
||
223 | { 0x00,0x00,0x7f,0x00,0x00,0x00 }, // ASCII - 124 7c '|' |
||
224 | { 0x00,0x41,0x36,0x08,0x00,0x00 }, // ASCII - 125 7d '}' |
||
225 | { 0x08,0x08,0x2a,0x1c,0x08,0x00 }, // ASCII - 126 7e -> |
||
226 | { 0x08,0x1c,0x2a,0x08,0x08,0x00 }, // ASCII - 127 7f <- |
||
227 | }; |
||
228 | |||
229 | |||
230 | /* |
||
231 | { 0x02,0x0a,0x2a,0x0a,0x02,0x00 }, // ASCII - 16 10 rc quality SYMBOL_RCQUALITY (wieder entfernt weil der Platz gebraucht wurde) |
||
232 | */ |