@@ -0,0 +1,55 | |||||
|
1 | /*------------------------------------------------------------------------------ | |||
|
2 | -- This file is a part of the libuc, microcontroler library | |||
|
3 | -- Copyright (C) 2012, Alexis Jeandet | |||
|
4 | -- | |||
|
5 | -- This program is free software; you can redistribute it and/or modify | |||
|
6 | -- it under the terms of the GNU General Public License as published by | |||
|
7 | -- the Free Software Foundation; either version 3 of the License, or | |||
|
8 | -- (at your option) any later version. | |||
|
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 Free Software | |||
|
17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
|
18 | ------------------------------------------------------------------------------- | |||
|
19 | -- Author : Alexis Jeandet | |||
|
20 | -- Mail : alexis.jeandet@gmail.com | |||
|
21 | -------------------------------------------------------------------------------*/ | |||
|
22 | #ifndef FONTS_H | |||
|
23 | #define FONTS_H | |||
|
24 | ||||
|
25 | #ifdef __cplusplus | |||
|
26 | extern "C" { | |||
|
27 | #endif | |||
|
28 | ||||
|
29 | #include <stdint.h> | |||
|
30 | ||||
|
31 | ||||
|
32 | typedef struct _tFont | |||
|
33 | { | |||
|
34 | const uint16_t *table; | |||
|
35 | uint16_t Width; | |||
|
36 | uint16_t Height; | |||
|
37 | ||||
|
38 | } sFONT; | |||
|
39 | ||||
|
40 | extern sFONT Font16x24; | |||
|
41 | ||||
|
42 | ||||
|
43 | #ifdef __cplusplus | |||
|
44 | } | |||
|
45 | #endif | |||
|
46 | ||||
|
47 | #endif | |||
|
48 | ||||
|
49 | ||||
|
50 | ||||
|
51 | ||||
|
52 | ||||
|
53 | ||||
|
54 | ||||
|
55 |
@@ -0,0 +1,14 | |||||
|
1 | TEMPLATE = lib | |||
|
2 | CONFIG += console | |||
|
3 | CONFIG -= qt | |||
|
4 | TARGET = fonts | |||
|
5 | include($$(libuc2)/rules/stm32f4-arm-none-eabi-gcc/rules.pri) | |||
|
6 | ||||
|
7 | SOURCES += \ | |||
|
8 | fonts8pts.c | |||
|
9 | ||||
|
10 | HEADERS += \ | |||
|
11 | $$(libuc2)/lib/includes/GRAPHIC/GUI/FONTS/fonts.h | |||
|
12 | ||||
|
13 | ||||
|
14 |
This diff has been collapsed as it changes many lines, (601 lines changed) Show them Hide them | |||||
@@ -0,0 +1,601 | |||||
|
1 | /*------------------------------------------------------------------------------ | |||
|
2 | -- This file is a part of the libuc, microcontroler library | |||
|
3 | -- Copyright (C) 2012, Alexis Jeandet | |||
|
4 | -- | |||
|
5 | -- This program is free software; you can redistribute it and/or modify | |||
|
6 | -- it under the terms of the GNU General Public License as published by | |||
|
7 | -- the Free Software Foundation; either version 3 of the License, or | |||
|
8 | -- (at your option) any later version. | |||
|
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 Free Software | |||
|
17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
|
18 | ------------------------------------------------------------------------------- | |||
|
19 | -- Author : Alexis Jeandet | |||
|
20 | -- Mail : alexis.jeandet@gmail.com | |||
|
21 | -------------------------------------------------------------------------------*/ | |||
|
22 | #include <fonts.h> | |||
|
23 | ||||
|
24 | const uint16_t ASCII16x24_Table [] = { | |||
|
25 | /** | |||
|
26 | * @brief Space ' ' | |||
|
27 | */ | |||
|
28 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
29 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
30 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
31 | /** | |||
|
32 | * @brief '!' | |||
|
33 | */ | |||
|
34 | 0x0000, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, | |||
|
35 | 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0000, 0x0000, | |||
|
36 | 0x0180, 0x0180, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
37 | /** | |||
|
38 | * @brief '"' | |||
|
39 | */ | |||
|
40 | 0x0000, 0x0000, 0x00CC, 0x00CC, 0x00CC, 0x00CC, 0x00CC, 0x00CC, | |||
|
41 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
42 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
43 | /** | |||
|
44 | * @brief '#' | |||
|
45 | */ | |||
|
46 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0C60, 0x0C60, | |||
|
47 | 0x0C60, 0x0630, 0x0630, 0x1FFE, 0x1FFE, 0x0630, 0x0738, 0x0318, | |||
|
48 | 0x1FFE, 0x1FFE, 0x0318, 0x0318, 0x018C, 0x018C, 0x018C, 0x0000, | |||
|
49 | /** | |||
|
50 | * @brief '$' | |||
|
51 | */ | |||
|
52 | 0x0000, 0x0080, 0x03E0, 0x0FF8, 0x0E9C, 0x1C8C, 0x188C, 0x008C, | |||
|
53 | 0x0098, 0x01F8, 0x07E0, 0x0E80, 0x1C80, 0x188C, 0x188C, 0x189C, | |||
|
54 | 0x0CB8, 0x0FF0, 0x03E0, 0x0080, 0x0080, 0x0000, 0x0000, 0x0000, | |||
|
55 | /** | |||
|
56 | * @brief '%' | |||
|
57 | */ | |||
|
58 | 0x0000, 0x0000, 0x0000, 0x180E, 0x0C1B, 0x0C11, 0x0611, 0x0611, | |||
|
59 | 0x0311, 0x0311, 0x019B, 0x018E, 0x38C0, 0x6CC0, 0x4460, 0x4460, | |||
|
60 | 0x4430, 0x4430, 0x4418, 0x6C18, 0x380C, 0x0000, 0x0000, 0x0000, | |||
|
61 | /** | |||
|
62 | * @brief '&' | |||
|
63 | */ | |||
|
64 | 0x0000, 0x01E0, 0x03F0, 0x0738, 0x0618, 0x0618, 0x0330, 0x01F0, | |||
|
65 | 0x00F0, 0x00F8, 0x319C, 0x330E, 0x1E06, 0x1C06, 0x1C06, 0x3F06, | |||
|
66 | 0x73FC, 0x21F0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
67 | /** | |||
|
68 | * @brief ''' | |||
|
69 | */ | |||
|
70 | 0x0000, 0x0000, 0x000C, 0x000C, 0x000C, 0x000C, 0x000C, 0x000C, | |||
|
71 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
72 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
73 | /** | |||
|
74 | * @brief '(' | |||
|
75 | */ | |||
|
76 | 0x0000, 0x0200, 0x0300, 0x0180, 0x00C0, 0x00C0, 0x0060, 0x0060, | |||
|
77 | 0x0030, 0x0030, 0x0030, 0x0030, 0x0030, 0x0030, 0x0030, 0x0030, | |||
|
78 | 0x0060, 0x0060, 0x00C0, 0x00C0, 0x0180, 0x0300, 0x0200, 0x0000, | |||
|
79 | /** | |||
|
80 | * @brief ')' | |||
|
81 | */ | |||
|
82 | 0x0000, 0x0020, 0x0060, 0x00C0, 0x0180, 0x0180, 0x0300, 0x0300, | |||
|
83 | 0x0600, 0x0600, 0x0600, 0x0600, 0x0600, 0x0600, 0x0600, 0x0600, | |||
|
84 | 0x0300, 0x0300, 0x0180, 0x0180, 0x00C0, 0x0060, 0x0020, 0x0000, | |||
|
85 | /** | |||
|
86 | * @brief '*' | |||
|
87 | */ | |||
|
88 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00C0, 0x00C0, | |||
|
89 | 0x06D8, 0x07F8, 0x01E0, 0x0330, 0x0738, 0x0000, 0x0000, 0x0000, | |||
|
90 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
91 | /** | |||
|
92 | * @brief '+' | |||
|
93 | */ | |||
|
94 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0180, 0x0180, | |||
|
95 | 0x0180, 0x0180, 0x0180, 0x3FFC, 0x3FFC, 0x0180, 0x0180, 0x0180, | |||
|
96 | 0x0180, 0x0180, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
97 | /** | |||
|
98 | * @brief ',' | |||
|
99 | */ | |||
|
100 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
101 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
102 | 0x0000, 0x0180, 0x0180, 0x0100, 0x0100, 0x0080, 0x0000, 0x0000, | |||
|
103 | /** | |||
|
104 | * @brief '-' | |||
|
105 | */ | |||
|
106 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
107 | 0x0000, 0x0000, 0x0000, 0x0000, 0x07E0, 0x07E0, 0x0000, 0x0000, | |||
|
108 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
109 | /** | |||
|
110 | * @brief '.' | |||
|
111 | */ | |||
|
112 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
113 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
114 | 0x0000, 0x00C0, 0x00C0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
115 | /** | |||
|
116 | * @brief '/' | |||
|
117 | */ | |||
|
118 | 0x0000, 0x0C00, 0x0C00, 0x0600, 0x0600, 0x0600, 0x0300, 0x0300, | |||
|
119 | 0x0300, 0x0380, 0x0180, 0x0180, 0x0180, 0x00C0, 0x00C0, 0x00C0, | |||
|
120 | 0x0060, 0x0060, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
121 | /** | |||
|
122 | * @brief '0' | |||
|
123 | */ | |||
|
124 | 0x0000, 0x03E0, 0x07F0, 0x0E38, 0x0C18, 0x180C, 0x180C, 0x180C, | |||
|
125 | 0x180C, 0x180C, 0x180C, 0x180C, 0x180C, 0x180C, 0x0C18, 0x0E38, | |||
|
126 | 0x07F0, 0x03E0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
127 | /** | |||
|
128 | * @brief '1' | |||
|
129 | */ | |||
|
130 | 0x0000, 0x0100, 0x0180, 0x01C0, 0x01F0, 0x0198, 0x0188, 0x0180, | |||
|
131 | 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, | |||
|
132 | 0x0180, 0x0180, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
133 | /** | |||
|
134 | * @brief '2' | |||
|
135 | */ | |||
|
136 | 0x0000, 0x03E0, 0x0FF8, 0x0C18, 0x180C, 0x180C, 0x1800, 0x1800, | |||
|
137 | 0x0C00, 0x0600, 0x0300, 0x0180, 0x00C0, 0x0060, 0x0030, 0x0018, | |||
|
138 | 0x1FFC, 0x1FFC, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
139 | /** | |||
|
140 | * @brief '3' | |||
|
141 | */ | |||
|
142 | 0x0000, 0x01E0, 0x07F8, 0x0E18, 0x0C0C, 0x0C0C, 0x0C00, 0x0600, | |||
|
143 | 0x03C0, 0x07C0, 0x0C00, 0x1800, 0x1800, 0x180C, 0x180C, 0x0C18, | |||
|
144 | 0x07F8, 0x03E0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
145 | /** | |||
|
146 | * @brief '4' | |||
|
147 | */ | |||
|
148 | 0x0000, 0x0C00, 0x0E00, 0x0F00, 0x0F00, 0x0D80, 0x0CC0, 0x0C60, | |||
|
149 | 0x0C60, 0x0C30, 0x0C18, 0x0C0C, 0x3FFC, 0x3FFC, 0x0C00, 0x0C00, | |||
|
150 | 0x0C00, 0x0C00, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
151 | /** | |||
|
152 | * @brief '5' | |||
|
153 | */ | |||
|
154 | 0x0000, 0x0FF8, 0x0FF8, 0x0018, 0x0018, 0x000C, 0x03EC, 0x07FC, | |||
|
155 | 0x0E1C, 0x1C00, 0x1800, 0x1800, 0x1800, 0x180C, 0x0C1C, 0x0E18, | |||
|
156 | 0x07F8, 0x03E0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
157 | /** | |||
|
158 | * @brief '6' | |||
|
159 | */ | |||
|
160 | 0x0000, 0x07C0, 0x0FF0, 0x1C38, 0x1818, 0x0018, 0x000C, 0x03CC, | |||
|
161 | 0x0FEC, 0x0E3C, 0x1C1C, 0x180C, 0x180C, 0x180C, 0x1C18, 0x0E38, | |||
|
162 | 0x07F0, 0x03E0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
163 | /** | |||
|
164 | * @brief '7' | |||
|
165 | */ | |||
|
166 | 0x0000, 0x1FFC, 0x1FFC, 0x0C00, 0x0600, 0x0600, 0x0300, 0x0380, | |||
|
167 | 0x0180, 0x01C0, 0x00C0, 0x00E0, 0x0060, 0x0060, 0x0070, 0x0030, | |||
|
168 | 0x0030, 0x0030, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
169 | /** | |||
|
170 | * @brief '8' | |||
|
171 | */ | |||
|
172 | 0x0000, 0x03E0, 0x07F0, 0x0E38, 0x0C18, 0x0C18, 0x0C18, 0x0638, | |||
|
173 | 0x07F0, 0x07F0, 0x0C18, 0x180C, 0x180C, 0x180C, 0x180C, 0x0C38, | |||
|
174 | 0x0FF8, 0x03E0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
175 | /** | |||
|
176 | * @brief '9' | |||
|
177 | */ | |||
|
178 | 0x0000, 0x03E0, 0x07F0, 0x0E38, 0x0C1C, 0x180C, 0x180C, 0x180C, | |||
|
179 | 0x1C1C, 0x1E38, 0x1BF8, 0x19E0, 0x1800, 0x0C00, 0x0C00, 0x0E1C, | |||
|
180 | 0x07F8, 0x01F0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
181 | /** | |||
|
182 | * @brief ':' | |||
|
183 | */ | |||
|
184 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0180, 0x0180, | |||
|
185 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
186 | 0x0180, 0x0180, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
187 | /** | |||
|
188 | * @brief ';' | |||
|
189 | */ | |||
|
190 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0180, 0x0180, | |||
|
191 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
192 | 0x0180, 0x0180, 0x0100, 0x0100, 0x0080, 0x0000, 0x0000, 0x0000, | |||
|
193 | /** | |||
|
194 | * @brief '<' | |||
|
195 | */ | |||
|
196 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
197 | 0x1000, 0x1C00, 0x0F80, 0x03E0, 0x00F8, 0x0018, 0x00F8, 0x03E0, | |||
|
198 | 0x0F80, 0x1C00, 0x1000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
199 | /** | |||
|
200 | * @brief '=' | |||
|
201 | */ | |||
|
202 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
203 | 0x1FF8, 0x0000, 0x0000, 0x0000, 0x1FF8, 0x0000, 0x0000, 0x0000, | |||
|
204 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
205 | /** | |||
|
206 | * @brief '>' | |||
|
207 | */ | |||
|
208 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
209 | 0x0008, 0x0038, 0x01F0, 0x07C0, 0x1F00, 0x1800, 0x1F00, 0x07C0, | |||
|
210 | 0x01F0, 0x0038, 0x0008, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
211 | /** | |||
|
212 | * @brief '?' | |||
|
213 | */ | |||
|
214 | 0x0000, 0x03E0, 0x0FF8, 0x0C18, 0x180C, 0x180C, 0x1800, 0x0C00, | |||
|
215 | 0x0600, 0x0300, 0x0180, 0x00C0, 0x00C0, 0x00C0, 0x0000, 0x0000, | |||
|
216 | 0x00C0, 0x00C0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
217 | /** | |||
|
218 | * @brief '@' | |||
|
219 | */ | |||
|
220 | 0x0000, 0x0000, 0x07E0, 0x1818, 0x2004, 0x29C2, 0x4A22, 0x4411, | |||
|
221 | 0x4409, 0x4409, 0x4409, 0x2209, 0x1311, 0x0CE2, 0x4002, 0x2004, | |||
|
222 | 0x1818, 0x07E0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
223 | /** | |||
|
224 | * @brief 'A' | |||
|
225 | */ | |||
|
226 | 0x0000, 0x0380, 0x0380, 0x06C0, 0x06C0, 0x06C0, 0x0C60, 0x0C60, | |||
|
227 | 0x1830, 0x1830, 0x1830, 0x3FF8, 0x3FF8, 0x701C, 0x600C, 0x600C, | |||
|
228 | 0xC006, 0xC006, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
229 | /** | |||
|
230 | * @brief 'B' | |||
|
231 | */ | |||
|
232 | 0x0000, 0x03FC, 0x0FFC, 0x0C0C, 0x180C, 0x180C, 0x180C, 0x0C0C, | |||
|
233 | 0x07FC, 0x0FFC, 0x180C, 0x300C, 0x300C, 0x300C, 0x300C, 0x180C, | |||
|
234 | 0x1FFC, 0x07FC, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
235 | /** | |||
|
236 | * @brief 'C' | |||
|
237 | */ | |||
|
238 | 0x0000, 0x07C0, 0x1FF0, 0x3838, 0x301C, 0x700C, 0x6006, 0x0006, | |||
|
239 | 0x0006, 0x0006, 0x0006, 0x0006, 0x0006, 0x6006, 0x700C, 0x301C, | |||
|
240 | 0x1FF0, 0x07E0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
241 | /** | |||
|
242 | * @brief 'D' | |||
|
243 | */ | |||
|
244 | 0x0000, 0x03FE, 0x0FFE, 0x0E06, 0x1806, 0x1806, 0x3006, 0x3006, | |||
|
245 | 0x3006, 0x3006, 0x3006, 0x3006, 0x3006, 0x1806, 0x1806, 0x0E06, | |||
|
246 | 0x0FFE, 0x03FE, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
247 | /** | |||
|
248 | * @brief 'E' | |||
|
249 | */ | |||
|
250 | 0x0000, 0x3FFC, 0x3FFC, 0x000C, 0x000C, 0x000C, 0x000C, 0x000C, | |||
|
251 | 0x1FFC, 0x1FFC, 0x000C, 0x000C, 0x000C, 0x000C, 0x000C, 0x000C, | |||
|
252 | 0x3FFC, 0x3FFC, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
253 | /** | |||
|
254 | * @brief 'F' | |||
|
255 | */ | |||
|
256 | 0x0000, 0x3FF8, 0x3FF8, 0x0018, 0x0018, 0x0018, 0x0018, 0x0018, | |||
|
257 | 0x1FF8, 0x1FF8, 0x0018, 0x0018, 0x0018, 0x0018, 0x0018, 0x0018, | |||
|
258 | 0x0018, 0x0018, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
259 | /** | |||
|
260 | * @brief 'G' | |||
|
261 | */ | |||
|
262 | 0x0000, 0x0FE0, 0x3FF8, 0x783C, 0x600E, 0xE006, 0xC007, 0x0003, | |||
|
263 | 0x0003, 0xFE03, 0xFE03, 0xC003, 0xC007, 0xC006, 0xC00E, 0xF03C, | |||
|
264 | 0x3FF8, 0x0FE0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
265 | /** | |||
|
266 | * @brief 'H' | |||
|
267 | */ | |||
|
268 | 0x0000, 0x300C, 0x300C, 0x300C, 0x300C, 0x300C, 0x300C, 0x300C, | |||
|
269 | 0x3FFC, 0x3FFC, 0x300C, 0x300C, 0x300C, 0x300C, 0x300C, 0x300C, | |||
|
270 | 0x300C, 0x300C, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
271 | /** | |||
|
272 | * @brief 'I' | |||
|
273 | */ | |||
|
274 | 0x0000, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, | |||
|
275 | 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, | |||
|
276 | 0x0180, 0x0180, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
277 | /** | |||
|
278 | * @brief 'J' | |||
|
279 | */ | |||
|
280 | 0x0000, 0x0600, 0x0600, 0x0600, 0x0600, 0x0600, 0x0600, 0x0600, | |||
|
281 | 0x0600, 0x0600, 0x0600, 0x0600, 0x0600, 0x0618, 0x0618, 0x0738, | |||
|
282 | 0x03F0, 0x01E0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
283 | /** | |||
|
284 | * @brief 'K' | |||
|
285 | */ | |||
|
286 | 0x0000, 0x3006, 0x1806, 0x0C06, 0x0606, 0x0306, 0x0186, 0x00C6, | |||
|
287 | 0x0066, 0x0076, 0x00DE, 0x018E, 0x0306, 0x0606, 0x0C06, 0x1806, | |||
|
288 | 0x3006, 0x6006, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
289 | /** | |||
|
290 | * @brief 'L' | |||
|
291 | */ | |||
|
292 | 0x0000, 0x0018, 0x0018, 0x0018, 0x0018, 0x0018, 0x0018, 0x0018, | |||
|
293 | 0x0018, 0x0018, 0x0018, 0x0018, 0x0018, 0x0018, 0x0018, 0x0018, | |||
|
294 | 0x1FF8, 0x1FF8, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
295 | /** | |||
|
296 | * @brief 'M' | |||
|
297 | */ | |||
|
298 | 0x0000, 0xE00E, 0xF01E, 0xF01E, 0xF01E, 0xD836, 0xD836, 0xD836, | |||
|
299 | 0xD836, 0xCC66, 0xCC66, 0xCC66, 0xC6C6, 0xC6C6, 0xC6C6, 0xC6C6, | |||
|
300 | 0xC386, 0xC386, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
301 | /** | |||
|
302 | * @brief 'N' | |||
|
303 | */ | |||
|
304 | 0x0000, 0x300C, 0x301C, 0x303C, 0x303C, 0x306C, 0x306C, 0x30CC, | |||
|
305 | 0x30CC, 0x318C, 0x330C, 0x330C, 0x360C, 0x360C, 0x3C0C, 0x3C0C, | |||
|
306 | 0x380C, 0x300C, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
307 | /** | |||
|
308 | * @brief 'O' | |||
|
309 | */ | |||
|
310 | 0x0000, 0x07E0, 0x1FF8, 0x381C, 0x700E, 0x6006, 0xC003, 0xC003, | |||
|
311 | 0xC003, 0xC003, 0xC003, 0xC003, 0xC003, 0x6006, 0x700E, 0x381C, | |||
|
312 | 0x1FF8, 0x07E0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
313 | /** | |||
|
314 | * @brief 'P' | |||
|
315 | */ | |||
|
316 | 0x0000, 0x0FFC, 0x1FFC, 0x380C, 0x300C, 0x300C, 0x300C, 0x300C, | |||
|
317 | 0x180C, 0x1FFC, 0x07FC, 0x000C, 0x000C, 0x000C, 0x000C, 0x000C, | |||
|
318 | 0x000C, 0x000C, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
319 | /** | |||
|
320 | * @brief 'Q' | |||
|
321 | */ | |||
|
322 | 0x0000, 0x07E0, 0x1FF8, 0x381C, 0x700E, 0x6006, 0xE003, 0xC003, | |||
|
323 | 0xC003, 0xC003, 0xC003, 0xC003, 0xE007, 0x6306, 0x3F0E, 0x3C1C, | |||
|
324 | 0x3FF8, 0xF7E0, 0xC000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
325 | /** | |||
|
326 | * @brief 'R' | |||
|
327 | */ | |||
|
328 | 0x0000, 0x0FFE, 0x1FFE, 0x3806, 0x3006, 0x3006, 0x3006, 0x3806, | |||
|
329 | 0x1FFE, 0x07FE, 0x0306, 0x0606, 0x0C06, 0x1806, 0x1806, 0x3006, | |||
|
330 | 0x3006, 0x6006, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
331 | /** | |||
|
332 | * @brief 'S' | |||
|
333 | */ | |||
|
334 | 0x0000, 0x03E0, 0x0FF8, 0x0C1C, 0x180C, 0x180C, 0x000C, 0x001C, | |||
|
335 | 0x03F8, 0x0FE0, 0x1E00, 0x3800, 0x3006, 0x3006, 0x300E, 0x1C1C, | |||
|
336 | 0x0FF8, 0x07E0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
337 | /** | |||
|
338 | * @brief 'T' | |||
|
339 | */ | |||
|
340 | 0x0000, 0x7FFE, 0x7FFE, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, | |||
|
341 | 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, | |||
|
342 | 0x0180, 0x0180, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
343 | /** | |||
|
344 | * @brief 'U' | |||
|
345 | */ | |||
|
346 | 0x0000, 0x300C, 0x300C, 0x300C, 0x300C, 0x300C, 0x300C, 0x300C, | |||
|
347 | 0x300C, 0x300C, 0x300C, 0x300C, 0x300C, 0x300C, 0x300C, 0x1818, | |||
|
348 | 0x1FF8, 0x07E0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
349 | /** | |||
|
350 | * @brief 'V' | |||
|
351 | */ | |||
|
352 | 0x0000, 0x6003, 0x3006, 0x3006, 0x3006, 0x180C, 0x180C, 0x180C, | |||
|
353 | 0x0C18, 0x0C18, 0x0E38, 0x0630, 0x0630, 0x0770, 0x0360, 0x0360, | |||
|
354 | 0x01C0, 0x01C0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
355 | /** | |||
|
356 | * @brief 'W' | |||
|
357 | */ | |||
|
358 | 0x0000, 0x6003, 0x61C3, 0x61C3, 0x61C3, 0x3366, 0x3366, 0x3366, | |||
|
359 | 0x3366, 0x3366, 0x3366, 0x1B6C, 0x1B6C, 0x1B6C, 0x1A2C, 0x1E3C, | |||
|
360 | 0x0E38, 0x0E38, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
361 | /** | |||
|
362 | * @brief 'X' | |||
|
363 | */ | |||
|
364 | 0x0000, 0xE00F, 0x700C, 0x3018, 0x1830, 0x0C70, 0x0E60, 0x07C0, | |||
|
365 | 0x0380, 0x0380, 0x03C0, 0x06E0, 0x0C70, 0x1C30, 0x1818, 0x300C, | |||
|
366 | 0x600E, 0xE007, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
367 | /** | |||
|
368 | * @brief 'Y' | |||
|
369 | */ | |||
|
370 | 0x0000, 0xC003, 0x6006, 0x300C, 0x381C, 0x1838, 0x0C30, 0x0660, | |||
|
371 | 0x07E0, 0x03C0, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, | |||
|
372 | 0x0180, 0x0180, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
373 | /** | |||
|
374 | * @brief 'Z' | |||
|
375 | */ | |||
|
376 | 0x0000, 0x7FFC, 0x7FFC, 0x6000, 0x3000, 0x1800, 0x0C00, 0x0600, | |||
|
377 | 0x0300, 0x0180, 0x00C0, 0x0060, 0x0030, 0x0018, 0x000C, 0x0006, | |||
|
378 | 0x7FFE, 0x7FFE, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
379 | /** | |||
|
380 | * @brief '[' | |||
|
381 | */ | |||
|
382 | 0x0000, 0x03E0, 0x03E0, 0x0060, 0x0060, 0x0060, 0x0060, 0x0060, | |||
|
383 | 0x0060, 0x0060, 0x0060, 0x0060, 0x0060, 0x0060, 0x0060, 0x0060, | |||
|
384 | 0x0060, 0x0060, 0x0060, 0x0060, 0x0060, 0x03E0, 0x03E0, 0x0000, | |||
|
385 | /** | |||
|
386 | * @brief '\' | |||
|
387 | */ | |||
|
388 | 0x0000, 0x0030, 0x0030, 0x0060, 0x0060, 0x0060, 0x00C0, 0x00C0, | |||
|
389 | 0x00C0, 0x01C0, 0x0180, 0x0180, 0x0180, 0x0300, 0x0300, 0x0300, | |||
|
390 | 0x0600, 0x0600, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
391 | /** | |||
|
392 | * @brief ']' | |||
|
393 | */ | |||
|
394 | 0x0000, 0x03E0, 0x03E0, 0x0300, 0x0300, 0x0300, 0x0300, 0x0300, | |||
|
395 | 0x0300, 0x0300, 0x0300, 0x0300, 0x0300, 0x0300, 0x0300, 0x0300, | |||
|
396 | 0x0300, 0x0300, 0x0300, 0x0300, 0x0300, 0x03E0, 0x03E0, 0x0000, | |||
|
397 | /** | |||
|
398 | * @brief '^' | |||
|
399 | */ | |||
|
400 | 0x0000, 0x0000, 0x01C0, 0x01C0, 0x0360, 0x0360, 0x0360, 0x0630, | |||
|
401 | 0x0630, 0x0C18, 0x0C18, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
402 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
403 | /** | |||
|
404 | * @brief '_' | |||
|
405 | */ | |||
|
406 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
407 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
408 | 0x0000, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
409 | /** | |||
|
410 | * @brief ''' | |||
|
411 | */ | |||
|
412 | 0x0000, 0x000C, 0x000C, 0x000C, 0x000C, 0x000C, 0x000C, 0x0000, | |||
|
413 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
414 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
415 | /** | |||
|
416 | * @brief 'a' | |||
|
417 | */ | |||
|
418 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x03F0, 0x07F8, | |||
|
419 | 0x0C1C, 0x0C0C, 0x0F00, 0x0FF0, 0x0CF8, 0x0C0C, 0x0C0C, 0x0F1C, | |||
|
420 | 0x0FF8, 0x18F0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
421 | /** | |||
|
422 | * @brief 'b' | |||
|
423 | */ | |||
|
424 | 0x0000, 0x0018, 0x0018, 0x0018, 0x0018, 0x0018, 0x03D8, 0x0FF8, | |||
|
425 | 0x0C38, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x0C38, | |||
|
426 | 0x0FF8, 0x03D8, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
427 | /** | |||
|
428 | * @brief 'c' | |||
|
429 | */ | |||
|
430 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x03C0, 0x07F0, | |||
|
431 | 0x0E30, 0x0C18, 0x0018, 0x0018, 0x0018, 0x0018, 0x0C18, 0x0E30, | |||
|
432 | 0x07F0, 0x03C0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
433 | /** | |||
|
434 | * @brief 'd' | |||
|
435 | */ | |||
|
436 | 0x0000, 0x1800, 0x1800, 0x1800, 0x1800, 0x1800, 0x1BC0, 0x1FF0, | |||
|
437 | 0x1C30, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x1C30, | |||
|
438 | 0x1FF0, 0x1BC0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
439 | /** | |||
|
440 | * @brief 'e' | |||
|
441 | */ | |||
|
442 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x03C0, 0x0FF0, | |||
|
443 | 0x0C30, 0x1818, 0x1FF8, 0x1FF8, 0x0018, 0x0018, 0x1838, 0x1C30, | |||
|
444 | 0x0FF0, 0x07C0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
445 | /** | |||
|
446 | * @brief 'f' | |||
|
447 | */ | |||
|
448 | 0x0000, 0x0F80, 0x0FC0, 0x00C0, 0x00C0, 0x00C0, 0x07F0, 0x07F0, | |||
|
449 | 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, | |||
|
450 | 0x00C0, 0x00C0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
451 | /** | |||
|
452 | * @brief 'g' | |||
|
453 | */ | |||
|
454 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0DE0, 0x0FF8, | |||
|
455 | 0x0E18, 0x0C0C, 0x0C0C, 0x0C0C, 0x0C0C, 0x0C0C, 0x0C0C, 0x0E18, | |||
|
456 | 0x0FF8, 0x0DE0, 0x0C00, 0x0C0C, 0x061C, 0x07F8, 0x01F0, 0x0000, | |||
|
457 | /** | |||
|
458 | * @brief 'h' | |||
|
459 | */ | |||
|
460 | 0x0000, 0x0018, 0x0018, 0x0018, 0x0018, 0x0018, 0x07D8, 0x0FF8, | |||
|
461 | 0x1C38, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, | |||
|
462 | 0x1818, 0x1818, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
463 | /** | |||
|
464 | * @brief 'i' | |||
|
465 | */ | |||
|
466 | 0x0000, 0x00C0, 0x00C0, 0x0000, 0x0000, 0x0000, 0x00C0, 0x00C0, | |||
|
467 | 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, | |||
|
468 | 0x00C0, 0x00C0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
469 | /** | |||
|
470 | * @brief 'j' | |||
|
471 | */ | |||
|
472 | 0x0000, 0x00C0, 0x00C0, 0x0000, 0x0000, 0x0000, 0x00C0, 0x00C0, | |||
|
473 | 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, | |||
|
474 | 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00F8, 0x0078, 0x0000, | |||
|
475 | /** | |||
|
476 | * @brief 'k' | |||
|
477 | */ | |||
|
478 | 0x0000, 0x000C, 0x000C, 0x000C, 0x000C, 0x000C, 0x0C0C, 0x060C, | |||
|
479 | 0x030C, 0x018C, 0x00CC, 0x006C, 0x00FC, 0x019C, 0x038C, 0x030C, | |||
|
480 | 0x060C, 0x0C0C, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
481 | /** | |||
|
482 | * @brief 'l' | |||
|
483 | */ | |||
|
484 | 0x0000, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, | |||
|
485 | 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, | |||
|
486 | 0x00C0, 0x00C0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
487 | /** | |||
|
488 | * @brief 'm' | |||
|
489 | */ | |||
|
490 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x3C7C, 0x7EFF, | |||
|
491 | 0xE3C7, 0xC183, 0xC183, 0xC183, 0xC183, 0xC183, 0xC183, 0xC183, | |||
|
492 | 0xC183, 0xC183, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
493 | /** | |||
|
494 | * @brief 'n' | |||
|
495 | */ | |||
|
496 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0798, 0x0FF8, | |||
|
497 | 0x1C38, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, | |||
|
498 | 0x1818, 0x1818, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
499 | /** | |||
|
500 | * @brief 'o' | |||
|
501 | */ | |||
|
502 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x03C0, 0x0FF0, | |||
|
503 | 0x0C30, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x0C30, | |||
|
504 | 0x0FF0, 0x03C0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
505 | /** | |||
|
506 | * @brief 'p' | |||
|
507 | */ | |||
|
508 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x03D8, 0x0FF8, | |||
|
509 | 0x0C38, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x0C38, | |||
|
510 | 0x0FF8, 0x03D8, 0x0018, 0x0018, 0x0018, 0x0018, 0x0018, 0x0000, | |||
|
511 | /** | |||
|
512 | * @brief 'q' | |||
|
513 | */ | |||
|
514 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x1BC0, 0x1FF0, | |||
|
515 | 0x1C30, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x1C30, | |||
|
516 | 0x1FF0, 0x1BC0, 0x1800, 0x1800, 0x1800, 0x1800, 0x1800, 0x0000, | |||
|
517 | /** | |||
|
518 | * @brief 'r' | |||
|
519 | */ | |||
|
520 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x07B0, 0x03F0, | |||
|
521 | 0x0070, 0x0030, 0x0030, 0x0030, 0x0030, 0x0030, 0x0030, 0x0030, | |||
|
522 | 0x0030, 0x0030, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
523 | /** | |||
|
524 | * @brief 's' | |||
|
525 | */ | |||
|
526 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x03E0, 0x03F0, | |||
|
527 | 0x0E38, 0x0C18, 0x0038, 0x03F0, 0x07C0, 0x0C00, 0x0C18, 0x0E38, | |||
|
528 | 0x07F0, 0x03E0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
529 | /** | |||
|
530 | * @brief 't' | |||
|
531 | */ | |||
|
532 | 0x0000, 0x0000, 0x0080, 0x00C0, 0x00C0, 0x00C0, 0x07F0, 0x07F0, | |||
|
533 | 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, | |||
|
534 | 0x07C0, 0x0780, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
535 | /** | |||
|
536 | * @brief 'u' | |||
|
537 | */ | |||
|
538 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x1818, 0x1818, | |||
|
539 | 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x1818, 0x1C38, | |||
|
540 | 0x1FF0, 0x19E0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
541 | /** | |||
|
542 | * @brief 'v' | |||
|
543 | */ | |||
|
544 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x180C, 0x0C18, | |||
|
545 | 0x0C18, 0x0C18, 0x0630, 0x0630, 0x0630, 0x0360, 0x0360, 0x0360, | |||
|
546 | 0x01C0, 0x01C0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
547 | /** | |||
|
548 | * @brief 'w' | |||
|
549 | */ | |||
|
550 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x41C1, 0x41C1, | |||
|
551 | 0x61C3, 0x6363, 0x6363, 0x6363, 0x3636, 0x3636, 0x3636, 0x1C1C, | |||
|
552 | 0x1C1C, 0x1C1C, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
553 | /** | |||
|
554 | * @brief 'x' | |||
|
555 | */ | |||
|
556 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x381C, 0x1C38, | |||
|
557 | 0x0C30, 0x0660, 0x0360, 0x0360, 0x0360, 0x0360, 0x0660, 0x0C30, | |||
|
558 | 0x1C38, 0x381C, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
559 | /** | |||
|
560 | * @brief 'y' | |||
|
561 | */ | |||
|
562 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x3018, 0x1830, | |||
|
563 | 0x1830, 0x1870, 0x0C60, 0x0C60, 0x0CE0, 0x06C0, 0x06C0, 0x0380, | |||
|
564 | 0x0380, 0x0380, 0x0180, 0x0180, 0x01C0, 0x00F0, 0x0070, 0x0000, | |||
|
565 | /** | |||
|
566 | * @brief 'z' | |||
|
567 | */ | |||
|
568 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x1FFC, 0x1FFC, | |||
|
569 | 0x0C00, 0x0600, 0x0300, 0x0180, 0x00C0, 0x0060, 0x0030, 0x0018, | |||
|
570 | 0x1FFC, 0x1FFC, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
571 | /** | |||
|
572 | * @brief '{' | |||
|
573 | */ | |||
|
574 | 0x0000, 0x0300, 0x0180, 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x00C0, | |||
|
575 | 0x00C0, 0x0060, 0x0060, 0x0030, 0x0060, 0x0040, 0x00C0, 0x00C0, | |||
|
576 | 0x00C0, 0x00C0, 0x00C0, 0x00C0, 0x0180, 0x0300, 0x0000, 0x0000, | |||
|
577 | /** | |||
|
578 | * @brief '|' | |||
|
579 | */ | |||
|
580 | 0x0000, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, | |||
|
581 | 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, | |||
|
582 | 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0000, | |||
|
583 | /** | |||
|
584 | * @brief '}' | |||
|
585 | */ | |||
|
586 | 0x0000, 0x0060, 0x00C0, 0x01C0, 0x0180, 0x0180, 0x0180, 0x0180, | |||
|
587 | 0x0180, 0x0300, 0x0300, 0x0600, 0x0300, 0x0100, 0x0180, 0x0180, | |||
|
588 | 0x0180, 0x0180, 0x0180, 0x0180, 0x00C0, 0x0060, 0x0000, 0x0000, | |||
|
589 | /** | |||
|
590 | * @brief '~' | |||
|
591 | */ | |||
|
592 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
593 | 0x10F0, 0x1FF8, 0x0F08, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |||
|
594 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 | |||
|
595 | }; | |||
|
596 | ||||
|
597 | sFONT Font16x24 = { | |||
|
598 | ASCII16x24_Table, | |||
|
599 | 16, /* Width */ | |||
|
600 | 24, /* Height */ | |||
|
601 | }; |
@@ -104,6 +104,10 void bsp_uart_init() | |||||
104 | } |
|
104 | } | |
105 |
|
105 | |||
106 | void bsp_lcd0_write_reg(uint32_t reg,uint32_t data); |
|
106 | void bsp_lcd0_write_reg(uint32_t reg,uint32_t data); | |
|
107 | uint32_t bsp_lcd0_read_reg(uint32_t reg); | |||
|
108 | void bsp_lcd0_writeGRAM(void *buffer, uint32_t count); | |||
|
109 | void bsp_lcd0_readGRAM(void *buffer, uint32_t count); | |||
|
110 | ||||
107 | void bsp_FSMC_init() |
|
111 | void bsp_FSMC_init() | |
108 | { |
|
112 | { | |
109 | #define GPIOGETPORT(gpio) ((GPIO_TypeDef*)(((((uint32_t)gpio) & (uint32_t)0x0000FF00)*(uint32_t)4) + (uint32_t)GPIOA)) |
|
113 | #define GPIOGETPORT(gpio) ((GPIO_TypeDef*)(((((uint32_t)gpio) & (uint32_t)0x0000FF00)*(uint32_t)4) + (uint32_t)GPIOA)) | |
@@ -133,9 +137,11 void bsp_FSMC_init() | |||||
133 | /*-- FSMC Configuration ------------------------------------------------------*/ |
|
137 | /*-- FSMC Configuration ------------------------------------------------------*/ | |
134 | /*----------------------- SRAM Bank 3 ----------------------------------------*/ |
|
138 | /*----------------------- SRAM Bank 3 ----------------------------------------*/ | |
135 | /* FSMC_Bank1_NORSRAM4 configuration */ |
|
139 | /* FSMC_Bank1_NORSRAM4 configuration */ | |
136 | p.FSMC_AddressSetupTime = 5; |
|
140 | //p.FSMC_AddressSetupTime = 5; | |
|
141 | p.FSMC_AddressSetupTime = 1; | |||
137 | p.FSMC_AddressHoldTime = 0; |
|
142 | p.FSMC_AddressHoldTime = 0; | |
138 | p.FSMC_DataSetupTime = 9; |
|
143 | //p.FSMC_DataSetupTime = 9; | |
|
144 | p.FSMC_DataSetupTime = 3; | |||
139 | p.FSMC_BusTurnAroundDuration = 0; |
|
145 | p.FSMC_BusTurnAroundDuration = 0; | |
140 | p.FSMC_CLKDivision = 0; |
|
146 | p.FSMC_CLKDivision = 0; | |
141 | p.FSMC_DataLatency = 0; |
|
147 | p.FSMC_DataLatency = 0; | |
@@ -169,9 +175,13 void bsp_FSMC_init() | |||||
169 |
|
175 | |||
170 | /* Enable FSMC NOR/SRAM Bank1 */ |
|
176 | /* Enable FSMC NOR/SRAM Bank1 */ | |
171 | FSMC_NORSRAMCmd(FSMC_Bank1_NORSRAM1, ENABLE); |
|
177 | FSMC_NORSRAMCmd(FSMC_Bank1_NORSRAM1, ENABLE); | |
172 | lcdIF0.writereg=&bsp_lcd0_write_reg; |
|
178 | lcdIF0.writereg=&bsp_lcd0_write_reg; | |
|
179 | lcdIF0.readGRAM=&bsp_lcd0_readGRAM; | |||
|
180 | lcdIF0.readreg=&bsp_lcd0_read_reg; | |||
|
181 | lcdIF0.writeGRAM=&bsp_lcd0_writeGRAM; | |||
173 | lcd0.interface=&lcdIF0; |
|
182 | lcd0.interface=&lcdIF0; | |
174 | lcd0.init=&ili9328init; |
|
183 | lcd0.init=&ili9328init; | |
|
184 | lcd0.paint=&ili9328paint; | |||
175 | gpioset(LCD_RESET); |
|
185 | gpioset(LCD_RESET); | |
176 | lcd0.init(&lcd0); |
|
186 | lcd0.init(&lcd0); | |
177 | } |
|
187 | } | |
@@ -227,6 +237,33 void bsp_lcd0_write_reg(uint32_t reg,uin | |||||
227 | *lcd0_DATA=(uint16_t)data; |
|
237 | *lcd0_DATA=(uint16_t)data; | |
228 | } |
|
238 | } | |
229 |
|
239 | |||
|
240 | uint32_t bsp_lcd0_read_reg(uint32_t reg) | |||
|
241 | { | |||
|
242 | *lcd0_CMD=(uint16_t)reg; | |||
|
243 | return (uint16_t)*lcd0_DATA; | |||
|
244 | } | |||
|
245 | ||||
|
246 | void bsp_lcd0_writeGRAM(void* buffer,uint32_t count) | |||
|
247 | { | |||
|
248 | *lcd0_CMD=(uint16_t)ILI9328_REGISTER_WRITEDATATOGRAM; | |||
|
249 | uint16_t* castedBuff=(uint16_t*)buffer; | |||
|
250 | for(uint32_t i=0;i<count;i++) | |||
|
251 | { | |||
|
252 | *lcd0_DATA=castedBuff[i]; | |||
|
253 | } | |||
|
254 | } | |||
|
255 | ||||
|
256 | void bsp_lcd0_readGRAM(void* buffer,uint32_t count) | |||
|
257 | { | |||
|
258 | *lcd0_CMD=(uint16_t)ILI9328_REGISTER_WRITEDATATOGRAM; | |||
|
259 | uint16_t* castedBuff=(uint16_t*)buffer; | |||
|
260 | castedBuff[0]=*lcd0_DATA; | |||
|
261 | for(uint32_t i=0;i<count;i++) | |||
|
262 | { | |||
|
263 | castedBuff[i]=*lcd0_DATA; | |||
|
264 | } | |||
|
265 | } | |||
230 |
|
266 | |||
231 |
|
267 | |||
232 |
|
268 | |||
|
269 |
@@ -7,6 +7,7 | |||||
7 | #include <i2c.h> |
|
7 | #include <i2c.h> | |
8 | #include <CS43L22.h> |
|
8 | #include <CS43L22.h> | |
9 | #include <ina226.h> |
|
9 | #include <ina226.h> | |
|
10 | #include <fonts.h> | |||
10 |
|
11 | |||
11 |
|
12 | |||
12 | extern streamdevice* __opnfiles__[]; |
|
13 | extern streamdevice* __opnfiles__[]; | |
@@ -21,21 +22,40 int main() | |||||
21 | //ina226open(&ina15VSens,i2c2,INA226_MODE_SHUNT_VOLTAGE_CONTINUOUS|INA226_AVERAGES_16|INA226_BUS_CONV_8244us|INA226_SHUNT_CONV_8244us,1,0,15,1000000); |
|
22 | //ina226open(&ina15VSens,i2c2,INA226_MODE_SHUNT_VOLTAGE_CONTINUOUS|INA226_AVERAGES_16|INA226_BUS_CONV_8244us|INA226_SHUNT_CONV_8244us,1,0,15,1000000); | |
22 | *regtest=(int16_t)0; |
|
23 | *regtest=(int16_t)0; | |
23 | printf("LCD ID=%x\n\r",0xFFFF&(*regtest2)); |
|
24 | printf("LCD ID=%x\n\r",0xFFFF&(*regtest2)); | |
24 | //*regtest=(int16_t)ILI9328_REGISTER_ENTRYMODE; |
|
25 | ||
25 | //*regtest2=(int16_t)0x1008; |
|
26 | while(1) | |
26 | *regtest=(int16_t)0x20; |
|
|||
27 | *regtest2=(int16_t)0x0; |
|
|||
28 | *regtest=(int16_t)0x21; |
|
|||
29 | *regtest2=(int16_t)0x0; |
|
|||
30 | *regtest=(int16_t)0x22; |
|
|||
31 | for(volatile int i=0;i<(320*240);i++) |
|
|||
32 | { |
|
27 | { | |
33 |
*regtest |
|
28 | /* *regtest=(int16_t)ILI9328_REGISTER_ENTRYMODE; | |
34 | for(volatile int l=0;l<(1024);l++); |
|
29 | *regtest2=(int16_t)0x1008;*/ | |
|
30 | ili9328setFrame(&lcd0,0,0,240,320); | |||
|
31 | *regtest=(int16_t)0x22; | |||
|
32 | for(volatile int i=0;i<(320*240);i++) | |||
|
33 | { | |||
|
34 | *regtest2=(int16_t)0x001F; | |||
|
35 | //for(volatile int l=0;l<(1024);l++); | |||
35 |
|
36 | |||
|
37 | } | |||
|
38 | /* *regtest=(int16_t)ILI9328_REGISTER_ENTRYMODE; | |||
|
39 | *regtest2=(int16_t)0x1018;*/ | |||
|
40 | for(volatile int i=0;i<(320*240*100);i++); | |||
|
41 | /* *regtest=(int16_t)ILI9328_REGISTER_ENTRYMODE; | |||
|
42 | *regtest2=(int16_t)0x1008;*/ | |||
|
43 | //ili9328setGRAMaddress(&lcd0,60,80); | |||
|
44 | uint16_t test[80*80]; | |||
|
45 | ili9328setFrame(&lcd0,10,10,100,100); | |||
|
46 | *regtest=(int16_t)0x22; | |||
|
47 | for(volatile int i=0;i<(100*100);i++) | |||
|
48 | { | |||
|
49 | *regtest2=(int16_t)(0xF800); | |||
|
50 | //test[i]=(int16_t)0xF800; | |||
|
51 | //for(volatile int l=0;l<(1024);l++); | |||
|
52 | ||||
|
53 | } | |||
|
54 | //lcd0.paint(&lcd0,test,100,100,80,80); | |||
|
55 | /**regtest=(int16_t)ILI9328_REGISTER_ENTRYMODE; | |||
|
56 | *regtest2=(int16_t)0x1018;*/ | |||
|
57 | for(volatile int i=0;i<(320*240*100);i++); | |||
36 | } |
|
58 | } | |
37 | //*regtest=(int16_t)ILI9328_REGISTER_ENTRYMODE; |
|
|||
38 | //*regtest2=(int16_t)0x1018; |
|
|||
39 |
|
59 | |||
40 | if(-1==ina226open(&ina33VSens,i2c2,INA226_MODE_SHUNT_VOLTAGE_CONTINUOUS|INA226_AVERAGES_16|INA226_BUS_CONV_8244us|INA226_SHUNT_CONV_8244us,0,1,15,1000000)) |
|
60 | if(-1==ina226open(&ina33VSens,i2c2,INA226_MODE_SHUNT_VOLTAGE_CONTINUOUS|INA226_AVERAGES_16|INA226_BUS_CONV_8244us|INA226_SHUNT_CONV_8244us,0,1,15,1000000)) | |
41 | { |
|
61 | { |
@@ -27,7 +27,9 | |||||
27 | #include <stdint.h> |
|
27 | #include <stdint.h> | |
28 |
|
28 | |||
29 | extern int ili9328init(struct LCD_t* LCD); |
|
29 | extern int ili9328init(struct LCD_t* LCD); | |
30 | extern void ili9328paint_t(LCD_t* LCD,void* buffer,uint16_t Xpos,uint16_t Ypos,uint16_t Width,uint16_t Height); |
|
30 | extern void ili9328setFrame(LCD_t* LCD,uint16_t HaddressStart,uint16_t VaddressStart,uint16_t HaddressStop,uint16_t VaddressStop); | |
|
31 | extern void ili9328setGRAMaddress(LCD_t* LCD,uint16_t Haddress,uint16_t Vaddress); | |||
|
32 | extern void ili9328paint(LCD_t* LCD,void* buffer,uint16_t Xpos,uint16_t Ypos,uint16_t Width,uint16_t Height); | |||
31 |
|
33 | |||
32 | #define ILI9328_REGISTER_DRIVERCODEREAD ((uint32_t) 0x0000 ) |
|
34 | #define ILI9328_REGISTER_DRIVERCODEREAD ((uint32_t) 0x0000 ) | |
33 | #define ILI9328_REGISTER_DRIVEROUTPUTCONTROL1 ((uint32_t) 0x0001 ) |
|
35 | #define ILI9328_REGISTER_DRIVEROUTPUTCONTROL1 ((uint32_t) 0x0001 ) |
@@ -25,15 +25,28 | |||||
25 |
|
25 | |||
26 | #define _delay_(del) for(volatile int _d_e_l_=0;_d_e_l_<(del);_d_e_l_++); |
|
26 | #define _delay_(del) for(volatile int _d_e_l_=0;_d_e_l_<(del);_d_e_l_++); | |
27 |
|
27 | |||
28 | void ili9328paint_t(LCD_t* LCD,void* buffer,uint16_t Xpos,uint16_t Ypos,uint16_t Width,uint16_t Height) |
|
28 | void ili9328setGRAMaddress(LCD_t* LCD,uint16_t Haddress,uint16_t Vaddress) | |
|
29 | { | |||
|
30 | LCD->interface->writereg(ILI9328_REGISTER_HORIZONTALGRAMADDRESSSET,Haddress); | |||
|
31 | LCD->interface->writereg(ILI9328_REGISTER_VERTICALGRAMADDRESSSET,Vaddress); | |||
|
32 | } | |||
|
33 | ||||
|
34 | void ili9328setFrame(LCD_t* LCD,uint16_t HaddressStart,uint16_t VaddressStart,uint16_t HaddressStop,uint16_t VaddressStop) | |||
|
35 | { | |||
|
36 | LCD->interface->writereg(ILI9328_REGISTER_HORIZONTALADDRESSSTARTPOSITION,HaddressStart); | |||
|
37 | LCD->interface->writereg(ILI9328_REGISTER_VERTICALADDRESSSTARTPOSITION,VaddressStart); | |||
|
38 | LCD->interface->writereg(ILI9328_REGISTER_HORIZONTALADDRESSENDPOSITION,HaddressStop); | |||
|
39 | LCD->interface->writereg(ILI9328_REGISTER_VERTICALADDRESSENDPOSITION,VaddressStop); | |||
|
40 | } | |||
|
41 | ||||
|
42 | void ili9328paint(LCD_t* LCD,void* buffer,uint16_t Xpos,uint16_t Ypos,uint16_t Width,uint16_t Height) | |||
29 | { |
|
43 | { | |
30 | if((LCD!=NULL) && (LCD->interface!=NULL) && (LCD->interface->writeGRAM!=NULL) && (LCD->width<(Xpos+Width)) && (LCD->height<(Ypos+Height))) |
|
44 | if((LCD!=NULL) && (LCD->interface!=NULL) && (LCD->interface->writeGRAM!=NULL) && (LCD->width<(Xpos+Width)) && (LCD->height<(Ypos+Height))) | |
31 | { |
|
45 | { | |
32 | uint16_t* castedBuff=(uint16_t*)buffer; |
|
46 | printf("paint\n\r"); | |
33 | for(int i=0;i<Height;i++) |
|
47 | ili9328setFrame(LCD,Xpos,Ypos,Xpos+Width,Ypos+Height); | |
34 | { |
|
48 | ili9328setGRAMaddress(LCD,Xpos,Ypos); | |
35 |
|
|
49 | LCD->interface->writeGRAM(buffer,Width*Height); | |
36 | } |
|
|||
37 | } |
|
50 | } | |
38 | } |
|
51 | } | |
39 |
|
52 |
@@ -1,5 +1,6 | |||||
1 | TEMPLATE = subdirs |
|
1 | TEMPLATE = subdirs | |
2 | SUBDIRS += CONTROLERS |
|
2 | SUBDIRS += CONTROLERS \ | |
|
3 | GUI | |||
3 |
|
4 | |||
4 |
|
5 | |||
5 |
|
6 |
@@ -12,7 +12,7 extern int main(); | |||||
12 | void cpu_init() |
|
12 | void cpu_init() | |
13 | { |
|
13 | { | |
14 | extern uint32_t currentCpuFreq; |
|
14 | extern uint32_t currentCpuFreq; | |
15 |
currentCpuFreq = |
|
15 | currentCpuFreq = 140000000; | |
16 | enable_FPU(); |
|
16 | enable_FPU(); | |
17 | RCC->CR |= (uint32_t)0x00000001; |
|
17 | RCC->CR |= (uint32_t)0x00000001; | |
18 | FLASH->ACR = FLASH_ACR_ICEN |FLASH_ACR_DCEN |FLASH_ACR_LATENCY_5WS; |
|
18 | FLASH->ACR = FLASH_ACR_ICEN |FLASH_ACR_DCEN |FLASH_ACR_LATENCY_5WS; |
@@ -5,13 +5,14 LIBUC_LIBS_DIR = $$libuc2/lib | |||||
5 |
|
5 | |||
6 | INCLUDEPATH += $$LIBUC_LIBS_DIR/includes \ |
|
6 | INCLUDEPATH += $$LIBUC_LIBS_DIR/includes \ | |
7 | $$LIBUC_LIBS_DIR/includes/GRAPHIC/CONTROLERS \ |
|
7 | $$LIBUC_LIBS_DIR/includes/GRAPHIC/CONTROLERS \ | |
|
8 | $$LIBUC_LIBS_DIR/includes/GRAPHIC/GUI/FONTS \ | |||
8 | $$LIBUC_LIBS_DIR/includes/$$ARCH |
|
9 | $$LIBUC_LIBS_DIR/includes/$$ARCH | |
9 |
|
10 | |||
10 | LIBUC_BIN_LIBS_DIR = $$LIBUC_LIBS_DIR/bin/$$ARCH |
|
11 | LIBUC_BIN_LIBS_DIR = $$LIBUC_LIBS_DIR/bin/$$ARCH | |
11 |
|
12 | |||
12 |
|
13 | |||
13 | LIBS += -L$$LIBUC_LIBS_DIR/bin/$$ARCH \ |
|
14 | LIBS += -L$$LIBUC_LIBS_DIR/bin/$$ARCH \ | |
14 | -lCS43L22 -lina226 -lili9328 |
|
15 | -lCS43L22 -lina226 -lili9328 -lfonts | |
15 |
|
16 | |||
16 | LIBS += -L$$LIBUC_LIBS_DIR/bin/$$ARCH \ |
|
17 | LIBS += -L$$LIBUC_LIBS_DIR/bin/$$ARCH \ | |
17 | -lsdcard |
|
18 | -lsdcard |
General Comments 0
You need to be logged in to leave comments.
Login now