Mon, 21 Jun 2021 19:04:10 +0200
Finished experimental code to drive the German HendiControl board. Added BoilPower and RampPower buttons during the while boil process. RampPower (going to boil power) is now adjustable. Added PWM driver code to the driver task.
0 | 1 | // Default font |
2 | ||
3 | // ======================================================================== | |
4 | // This comes with no warranty, implied or otherwise | |
5 | ||
6 | // This data structure was designed to support Proportional fonts | |
7 | // fonts. Individual characters do not have to be multiples of 8 bits wide. | |
8 | // Any width is fine and does not need to be fixed. | |
9 | ||
10 | // The data bits are packed to minimize data requirements, but the tradeoff | |
11 | // is that a header is required per character. | |
12 | ||
13 | // Header Format: | |
14 | // ------------------------------------------------ | |
15 | // Character Width (Used as a marker to indicate use this format. i.e.: = 0x00) | |
16 | // Character Height | |
17 | // First Character (Reserved. 0x00) | |
18 | // Number Of Characters (Reserved. 0x00) | |
19 | ||
20 | // Individual Character Format: | |
21 | // ---------------------------- | |
22 | // Character Code | |
23 | // Adjusted Y Offset (start Y of visible pixels) | |
24 | // Width (width of the visible pixels) | |
25 | // Height (height of the visible pixels) | |
26 | // xOffset (start X of visible pixels) | |
27 | // xDelta (the distance to move the cursor. Effective width of the character.) | |
28 | // Data[n] | |
29 | ||
30 | // NOTE: You can remove any of these characters if they are not needed in | |
31 | // your application. The first character number in each Glyph indicates | |
32 | // the ASCII character code. Therefore, these do not have to be sequential. | |
33 | // Just remove all the content for a particular character to save space. | |
34 | // ======================================================================== | |
35 | ||
36 | // dejavu | |
37 | // Point Size : 12 | |
38 | // Memory usage : 1158 bytes | |
39 | // # characters : 95 | |
40 | ||
41 | const unsigned char tft_DefaultFont[] = | |
42 | { | |
43 | 0x00, 0x0B, 0x86, 0x04, | |
44 | ||
45 | // ' ' | |
46 | 0x20,0x0A,0x00,0x00,0x00,0x04, | |
47 | ||
48 | // '!' | |
49 | 0x21,0x01,0x01,0x09,0x02,0x05, | |
50 | 0xFD,0x80, | |
51 | // '"' | |
52 | 0x22,0x01,0x03,0x03,0x01,0x05, | |
53 | 0xB6,0x80, | |
54 | // '#' | |
55 | 0x23,0x02,0x08,0x08,0x01,0x0A, | |
56 | 0x12,0x14,0x7F,0x24,0x24,0xFE,0x28,0x48, | |
57 | // '$' | |
58 | 0x24,0x01,0x06,0x0B,0x02,0x08, | |
59 | 0x21,0xCA,0xA8,0xE0,0xE2,0xAA,0x70,0x82,0x00, | |
60 | // '%' | |
61 | 0x25,0x01,0x0A,0x09,0x00,0x0B, | |
62 | 0x61,0x24,0x89,0x22,0x50,0x6D,0x82,0x91,0x24,0x49,0x21,0x80, | |
63 | // '&' | |
64 | 0x26,0x01,0x09,0x09,0x01,0x0A, | |
65 | 0x30,0x24,0x10,0x0C,0x05,0x14,0x4A,0x19,0x8C,0x7B,0x00, | |
66 | // ''' | |
67 | 0x27,0x01,0x01,0x03,0x01,0x03, | |
68 | 0xE0, | |
69 | // '(' | |
70 | 0x28,0x00,0x03,0x0B,0x01,0x05, | |
71 | 0x69,0x49,0x24,0x48,0x80, | |
72 | // ')' | |
73 | 0x29,0x00,0x03,0x0B,0x01,0x05, | |
74 | 0x89,0x12,0x49,0x4A,0x00, | |
75 | // '*' | |
76 | 0x2A,0x01,0x05,0x06,0x01,0x06, | |
77 | 0x25,0x5C,0xEA,0x90, | |
78 | // '+' | |
79 | 0x2B,0x03,0x07,0x07,0x01,0x0A, | |
80 | 0x10,0x20,0x47,0xF1,0x02,0x04,0x00, | |
81 | // ',' | |
82 | 0x2C,0x08,0x01,0x03,0x01,0x04, | |
83 | 0xE0, | |
84 | // '-' | |
85 | 0x2D,0x06,0x03,0x01,0x01,0x04, | |
86 | 0xE0, | |
87 | // '.' | |
88 | 0x2E,0x08,0x01,0x02,0x01,0x04, | |
89 | 0xC0, | |
90 | // '/' | |
91 | 0x2F,0x01,0x04,0x0A,0x00,0x04, | |
92 | 0x11,0x22,0x24,0x44,0x88, | |
93 | // '0' | |
94 | 0x30,0x01,0x06,0x09,0x01,0x08, | |
95 | 0x79,0x28,0x61,0x86,0x18,0x52,0x78, | |
96 | // '1' | |
97 | 0x31,0x01,0x05,0x09,0x01,0x08, | |
98 | 0xE1,0x08,0x42,0x10,0x84,0xF8, | |
99 | // '2' | |
100 | 0x32,0x01,0x07,0x09,0x01,0x08, | |
101 | 0x79,0x18,0x10,0x20,0x82,0x08,0x20,0xFC, | |
102 | // '3' | |
103 | 0x33,0x01,0x06,0x09,0x01,0x08, | |
104 | 0x7A,0x10,0x41,0x38,0x30,0x63,0x78, | |
105 | // '4' | |
106 | 0x34,0x01,0x06,0x09,0x01,0x08, | |
107 | 0x18,0x62,0x92,0x4A,0x2F,0xC2,0x08, | |
108 | // '5' | |
109 | 0x35,0x01,0x06,0x09,0x01,0x08, | |
110 | 0xFA,0x08,0x3C,0x0C,0x10,0x63,0x78, | |
111 | // '6' | |
112 | 0x36,0x01,0x06,0x09,0x01,0x08, | |
113 | 0x39,0x18,0x3E,0xCE,0x18,0x53,0x78, | |
114 | // '7' | |
115 | 0x37,0x01,0x06,0x09,0x01,0x08, | |
116 | 0xFC,0x10,0x82,0x10,0x42,0x08,0x40, | |
117 | // '8' | |
118 | 0x38,0x01,0x06,0x09,0x01,0x08, | |
119 | 0x7B,0x38,0x73,0x7B,0x38,0x73,0x78, | |
120 | // '9' | |
121 | 0x39,0x01,0x06,0x09,0x01,0x08, | |
122 | 0x7B,0x28,0x61,0xCD,0xD0,0x62,0x70, | |
123 | // ':' | |
124 | 0x3A,0x04,0x01,0x06,0x01,0x04, | |
125 | 0xCC, | |
126 | // ';' | |
127 | 0x3B,0x04,0x01,0x07,0x01,0x04, | |
128 | 0xCE, | |
129 | // '<' | |
130 | 0x3C,0x03,0x08,0x06,0x01,0x0A, | |
131 | 0x03,0x1E,0xE0,0xE0,0x1E,0x03, | |
132 | // '=' | |
133 | 0x3D,0x05,0x08,0x03,0x01,0x0A, | |
134 | 0xFF,0x00,0xFF, | |
135 | // '>' | |
136 | 0x3E,0x03,0x08,0x06,0x01,0x0A, | |
137 | 0xC0,0x78,0x07,0x07,0x78,0xC0, | |
138 | // '?' | |
139 | 0x3F,0x01,0x05,0x09,0x00,0x06, | |
140 | 0x74,0x42,0x22,0x10,0x04,0x20, | |
141 | // '@' | |
142 | 0x40,0x01,0x0B,0x0B,0x01,0x0D, | |
143 | 0x1F,0x06,0x19,0x01,0x46,0x99,0x13,0x22,0x64,0x54,0x6C,0x40,0x04,0x10,0x7C,0x00, | |
144 | // 'A' | |
145 | 0x41,0x01,0x08,0x09,0x00,0x08, | |
146 | 0x18,0x18,0x24,0x24,0x24,0x42,0x7E,0x42,0x81, | |
147 | // 'B' | |
148 | 0x42,0x01,0x06,0x09,0x01,0x08, | |
149 | 0xFA,0x18,0x61,0xFA,0x18,0x61,0xF8, | |
150 | // 'C' | |
151 | 0x43,0x01,0x06,0x09,0x01,0x08, | |
152 | 0x39,0x18,0x20,0x82,0x08,0x11,0x38, | |
153 | // 'D' | |
154 | 0x44,0x01,0x07,0x09,0x01,0x09, | |
155 | 0xF9,0x0A,0x0C,0x18,0x30,0x60,0xC2,0xF8, | |
156 | // 'E' | |
157 | 0x45,0x01,0x06,0x09,0x01,0x08, | |
158 | 0xFE,0x08,0x20,0xFE,0x08,0x20,0xFC, | |
159 | // 'F' | |
160 | 0x46,0x01,0x05,0x09,0x01,0x07, | |
161 | 0xFC,0x21,0x0F,0xC2,0x10,0x80, | |
162 | // 'G' | |
163 | 0x47,0x01,0x07,0x09,0x01,0x09, | |
164 | 0x3C,0x86,0x04,0x08,0xF0,0x60,0xA1,0x3C, | |
165 | // 'H' | |
166 | 0x48,0x01,0x07,0x09,0x01,0x09, | |
167 | 0x83,0x06,0x0C,0x1F,0xF0,0x60,0xC1,0x82, | |
168 | // 'I' | |
169 | 0x49,0x01,0x01,0x09,0x01,0x03, | |
170 | 0xFF,0x80, | |
171 | // 'J' | |
172 | 0x4A,0x01,0x03,0x0B,0xFF,0x03, | |
173 | 0x24,0x92,0x49,0x27,0x00, | |
174 | // 'K' | |
175 | 0x4B,0x01,0x07,0x09,0x01,0x07, | |
176 | 0x85,0x12,0x45,0x0C,0x14,0x24,0x44,0x84, | |
177 | // 'L' | |
178 | 0x4C,0x01,0x05,0x09,0x01,0x06, | |
179 | 0x84,0x21,0x08,0x42,0x10,0xF8, | |
180 | // 'M' | |
181 | 0x4D,0x01,0x08,0x09,0x01,0x0A, | |
182 | 0x81,0xC3,0xC3,0xA5,0xA5,0x99,0x99,0x81,0x81, | |
183 | // 'N' | |
184 | 0x4E,0x01,0x07,0x09,0x01,0x09, | |
185 | 0xC3,0x86,0x8D,0x19,0x31,0x62,0xC3,0x86, | |
186 | // 'O' | |
187 | 0x4F,0x01,0x07,0x09,0x01,0x09, | |
188 | 0x38,0x8A,0x0C,0x18,0x30,0x60,0xA2,0x38, | |
189 | // 'P' | |
190 | 0x50,0x01,0x06,0x09,0x01,0x08, | |
191 | 0xFA,0x38,0x63,0xFA,0x08,0x20,0x80, | |
192 | // 'Q' | |
193 | 0x51,0x01,0x07,0x0B,0x01,0x09, | |
194 | 0x38,0x8A,0x0C,0x18,0x30,0x60,0xA2,0x38,0x10,0x10, | |
195 | // 'R' | |
196 | 0x52,0x01,0x07,0x09,0x01,0x08, | |
197 | 0xF9,0x1A,0x14,0x6F,0x91,0x21,0x42,0x82, | |
198 | // 'S' | |
199 | 0x53,0x01,0x06,0x09,0x01,0x08, | |
200 | 0x7B,0x18,0x30,0x78,0x30,0x63,0x78, | |
201 | // 'T' | |
202 | 0x54,0x01,0x07,0x09,0x00,0x07, | |
203 | 0xFE,0x20,0x40,0x81,0x02,0x04,0x08,0x10, | |
204 | // 'U' | |
205 | 0x55,0x01,0x07,0x09,0x01,0x09, | |
206 | 0x83,0x06,0x0C,0x18,0x30,0x60,0xA2,0x38, | |
207 | // 'V' | |
208 | 0x56,0x01,0x0A,0x09,0xFF,0x08, | |
209 | 0x40,0x90,0x22,0x10,0x84,0x21,0x04,0x81,0x20,0x30,0x0C,0x00, | |
210 | // 'W' | |
211 | 0x57,0x01,0x0B,0x09,0x00,0x0B, | |
212 | 0x84,0x28,0x89,0x11,0x27,0x22,0xA8,0x55,0x0E,0xE0,0x88,0x11,0x00, | |
213 | // 'X' | |
214 | 0x58,0x01,0x07,0x09,0x00,0x07, | |
215 | 0xC6,0x88,0xA1,0xC1,0x07,0x0A,0x22,0x82, | |
216 | // 'Y' | |
217 | 0x59,0x01,0x07,0x09,0x00,0x07, | |
218 | 0x82,0x89,0x11,0x43,0x82,0x04,0x08,0x10, | |
219 | // 'Z' | |
220 | 0x5A,0x01,0x07,0x09,0x01,0x09, | |
221 | 0xFE,0x04,0x10,0x41,0x04,0x10,0x40,0xFE, | |
222 | // '[' | |
223 | 0x5B,0x01,0x02,0x0B,0x02,0x05, | |
224 | 0xEA,0xAA,0xAC, | |
225 | // '\' | |
226 | 0x5C,0x01,0x04,0x0A,0x00,0x04, | |
227 | 0x88,0x44,0x42,0x22,0x11, | |
228 | // ']' | |
229 | 0x5D,0x01,0x02,0x0B,0x01,0x05, | |
230 | 0xD5,0x55,0x5C, | |
231 | // '^' | |
232 | 0x5E,0x01,0x08,0x03,0x01,0x0A, | |
233 | 0x18,0x24,0x42, | |
234 | // '_' | |
235 | 0x5F,0x0C,0x06,0x01,0x00,0x06, | |
236 | 0xFC, | |
237 | // '`' | |
238 | 0x60,0x00,0x03,0x02,0x01,0x06, | |
239 | 0x44, | |
240 | // 'a' | |
241 | 0x61,0x03,0x06,0x07,0x01,0x08, | |
242 | 0x7A,0x30,0x5F,0x86,0x37,0x40, | |
243 | // 'b' | |
244 | 0x62,0x00,0x06,0x0A,0x01,0x08, | |
245 | 0x82,0x08,0x2E,0xCA,0x18,0x61,0xCE,0xE0, | |
246 | // 'c' | |
247 | 0x63,0x03,0x05,0x07,0x01,0x07, | |
248 | 0x72,0x61,0x08,0x25,0xC0, | |
249 | // 'd' | |
250 | 0x64,0x00,0x06,0x0A,0x01,0x08, | |
251 | 0x04,0x10,0x5D,0xCE,0x18,0x61,0xCD,0xD0, | |
252 | // 'e' | |
253 | 0x65,0x03,0x06,0x07,0x01,0x08, | |
254 | 0x39,0x38,0x7F,0x81,0x13,0x80, | |
255 | // 'f' | |
256 | 0x66,0x00,0x04,0x0A,0x00,0x04, | |
257 | 0x34,0x4F,0x44,0x44,0x44, | |
258 | // 'g' | |
259 | 0x67,0x03,0x06,0x0A,0x01,0x08, | |
260 | 0x77,0x38,0x61,0x87,0x37,0x41,0x4C,0xE0, | |
261 | // 'h' | |
262 | 0x68,0x00,0x06,0x0A,0x01,0x08, | |
263 | 0x82,0x08,0x2E,0xC6,0x18,0x61,0x86,0x10, | |
264 | // 'i' | |
265 | 0x69,0x01,0x01,0x09,0x01,0x03, | |
266 | 0xBF,0x80, | |
267 | // 'j' | |
268 | 0x6A,0x01,0x02,0x0C,0x00,0x03, | |
269 | 0x45,0x55,0x56, | |
270 | // 'k' | |
271 | 0x6B,0x00,0x06,0x0A,0x01,0x07, | |
272 | 0x82,0x08,0x22,0x92,0x8E,0x28,0x92,0x20, | |
273 | // 'l' | |
274 | 0x6C,0x00,0x01,0x0A,0x01,0x03, | |
275 | 0xFF,0xC0, | |
276 | // 'm' | |
277 | 0x6D,0x03,0x09,0x07,0x01,0x0B, | |
278 | 0xB3,0x66,0x62,0x31,0x18,0x8C,0x46,0x22, | |
279 | // 'n' | |
280 | 0x6E,0x03,0x06,0x07,0x01,0x08, | |
281 | 0xBB,0x18,0x61,0x86,0x18,0x40, | |
282 | // 'o' | |
283 | 0x6F,0x03,0x06,0x07,0x01,0x08, | |
284 | 0x7B,0x38,0x61,0x87,0x37,0x80, | |
285 | // 'p' | |
286 | 0x70,0x03,0x06,0x0A,0x01,0x08, | |
287 | 0xBB,0x28,0x61,0x87,0x3B,0xA0,0x82,0x00, | |
288 | // 'q' | |
289 | 0x71,0x03,0x06,0x0A,0x01,0x08, | |
290 | 0x77,0x38,0x61,0x87,0x37,0x41,0x04,0x10, | |
291 | // 'r' | |
292 | 0x72,0x03,0x04,0x07,0x01,0x05, | |
293 | 0xBC,0x88,0x88,0x80, | |
294 | // 's' | |
295 | 0x73,0x03,0x06,0x07,0x01,0x07, | |
296 | 0x72,0x28,0x1C,0x0A,0x27,0x00, | |
297 | // 't' | |
298 | 0x74,0x01,0x04,0x09,0x00,0x05, | |
299 | 0x44,0xF4,0x44,0x44,0x30, | |
300 | // 'u' | |
301 | 0x75,0x03,0x06,0x07,0x01,0x08, | |
302 | 0x86,0x18,0x61,0x86,0x37,0x40, | |
303 | // 'v' | |
304 | 0x76,0x03,0x08,0x07,0xFF,0x06, | |
305 | 0x42,0x42,0x24,0x24,0x24,0x18,0x18, | |
306 | // 'w' | |
307 | 0x77,0x03,0x09,0x07,0x00,0x09, | |
308 | 0x88,0xC4,0x57,0x4A,0xA5,0x51,0x10,0x88, | |
309 | // 'x' | |
310 | 0x78,0x03,0x06,0x07,0x00,0x06, | |
311 | 0x85,0x24,0x8C,0x49,0x28,0x40, | |
312 | // 'y' | |
313 | 0x79,0x03,0x08,0x0A,0xFF,0x06, | |
314 | 0x42,0x42,0x24,0x24,0x14,0x18,0x08,0x08,0x10,0x60, | |
315 | // 'z' | |
316 | 0x7A,0x03,0x05,0x07,0x00,0x05, | |
317 | 0xF8,0x44,0x44,0x43,0xE0, | |
318 | // '{' | |
319 | 0x7B,0x01,0x05,0x0B,0x02,0x08, | |
320 | 0x19,0x08,0x42,0x60,0x84,0x21,0x06, | |
321 | // '|' | |
322 | 0x7C,0x01,0x01,0x0C,0x02,0x04, | |
323 | 0xFF,0xF0, | |
324 | // '}' | |
325 | 0x7D,0x01,0x05,0x0B,0x01,0x08, | |
326 | 0xC1,0x08,0x42,0x0C,0x84,0x21,0x30, | |
327 | // '~' | |
328 | 0x7E,0x04,0x08,0x03,0x01,0x0A, | |
329 | 0x00,0x71,0x8E, | |
330 | ||
331 | // Terminator | |
332 | 0xFF | |
333 | }; |