Subversion Repositories Projects

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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