Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1734 | - | 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 | #include <avr/pgmspace.h> |
||
23 | |||
24 | // one byte is a column |
||
25 | // bit 7 is the bottom |
||
26 | // |
||
27 | // 123456 |
||
28 | // L 1 | XXX | |
||
29 | // O 2 |X X | |
||
30 | // W 4 |X X | |
||
31 | // 8 | XXX | |
||
32 | // H 1 |X X | |
||
33 | // I 2 |X X | |
||
34 | // G 4 | XXX | |
||
35 | // H 8 | | |
||
36 | // |
||
37 | // 0x36,0x49,0x49,0x49,0x36,0x00 |
||
38 | // |
||
39 | |||
40 | //prog_uint8_t font8x6[128][6] = // führt zu Fehler mit AVR-GCC 4.5.1 21.2.2012 Cebra |
||
41 | const uint8_t font8x6[128][6] PROGMEM = |
||
42 | { |
||
43 | { 0x00,0x00,0x00,0x00,0x00,0x00 }, // ASCII - 0 00 (not useable) |
||
44 | { 0x78,0x15,0x14,0x15,0x78,0x00 }, // ASCII - 1 01 'Ä' |
||
45 | { 0x20,0x55,0x54,0x55,0x78,0x00 }, // ASCII - 2 02 'ä' |
||
46 | { 0x38,0x45,0x44,0x45,0x38,0x00 }, // ASCII - 3 03 'Ö' |
||
47 | { 0x30,0x49,0x48,0x49,0x30,0x00 }, // ASCII - 4 04 'ö' |
||
48 | { 0x3c,0x41,0x40,0x41,0x3c,0x00 }, // ASCII - 5 05 'Ü' |
||
49 | { 0x38,0x41,0x40,0x21,0x78,0x00 }, // ASCII - 6 06 'ü' |
||
50 | { 0x7e,0x15,0x15,0x15,0x0a,0x00 }, // ASCII - 7 07 'ß' |
||
51 | { 0x22,0x17,0x0F,0x17,0x22,0x00 }, // ASCII - 8 08 SAT Symbol |
||
52 | { 0x00,0x84,0x82,0xFF,0x82,0x84 }, // ASCII - 9 09 Altitude Symbol |
||
53 | { 0x00,0x00,0x00,0x00,0x00,0x00 }, // ASCII - 10 0A (not useable) |
||
54 | { 0x00,0x00,0x00,0x00,0x00,0x00 }, // ASCII - 11 0B |
||
55 | { 0x10,0x38,0x54,0x10,0x10,0x1e }, // ASCII - 12 0C Enter Symbol |
||
56 | { 0x00,0x00,0x00,0x00,0x00,0x00 }, // ASCII - 13 0D (not useable) |
||
57 | { 0x10,0x10,0x10,0x10,0x10,0x10 }, // ASCII - 14 0E hor. line |
||
58 | { 0x10,0x10,0x10,0x7c,0x10,0x10 }, // ASCII - 15 0F hor. line with tick mark |
||
59 | { 0x00,0x00,0x00,0x00,0x00,0x00 }, // ASCII - 16 10 |
||
60 | { 0x08,0x14,0x00,0x00,0x14,0x08 }, // ASCII - 17 11 <> Change |
||
61 | { 0x10,0x08,0x04,0x04,0x08,0x10 }, // ASCII - 18 12 /\ Up |
||
62 | { 0x08,0x10,0x20,0x20,0x10,0x08 }, // ASCII - 19 13 \/ Down |
||
63 | { 0x00,0x08,0x14,0x22,0x41,0x00 }, // ASCII - 20 14 < Left |
||
64 | { 0x00,0x41,0x22,0x14,0x08,0x00 }, // ASCII - 21 15 > Right |
||
65 | { 0x04,0x02,0x7f,0x02,0x04,0x00 }, // ASCII - 22 16 /|\ Arrow up |
||
66 | { 0x10,0x20,0x7f,0x20,0x10,0x00 }, // ASCII - 23 17 \|/ Arrow down |
||
67 | { 0x10,0x38,0x54,0x10,0x10,0x10 }, // ASCII - 24 18 <- Arrow left |
||
68 | { 0x10,0x10,0x10,0x54,0x38,0x10 }, // ASCII - 25 19 -> Arrow right |
||
69 | { 0x10,0x18,0x1c,0x1c,0x18,0x10 }, // ASCII - 26 1A ^ Triangle up |
||
70 | { 0x08,0x18,0x38,0x38,0x18,0x08 }, // ASCII - 27 1B v Triangle down |
||
71 | { 0x00,0x08,0x1c,0x3e,0x7f,0x00 }, // ASCII - 28 1C < Triangle left |
||
72 | { 0x00,0x7f,0x3e,0x1c,0x08,0x00 }, // ASCII - 29 1D > Triangle right |
||
73 | { 0x06,0x09,0x09,0x09,0x06,0x00 }, // ASCII - 30 1E '°' |
||
74 | { 0x06,0x49,0x7d,0x49,0x06,0x00 }, // ASCII - 31 1F Antenne |
||
75 | |||
76 | { 0x00,0x00,0x00,0x00,0x00,0x00 }, // ASCII - 32 20 ' ' |
||
77 | { 0x00,0x00,0x2f,0x00,0x00,0x00 }, // ASCII - 33 21 '!' |
||
78 | { 0x00,0x07,0x00,0x07,0x00,0x00 }, // ASCII - 34 22 '"' |
||
79 | { 0x14,0x7f,0x14,0x7f,0x14,0x00 }, // ASCII - 35 23 '#' |
||
80 | { 0x24,0x2a,0x6b,0x2a,0x12,0x00 }, // ASCII - 36 24 '$' |
||
81 | { 0x23,0x13,0x08,0x64,0x62,0x00 }, // ASCII - 37 25 '%' |
||
82 | { 0x36,0x49,0x55,0x22,0x50,0x00 }, // ASCII - 38 26 '&' |
||
83 | { 0x00,0x05,0x03,0x00,0x00,0x00 }, // ASCII - 39 27 ''' |
||
84 | { 0x00,0x1c,0x22,0x41,0x00,0x00 }, // ASCII - 40 28 '(' |
||
85 | { 0x00,0x41,0x22,0x1c,0x00,0x00 }, // ASCII - 41 29 ')' |
||
86 | { 0x14,0x08,0x3e,0x08,0x14,0x00 }, // ASCII - 42 2a '*' |
||
87 | { 0x08,0x08,0x3e,0x08,0x08,0x00 }, // ASCII - 43 2b '+' |
||
88 | { 0x00,0x50,0x30,0x00,0x00,0x00 }, // ASCII - 44 2c ',' |
||
89 | { 0x08,0x08,0x08,0x08,0x08,0x00 }, // ASCII - 45 2d '-' |
||
90 | { 0x00,0x60,0x60,0x00,0x00,0x00 }, // ASCII - 46 2e '.' |
||
91 | { 0x20,0x10,0x08,0x04,0x02,0x00 }, // ASCII - 47 2f '/' |
||
92 | { 0x3e,0x51,0x49,0x45,0x3e,0x00 }, // ASCII - 48 30 '0' |
||
93 | { 0x00,0x42,0x7f,0x40,0x00,0x00 }, // ASCII - 49 31 '1' |
||
94 | { 0x42,0x61,0x51,0x49,0x46,0x00 }, // ASCII - 50 32 '2' |
||
95 | { 0x21,0x41,0x45,0x4b,0x31,0x00 }, // ASCII - 51 33 '3' |
||
96 | { 0x18,0x14,0x12,0x7f,0x10,0x00 }, // ASCII - 52 34 '4' |
||
97 | { 0x27,0x45,0x45,0x45,0x39,0x00 }, // ASCII - 53 35 '5' |
||
98 | { 0x3c,0x4a,0x49,0x49,0x30,0x00 }, // ASCII - 54 36 '6' |
||
99 | { 0x03,0x01,0x71,0x09,0x07,0x00 }, // ASCII - 55 37 '7' |
||
100 | { 0x36,0x49,0x49,0x49,0x36,0x00 }, // ASCII - 56 38 '8' |
||
101 | { 0x06,0x49,0x49,0x29,0x1e,0x00 }, // ASCII - 57 39 '9' |
||
102 | { 0x00,0x36,0x36,0x00,0x00,0x00 }, // ASCII - 58 3a ':' |
||
103 | { 0x00,0x56,0x36,0x00,0x00,0x00 }, // ASCII - 59 3b ';' |
||
104 | { 0x08,0x14,0x22,0x41,0x00,0x00 }, // ASCII - 60 3c '<' |
||
105 | { 0x14,0x14,0x14,0x14,0x14,0x00 }, // ASCII - 61 3d '=' |
||
106 | { 0x00,0x41,0x22,0x14,0x08,0x00 }, // ASCII - 62 3e '>' |
||
107 | { 0x02,0x01,0x51,0x09,0x06,0x00 }, // ASCII - 63 3f '?' |
||
108 | { 0x32,0x49,0x79,0x41,0x3e,0x00 }, // ASCII - 64 40 '@' |
||
109 | { 0x7e,0x11,0x11,0x11,0x7e,0x00 }, // ASCII - 65 41 'A' |
||
110 | { 0x7f,0x49,0x49,0x49,0x36,0x00 }, // ASCII - 66 42 'B' |
||
111 | { 0x3e,0x41,0x41,0x41,0x22,0x00 }, // ASCII - 67 43 'C' |
||
112 | { 0x7f,0x41,0x41,0x22,0x1c,0x00 }, // ASCII - 68 44 'D' |
||
113 | { 0x7f,0x49,0x49,0x49,0x41,0x00 }, // ASCII - 69 45 'E' |
||
114 | { 0x7f,0x09,0x09,0x09,0x01,0x00 }, // ASCII - 70 46 'F' |
||
115 | { 0x3e,0x41,0x49,0x49,0x7a,0x00 }, // ASCII - 71 47 'G' |
||
116 | { 0x7f,0x08,0x08,0x08,0x7f,0x00 }, // ASCII - 72 48 'H' |
||
117 | { 0x00,0x41,0x7f,0x41,0x00,0x00 }, // ASCII - 73 49 'I' |
||
118 | { 0x20,0x40,0x41,0x3f,0x01,0x00 }, // ASCII - 74 4a 'J' |
||
119 | { 0x7f,0x08,0x14,0x22,0x41,0x00 }, // ASCII - 75 4b 'K' |
||
120 | { 0x7f,0x40,0x40,0x40,0x40,0x00 }, // ASCII - 76 4c 'L' |
||
121 | { 0x7f,0x02,0x0c,0x02,0x7f,0x00 }, // ASCII - 77 4d 'M' |
||
122 | { 0x7f,0x04,0x08,0x10,0x7f,0x00 }, // ASCII - 78 4e 'N' |
||
123 | { 0x3e,0x41,0x41,0x41,0x3e,0x00 }, // ASCII - 79 4f 'O' |
||
124 | { 0x7f,0x09,0x09,0x09,0x06,0x00 }, // ASCII - 80 50 'P' |
||
125 | { 0x3e,0x41,0x51,0x21,0x5e,0x00 }, // ASCII - 81 51 'Q' |
||
126 | { 0x7f,0x09,0x19,0x29,0x46,0x00 }, // ASCII - 82 52 'R' |
||
127 | { 0x46,0x49,0x49,0x49,0x31,0x00 }, // ASCII - 83 53 'S' |
||
128 | { 0x01,0x01,0x7f,0x01,0x01,0x00 }, // ASCII - 84 54 'T' |
||
129 | { 0x3f,0x40,0x40,0x40,0x3f,0x00 }, // ASCII - 85 55 'U' |
||
130 | { 0x1f,0x20,0x40,0x20,0x1f,0x00 }, // ASCII - 86 56 'V' |
||
131 | { 0x3f,0x40,0x38,0x40,0x3f,0x00 }, // ASCII - 87 57 'W' |
||
132 | { 0x63,0x14,0x08,0x14,0x63,0x00 }, // ASCII - 88 58 'X' |
||
133 | { 0x07,0x08,0x70,0x08,0x07,0x00 }, // ASCII - 89 59 'Y' |
||
134 | { 0x61,0x51,0x49,0x45,0x43,0x00 }, // ASCII - 90 5a 'Z' |
||
135 | { 0x7f,0x41,0x41,0x00,0x00,0x00 }, // ASCII - 91 5b '[' |
||
136 | { 0x02,0x04,0x08,0x10,0x20,0x00 }, // ASCII - 92 5c '\' |
||
137 | { 0x00,0x41,0x41,0x7f,0x00,0x00 }, // ASCII - 93 5d ']' |
||
138 | { 0x04,0x02,0x01,0x02,0x04,0x00 }, // ASCII - 94 5e '^' |
||
139 | { 0x40,0x40,0x40,0x40,0x40,0x00 }, // ASCII - 95 5f '_' |
||
140 | { 0x00,0x01,0x02,0x04,0x00,0x00 }, // ASCII - 96 60 '`' |
||
141 | { 0x20,0x54,0x54,0x54,0x78,0x00 }, // ASCII - 97 61 'a' |
||
142 | { 0x7f,0x48,0x44,0x44,0x38,0x00 }, // ASCII - 98 62 'b' |
||
143 | { 0x38,0x44,0x44,0x44,0x20,0x00 }, // ASCII - 99 63 'c' |
||
144 | { 0x38,0x44,0x44,0x48,0x7f,0x00 }, // ASCII - 100 64 'd' |
||
145 | { 0x38,0x54,0x54,0x54,0x18,0x00 }, // ASCII - 101 65 'e' |
||
146 | { 0x08,0x7e,0x09,0x01,0x02,0x00 }, // ASCII - 102 66 'f' |
||
147 | { 0x0c,0x52,0x52,0x52,0x3e,0x00 }, // ASCII - 103 67 'g' |
||
148 | { 0x7f,0x08,0x04,0x04,0x78,0x00 }, // ASCII - 104 68 'h' |
||
149 | { 0x00,0x44,0x7d,0x40,0x00,0x00 }, // ASCII - 105 69 'i' |
||
150 | { 0x20,0x40,0x44,0x3d,0x00,0x00 }, // ASCII - 106 6a 'j' |
||
151 | { 0x7f,0x10,0x28,0x44,0x00,0x00 }, // ASCII - 107 6b 'k' |
||
152 | { 0x00,0x41,0x7f,0x40,0x00,0x00 }, // ASCII - 108 6c 'l' |
||
153 | { 0x7c,0x04,0x18,0x04,0x78,0x00 }, // ASCII - 109 6d 'm' |
||
154 | { 0x7c,0x08,0x04,0x04,0x78,0x00 }, // ASCII - 110 6e 'n' |
||
155 | { 0x38,0x44,0x44,0x44,0x38,0x00 }, // ASCII - 111 6f 'o' |
||
156 | { 0x7c,0x14,0x14,0x14,0x08,0x00 }, // ASCII - 112 70 'p' |
||
157 | { 0x08,0x14,0x14,0x18,0x7c,0x00 }, // ASCII - 113 71 'q' |
||
158 | { 0x7c,0x08,0x04,0x04,0x08,0x00 }, // ASCII - 114 72 'r' |
||
159 | { 0x48,0x54,0x54,0x54,0x20,0x00 }, // ASCII - 115 73 's' |
||
160 | { 0x04,0x3f,0x44,0x40,0x20,0x00 }, // ASCII - 116 74 't' |
||
161 | { 0x3c,0x40,0x40,0x20,0x7c,0x00 }, // ASCII - 117 75 'u' |
||
162 | { 0x1c,0x20,0x40,0x20,0x1c,0x00 }, // ASCII - 118 76 'v' |
||
163 | { 0x3c,0x40,0x38,0x40,0x3c,0x00 }, // ASCII - 119 77 'w' |
||
164 | { 0x44,0x28,0x10,0x28,0x44,0x00 }, // ASCII - 120 78 'x' |
||
165 | { 0x0c,0x50,0x50,0x50,0x3c,0x00 }, // ASCII - 121 79 'y' |
||
166 | { 0x44,0x64,0x54,0x4c,0x44,0x00 }, // ASCII - 122 7a 'z' |
||
167 | { 0x00,0x08,0x36,0x41,0x00,0x00 }, // ASCII - 123 7b '{' |
||
168 | { 0x00,0x00,0x7f,0x00,0x00,0x00 }, // ASCII - 124 7c '|' |
||
169 | { 0x00,0x41,0x36,0x08,0x00,0x00 }, // ASCII - 125 7d '}' |
||
170 | { 0x08,0x08,0x2a,0x1c,0x08,0x00 }, // ASCII - 126 7e -> |
||
171 | { 0x08,0x1c,0x2a,0x08,0x08,0x00 }, // ASCII - 127 7f <- |
||
172 | }; |