-
Notifications
You must be signed in to change notification settings - Fork 11
/
RMTT_Fonts.cpp
545 lines (537 loc) · 21.2 KB
/
RMTT_Fonts.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
/*
* Copyright (C) 2020 DJI.
*
* SPDX-License-Identifier: BSD-3-Clause-Clear
*
* Change Logs:
* Date Author Notes
* 2020-08-25 robomaster first version
*/
#include "RMTT_Fonts.h"
const char matrix_fonts[][8] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x01
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x02
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x03
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x04
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x05
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x06
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x07
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x08
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x09
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x0A
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x0B
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x0C
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x0D
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x0E
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x0F
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x10
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x11
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x12
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x13
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x14
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x15
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x16
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x17
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x18
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x19
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x1A
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x1B
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x1C
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x1D
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x1E
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x1F
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x20 ( )
0x18,0x18,0x18,0x18,0x00,0x00,0x18,0x00, // 0x21 (!)
0x6C,0x6c,0x24,0x00,0x00,0x00,0x00,0x00, // 0x22 (")
0x66,0x66,0xFF,0x66,0xFF,0x66,0x66,0x00, // 0x23 (#)
0x18,0x3E,0x60,0x3C,0x06,0x7C,0x18,0x00, // 0x24 ($)
0x62,0x66,0x0C,0x18,0x30,0x66,0x46,0x00, // 0x25 (%)
0x3C,0x66,0x3C,0x38,0x67,0x66,0x3F,0x00, // 0x26 (&)
0x18,0x18,0x30,0x00,0x00,0x00,0x00,0x00, // 0x27 (')
0x0C,0x18,0x30,0x30,0x30,0x18,0x0C,0x00, // 0x28 (()
0x30,0x18,0x0C,0x0C,0x0C,0x18,0x30,0x00, // 0x29 ())
0x00,0x66,0x3C,0xFF,0x3C,0x66,0x00,0x00, // 0x2A (*)
0x00,0x18,0x18,0x7E,0x18,0x18,0x00,0x00, // 0x2B (+)
0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x30, // 0x2C (,)
0x00,0x00,0x00,0x7E,0x00,0x00,0x00,0x00, // 0x2D (-)
0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x00, // 0x2E (.)
0x00,0x03,0x06,0x0C,0x18,0x30,0x60,0x00, // 0x2F (/)
0x3C,0x66,0x6E,0x76,0x66,0x66,0x3C,0x00, // 0x30 (0)
0x18,0x18,0x38,0x18,0x18,0x18,0x7E,0x00, // 0x31 (1)
0x3C,0x66,0x06,0x0C,0x30,0x60,0x7E,0x00, // 0x32 (2)
0x3C,0x66,0x06,0x1C,0x06,0x66,0x3C,0x00, // 0x33 (3)
0x06,0x0E,0x16,0x26,0x7F,0x06,0x06,0x00, // 0x34 (4)
0x7E,0x60,0x7C,0x06,0x06,0x66,0x3C,0x00, // 0x35 (5)
0x3C,0x66,0x60,0x7C,0x66,0x66,0x3C,0x00, // 0x36 (6)
0x7E,0x66,0x0C,0x18,0x18,0x18,0x18,0x00, // 0x37 (7)
0x3C,0x66,0x66,0x3C,0x66,0x66,0x3C,0x00, // 0x38 (8)
0x3C,0x66,0x66,0x3E,0x06,0x66,0x3C,0x00, // 0x39 (9)
0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00, // 0x3A (:)
0x00,0x00,0x18,0x00,0x00,0x18,0x18,0x30, // 0x3B (;)
0x0E,0x18,0x30,0x60,0x30,0x18,0x0E,0x00, // 0x3C (<)
0x00,0x00,0x7E,0x00,0x7E,0x00,0x00,0x00, // 0x3D (=)
0x70,0x18,0x0C,0x06,0x0C,0x18,0x70,0x00, // 0x3E (>)
0x3C,0x66,0x06,0x0C,0x18,0x00,0x18,0x00, // 0x3F (?)
0x3C,0x66,0x6E,0x6E,0x60,0x62,0x3C,0x00, // 0x40 (@)
0x18,0x3C,0x66,0x7E,0x66,0x66,0x66,0x00, // 0x41 (A)
0x7C,0x66,0x66,0x7C,0x66,0x66,0x7C,0x00, // 0x42 (B)
0x3C,0x66,0x60,0x60,0x60,0x66,0x3C,0x00, // 0x43 (C)
0x78,0x6C,0x66,0x66,0x66,0x6C,0x78,0x00, // 0x44 (D)
0x7E,0x60,0x60,0x78,0x60,0x60,0x7E,0x00, // 0x45 (E)
0x7E,0x60,0x60,0x78,0x60,0x60,0x60,0x00, // 0x46 (F)
0x3C,0x66,0x60,0x6E,0x66,0x66,0x3C,0x00, // 0x47 (G)
0x66,0x66,0x66,0x7E,0x66,0x66,0x66,0x00, // 0x48 (H)
0x3C,0x18,0x18,0x18,0x18,0x18,0x3C,0x00, // 0x49 (I)
0x1E,0x0C,0x0C,0x0C,0x0C,0x6C,0x38,0x00, // 0x4A (J)
0x66,0x6C,0x78,0x70,0x78,0x6C,0x66,0x00, // 0x4B (K)
0x60,0x60,0x60,0x60,0x60,0x60,0x7E,0x00, // 0x4C (L)
0x63,0x77,0x7F,0x6B,0x63,0x63,0x63,0x00, // 0x4D (M)
0x66,0x76,0x7E,0x7E,0x6E,0x66,0x66,0x00, // 0x4E (N)
0x3C,0x66,0x66,0x66,0x66,0x66,0x3C,0x00, // 0x4F (O)
0x7C,0x66,0x66,0x7C,0x60,0x60,0x60,0x00, // 0x50 (P)
0x3C,0x66,0x66,0x66,0x66,0x3C,0x0E,0x00, // 0x51 (Q)
0x7C,0x66,0x66,0x7C,0x78,0x6C,0x66,0x00, // 0x52 (R)
0x3C,0x66,0x60,0x3C,0x06,0x66,0x3C,0x00, // 0x53 (S)
0x7E,0x18,0x18,0x18,0x18,0x18,0x18,0x00, // 0x54 (T)
0x66,0x66,0x66,0x66,0x66,0x66,0x3C,0x00, // 0x55 (U)
0x66,0x66,0x66,0x66,0x66,0x3C,0x18,0x00, // 0x56 (V)
0x63,0x63,0x63,0x6B,0x7F,0x77,0x63,0x00, // 0x57 (W)
0x66,0x66,0x3C,0x18,0x3C,0x66,0x66,0x00, // 0x58 (X)
0x66,0x66,0x66,0x3C,0x18,0x18,0x18,0x00, // 0x59 (Y)
0x7E,0x06,0x0C,0x18,0x30,0x60,0x7E,0x00, // 0x5A (Z)
0x3C,0x30,0x30,0x30,0x30,0x30,0x3C,0x00, // 0x5B ([)
0x00,0x60,0x30,0x18,0x0C,0x06,0x03,0x00, // 0x5C (\)
0x3C,0x0C,0x0C,0x0C,0x0C,0x0C,0x3C,0x00, // 0x5D (])
0x18,0x24,0x42,0x00,0x00,0x00,0x00,0x00, // 0x5E (^)
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF, // 0x5F (_)
0x18,0x18,0x0C,0x00,0x00,0x00,0x00,0x00, // 0x60 (`)
0x00,0x00,0x3C,0x06,0x3E,0x66,0x3E,0x00, // 0x61 (a)
0x00,0x60,0x60,0x7C,0x66,0x66,0x7C,0x00, // 0x62 (b)
0x00,0x00,0x3C,0x60,0x60,0x60,0x3C,0x00, // 0x63 (c)
0x00,0x06,0x06,0x3E,0x66,0x66,0x3E,0x00, // 0x64 (d)
0x00,0x00,0x3C,0x66,0x7E,0x60,0x3C,0x00, // 0x65 (e)
0x00,0x0E,0x18,0x3E,0x18,0x18,0x18,0x00, // 0x66 (f)
0x00,0x00,0x3E,0x66,0x66,0x3E,0x06,0x7C, // 0x67 (g)
0x00,0x60,0x60,0x7C,0x66,0x66,0x66,0x00, // 0x68 (h)
0x00,0x18,0x00,0x38,0x18,0x18,0x3C,0x00, // 0x69 (i)
0x00,0x06,0x00,0x06,0x06,0x06,0x06,0x3C, // 0x6A (j)
0x00,0x60,0x60,0x6C,0x78,0x6C,0x66,0x00, // 0x6B (k)
0x00,0x38,0x18,0x18,0x18,0x18,0x3C,0x00, // 0x6C (l)
0x00,0x00,0x66,0x7F,0x7F,0x6B,0x63,0x00, // 0x6D (m)
0x00,0x00,0x7C,0x66,0x66,0x66,0x66,0x00, // 0x6E (n)
0x00,0x00,0x3C,0x66,0x66,0x66,0x3C,0x00, // 0x6F (o)
0x00,0x00,0x7C,0x66,0x66,0x7C,0x60,0x60, // 0x70 (p)
0x00,0x00,0x3E,0x66,0x66,0x3E,0x06,0x06, // 0x71 (q)
0x00,0x00,0x7C,0x66,0x60,0x60,0x60,0x00, // 0x72 (r)
0x00,0x00,0x3E,0x60,0x3C,0x06,0x7C,0x00, // 0x73 (s)
0x00,0x18,0x7E,0x18,0x18,0x18,0x0E,0x00, // 0x74 (t)
0x00,0x00,0x66,0x66,0x66,0x66,0x3E,0x00, // 0x75 (u)
0x00,0x00,0x66,0x66,0x66,0x3C,0x18,0x00, // 0x76 (v)
0x00,0x00,0x63,0x6B,0x7F,0x3E,0x36,0x00, // 0x77 (w)
0x00,0x00,0x66,0x3C,0x18,0x3C,0x66,0x00, // 0x78 (x)
0x00,0x00,0x66,0x66,0x66,0x3E,0x0C,0x78, // 0x79 (y)
0x00,0x00,0x7E,0x0C,0x18,0x30,0x7E,0x00, // 0x7A (z)
0x1C,0x30,0x30,0x60,0x30,0x30,0x1C,0x00, // 0x7B ({)
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x00, // 0x7C (|)
0x38,0x0C,0x0C,0x06,0x0C,0x0C,0x38,0x00, // 0x7D (})
0x00,0x30,0x79,0xDB,0x9E,0x0C,0x00,0x00, // 0x7E (~)
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x7F (DEL)
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x80
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x81
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x82
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x83
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x84
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x85
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x86
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x87
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x88
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x89
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x8A
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x8B
0x08,0x3C,0x60,0x3C,0x06,0x66,0x3C,0x00, // 0x8C (Ś) WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x8D
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x8E
0x18,0x7E,0x0C,0x18,0x30,0x60,0x7E,0x00, // 0x8F (Ź) WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x90
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x91
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x92
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x93
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x94
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x95
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x96
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x97
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x98
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x99
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x9A
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x9B
0x04,0x08,0x3E,0x60,0x3C,0x06,0x7C,0x00, // 0x9C (ś) WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x9D
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x9E
0x04,0x08,0x7E,0x0C,0x18,0x30,0x7E,0x00, // 0x9F (ź) WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xA0
0x18,0x3C,0x66,0x7E,0x66,0x66,0x66,0x04, // 0xA1 (Ą) ISO
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xA2
0x60,0x60,0x68,0x70,0x60,0x60,0x7E,0x00, // 0xA3 (Ł) ISO/WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xA4
0x18,0x3C,0x66,0x7E,0x66,0x66,0x66,0x04, // 0xA5 (Ą) WIN
0x08,0x3C,0x60,0x3C,0x06,0x66,0x3C,0x00, // 0xA6 (Ś) ISO
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xA7
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xA8
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xA9
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xAA
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xAB
0x18,0x7E,0x0C,0x18,0x30,0x60,0x7E,0x00, // 0xAC (Ź) ISO
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xAD
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xAE
0x08,0x7E,0x0C,0x18,0x30,0x60,0x7E,0x00, // 0xAF (Ż) ISO/WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xB0
0x00,0x00,0x3C,0x06,0x3E,0x66,0x3E,0x04, // 0xB1 (ą) ISO
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xB2
0x00,0x38,0x1C,0x18,0x38,0x18,0x3C,0x00, // 0xB3 (ł) ISO/WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xB4
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xB5
0x04,0x08,0x3E,0x60,0x3C,0x06,0x7C,0x00, // 0xB6 (ś) ISO
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xB7
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xB8
0x00,0x00,0x3C,0x06,0x3E,0x66,0x3E,0x04, // 0xB9 (ą) WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xBA
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xBB
0x04,0x08,0x7E,0x0C,0x18,0x30,0x7E,0x00, // 0xBC (ź) ISO
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xBD
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xBE
0x08,0x00,0x7E,0x0C,0x18,0x30,0x7E,0x00, // 0xBF (ż) ISO/WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xC0
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xC1
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xC2
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xC3
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xC4
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xC5
0x08,0x3C,0x66,0x60,0x60,0x66,0x3C,0x00, // 0xC6 (Ć) ISO/WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xC7
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xC8
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xC9
0x7E,0x60,0x60,0x78,0x60,0x60,0x7E,0x04, // 0xCA (Ę) ISO/WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xCB
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xCC
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xCD
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xCE
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xCF
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xD0
0x08,0x66,0x76,0x7E,0x7E,0x6E,0x66,0x00, // 0xD1 (Ń) ISO/WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xD2
0x08,0x3C,0x66,0x66,0x66,0x66,0x3C,0x00, // 0xD3 (Ó) ISO/WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xD4
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xD5
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xD6
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xD7
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xD8
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xD9
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xDA
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xDB
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xDC
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xDD
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xDE
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xDF
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xE0
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xE1
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xE2
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xE3
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xE4
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xE5
0x04,0x08,0x3C,0x60,0x60,0x60,0x3C,0x00, // 0xE6 (ć) ISO/WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xE7
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xE8
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xE9
0x00,0x00,0x3C,0x66,0x7E,0x60,0x3C,0x04, // 0xEA (ę) ISO/WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xEB
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xEC
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xED
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xEE
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xEF
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xF0
0x04,0x08,0x7C,0x66,0x66,0x66,0x66,0x00, // 0xF1 (ń) ISO/WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xF2
0x04,0x08,0x3C,0x66,0x66,0x66,0x3C,0x00, // 0xF3 (ó) ISO/WIN
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xF4
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xF5
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xF6
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xF7
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xF8
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xF9
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xFA
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xFB
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xFC
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xFD
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xFE
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0xFF
//icons
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 0x100 (empty)
0x7E,0x81,0x3C,0x42,0x18,0x24,0x18,0x18, // 0x101 (WiFi)
0x7E,0xE7,0xE7,0xE7,0x81,0xC3,0xE7,0x7E, // 0x102 (Download)
0x18,0x5A,0x99,0x99,0x81,0x81,0x42,0x3C, // 0x103 (Power)
0x66,0xFF,0xFF,0xFF,0x7E,0x3C,0x18,0x00, // 0x104 (Heart, filled)
0x66,0x99,0x81,0x81,0x42,0x24,0x18,0x00, // 0x105 (Heart, outline)
0x3C,0x42,0xA5,0x81,0xA5,0x99,0x42,0x3C, // 0x106 (smile)
};
int rbpstr2buff(uint8_t buff[128], char str[], uint8_t bright)
{
int i = 0;
int len = strlen(str);
len = len > 64 ? 64 : len;
while (len--)
{
switch (str[i])
{
case '0':
{
buff[2 * i] = 0;
buff[2 * i + 1] = 0;
}
break;
case 'b':
{
buff[2 * i] = bright;
buff[2 * i + 1] = 0;
}
break;
case 'r':
{
buff[2 * i] = 0;
buff[2 * i + 1] = bright;
}
break;
case 'p':
{
buff[2 * i] = bright;
buff[2 * i + 1] = bright;
}
break;
default:
return -1;
break;
}
i++;
}
return 0;
}
int mled_font2buff(uint8_t buff[128], int c, char color, uint8_t bright)
{
uint8_t err = 0;
if (c <= 0x105)
{
err = font8x8_convert(buff, matrix_fonts[c], color, bright);
}
return err;
}
int font8x8_convert(uint8_t buff[128], const char font[8], char color, uint8_t bright)
{
for (int i = 0; i < 8; i++)
{
for (int j = 0; j < 8; j++)
{
if ((font[i] >> (7 - j)) & 0x01)
{
switch (color)
{
case 'b':
buff[16 * i + 2 * j] = bright;
buff[16 * i + 2 * j + 1] = 0;
break;
case 'r':
buff[16 * i + 2 * j] = 0;
buff[16 * i + 2 * j + 1] = bright;
break;
case 'p':
buff[16 * i + 2 * j] = bright;
buff[16 * i + 2 * j + 1] = bright;
break;
default:
return -1;
}
}
else
{
buff[16 * i + 2 * j] = 0;
buff[16 * i + 2 * j + 1] = 0;
}
}
}
return 0;
}
void string_move_effect2buff(uint8_t buff1[128], uint8_t buff2[128], uint8_t output[128], char mode, uint8_t index)
{
switch (mode)
{
case 'l':
{
for (int i = 0; i < 8; i++)
{
if (i < 8 - index)
{
for (int j = 0; j < 8; j++)
{
output[2 * (8 * j + i)] = buff1[2 * (8 * j + i + index)];
output[2 * (8 * j + i) + 1] = buff1[2 * (8 * j + i + index) + 1];
}
}
else
{
for (int k = 0; k < 8; k++)
{
output[2 * (8 * k + i)] = buff2[2 * (8 * k + i - (8 - index))];
output[2 * (8 * k + i) + 1] = buff2[2 * (8 * k + i - (8 - index)) + 1];
}
}
}
}
break;
case 'r':
{
for (int i = 0; i < 8; i++)
{
if (i < index)
{
for (int j = 0; j < 8; j++)
{
output[2 * (8 * j + i)] = buff2[2 * (8 * j + i + (8 - index))];
output[2 * (8 * j + i) + 1] = buff2[2 * (8 * j + i + (8 - index)) + 1];
}
}
else
{
for (int k = 0; k < 8; k++)
{
output[2 * (8 * k + i)] = buff1[2 * (8 * k + i - index)];
output[2 * (8 * k + i) + 1] = buff1[2 * (8 * k + i - index) + 1];
}
}
}
}
break;
case 'u':
{
for (int i = 0; i < 64; i++)
{
if (i < 8 * (8 - index))
{
output[2 * i] = buff1[2 * (i + 8 * index)];
output[2 * i + 1] = buff1[2 * (i + 8 * index) + 1];
}
else
{
output[2 * i] = buff2[2 * (i - 8 * (8 - index))];
output[2 * i + 1] = buff2[2 * (i - 8 * (8 - index)) + 1];
}
}
}
break;
case 'd':
{
for (int i = 0; i < 64; i++)
{
if (i < 8 * index)
{
output[2 * i] = buff2[2 * (i + 8 * (8 - index))];
output[2 * i + 1] = buff2[2 * (i + 8 * (8 - index)) + 1];
}
else
{
output[2 * i] = buff1[2 * (i - 8 * index)];
output[2 * i + 1] = buff1[2 * (i - 8 * index) + 1];
}
}
}
break;
default:
break;
}
}
void graph_move_effect2buff(uint8_t graph[128], uint8_t output[128], char mode, uint8_t index)
{
switch (mode)
{
case 'l':
{
for (int i = 0; i < 8; i++)
{
if (i < 8 - index)
{
for (int j = 0; j < 8; j++)
{
output[2 * (8 * j + i)] = graph[2 * (8 * j + i + index)];
output[2 * (8 * j + i) + 1] = graph[2 * (8 * j + i + index) + 1];
}
}
else
{
for (int k = 0; k < 8; k++)
{
output[2 * (8 * k + i)] = graph[2 * (8 * k + i - (8 - index))];
output[2 * (8 * k + i) + 1] = graph[2 * (8 * k + i - (8 - index)) + 1];
}
}
}
}
break;
case 'r':
{
for (int i = 0; i < 8; i++)
{
if (i < index)
{
for (int j = 0; j < 8; j++)
{
output[2 * (8 * j + i)] = graph[2 * (8 * j + i + (8 - index))];
output[2 * (8 * j + i) + 1] = graph[2 * (8 * j + i + (8 - index)) + 1];
}
}
else
{
for (int k = 0; k < 8; k++)
{
output[2 * (8 * k + i)] = graph[2 * (8 * k + i - index)];
output[2 * (8 * k + i) + 1] = graph[2 * (8 * k + i - index) + 1];
}
}
}
}
break;
case 'u':
{
for (int i = 0; i < 64; i++)
{
if (i < 8 * (8 - index))
{
output[2 * i] = graph[2 * (i + 8 * index)];
output[2 * i + 1] = graph[2 * (i + 8 * index) + 1];
}
else
{
output[2 * i] = graph[2 * (i - 8 * (8 - index))];
output[2 * i + 1] = graph[2 * (i - 8 * (8 - index)) + 1];
}
}
}
break;
case 'd':
{
for (int i = 0; i < 64; i++)
{
if (i < 8 * index)
{
output[2 * i] = graph[2 * (i + 8 * (8 - index))];
output[2 * i + 1] = graph[2 * (i + 8 * (8 - index)) + 1];
}
else
{
output[2 * i] = graph[2 * (i - 8 * index)];
output[2 * i + 1] = graph[2 * (i - 8 * index) + 1];
}
}
}
break;
default:
break;
}
}