mirror of
https://github.com/badgeteam/mch2022-template-app.git
synced 2024-11-26 11:01:06 +00:00
195 lines
12 KiB
C
195 lines
12 KiB
C
#include "../include/driver_framebuffer.h"
|
|
const uint8_t Exo2_SemiBold_16pt7bBitmaps[] = {
|
|
0x00, 0xFF, 0xFE, 0xDA, 0x01, 0xB0, 0xDE, 0xB5, 0xA0, 0x18, 0x83, 0x30,
|
|
0x46, 0x3F, 0xFF, 0xFE, 0x63, 0x0C, 0x47, 0xFE, 0xFF, 0xC4, 0x61, 0x8C,
|
|
0x31, 0x00, 0x08, 0x08, 0x08, 0x7F, 0xFF, 0xC8, 0xC8, 0xE8, 0x7C, 0x3F,
|
|
0x17, 0x13, 0x13, 0xFF, 0xFE, 0x10, 0x10, 0x78, 0x31, 0xF0, 0xC2, 0x31,
|
|
0x04, 0x64, 0x08, 0xD8, 0x1F, 0x2F, 0x9E, 0x9F, 0x03, 0x22, 0x04, 0xC6,
|
|
0x18, 0x88, 0x61, 0x10, 0x83, 0xE0, 0x3F, 0x07, 0xF0, 0xE0, 0x0E, 0x0C,
|
|
0x60, 0xC7, 0xFF, 0x7F, 0xFE, 0x0C, 0xC0, 0xCC, 0x0C, 0xE1, 0xCF, 0xFF,
|
|
0x7C, 0xF0, 0xFF, 0x19, 0x98, 0xCC, 0x63, 0x18, 0xC6, 0x31, 0x8C, 0x31,
|
|
0x86, 0x08, 0xC0, 0xC3, 0x06, 0x18, 0x61, 0xC3, 0x0C, 0x31, 0xC6, 0x18,
|
|
0x63, 0x18, 0xC0, 0x32, 0x5D, 0xCC, 0x79, 0x20, 0x18, 0x18, 0x18, 0xFF,
|
|
0xFF, 0x18, 0x18, 0x18, 0xF5, 0xC0, 0xFF, 0xF0, 0xF0, 0x01, 0x80, 0x80,
|
|
0xC0, 0x40, 0x60, 0x20, 0x30, 0x10, 0x18, 0x18, 0x0C, 0x0C, 0x0E, 0x00,
|
|
0x3E, 0x3F, 0xB8, 0xF8, 0x3C, 0x1E, 0x0F, 0x07, 0x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36, 0x63, 0x6D, 0x86, 0xDB, 0x0D, 0x16, 0x1E, 0x3C, 0x1C, 0x70,
|
|
0xE1, 0x9C, 0xC3, 0x30, 0x78, 0x1E, 0x0F, 0xC3, 0x31, 0x8E, 0xE1, 0xC0,
|
|
0xE1, 0xD8, 0x66, 0x39, 0xCC, 0x33, 0x0C, 0xC1, 0xE0, 0x78, 0x1C, 0x03,
|
|
0x01, 0x80, 0xC0, 0xFE, 0xFE, 0x0E, 0x1C, 0x38, 0x70, 0x60, 0xFF, 0xFF,
|
|
0x37, 0x66, 0x66, 0x6C, 0xC6, 0x66, 0x66, 0x67, 0x30, 0xFF, 0xFF, 0x80,
|
|
0xCE, 0x66, 0x66, 0x63, 0x36, 0x66, 0x66, 0x6E, 0xC0, 0x63, 0xFE, 0x38 };
|
|
|
|
const GFXglyph Exo2_SemiBold_16pt7bGlyphs[] = {
|
|
{ 0, 1, 1, 4, 0, 0 }, // 0x20 ' '
|
|
{ 1, 3, 12, 5, 1, -11 }, // 0x21 '!'
|
|
{ 6, 5, 4, 7, 1, -11 }, // 0x22 '"'
|
|
{ 9, 11, 12, 13, 1, -11 }, // 0x23 '#'
|
|
{ 26, 8, 17, 10, 1, -14 }, // 0x24 '$'
|
|
{ 43, 15, 12, 16, 1, -11 }, // 0x25 '%'
|
|
{ 66, 12, 13, 14, 1, -12 }, // 0x26 '&'
|
|
{ 86, 2, 4, 4, 1, -11 }, // 0x27 '''
|
|
{ 87, 5, 17, 7, 1, -13 }, // 0x28 '('
|
|
{ 98, 6, 17, 7, 0, -13 }, // 0x29 ')'
|
|
{ 111, 6, 6, 8, 1, -11 }, // 0x2A '*'
|
|
{ 116, 8, 8, 10, 1, -9 }, // 0x2B '+'
|
|
{ 124, 2, 5, 4, 1, -1 }, // 0x2C ','
|
|
{ 126, 6, 2, 8, 1, -5 }, // 0x2D '-'
|
|
{ 128, 2, 2, 4, 1, -1 }, // 0x2E '.'
|
|
{ 129, 9, 13, 10, 0, -11 }, // 0x2F '/'
|
|
{ 144, 9, 12, 11, 1, -11 }, // 0x30 '0'
|
|
{ 158, 6, 12, 7, 0, -11 }, // 0x31 '1'
|
|
{ 167, 8, 12, 10, 1, -11 }, // 0x32 '2'
|
|
{ 179, 8, 12, 10, 1, -11 }, // 0x33 '3'
|
|
{ 191, 10, 12, 11, 1, -11 }, // 0x34 '4'
|
|
{ 206, 8, 12, 10, 1, -11 }, // 0x35 '5'
|
|
{ 218, 9, 12, 10, 1, -11 }, // 0x36 '6'
|
|
{ 232, 8, 12, 9, 1, -11 }, // 0x37 '7'
|
|
{ 244, 9, 13, 11, 1, -12 }, // 0x38 '8'
|
|
{ 259, 8, 12, 10, 1, -11 }, // 0x39 '9'
|
|
{ 271, 2, 8, 5, 1, -7 }, // 0x3A ':'
|
|
{ 273, 2, 11, 5, 1, -7 }, // 0x3B ';'
|
|
{ 276, 7, 7, 9, 1, -8 }, // 0x3C '<'
|
|
{ 283, 8, 6, 10, 1, -8 }, // 0x3D '='
|
|
{ 289, 8, 7, 9, 1, -8 }, // 0x3E '>'
|
|
{ 296, 8, 13, 9, 1, -12 }, // 0x3F '?'
|
|
{ 309, 11, 12, 13, 1, -10 }, // 0x40 '@'
|
|
{ 326, 11, 12, 11, 0, -11 }, // 0x41 'A'
|
|
{ 343, 9, 13, 11, 1, -12 }, // 0x42 'B'
|
|
{ 358, 9, 12, 10, 1, -11 }, // 0x43 'C'
|
|
{ 372, 10, 12, 12, 1, -11 }, // 0x44 'D'
|
|
{ 387, 8, 12, 10, 1, -11 }, // 0x45 'E'
|
|
{ 399, 8, 12, 10, 1, -11 }, // 0x46 'F'
|
|
{ 411, 9, 12, 11, 1, -11 }, // 0x47 'G'
|
|
{ 425, 10, 12, 12, 1, -11 }, // 0x48 'H'
|
|
{ 440, 3, 12, 5, 1, -11 }, // 0x49 'I'
|
|
{ 445, 5, 12, 6, 0, -11 }, // 0x4A 'J'
|
|
{ 453, 10, 12, 11, 1, -11 }, // 0x4B 'K'
|
|
{ 468, 8, 12, 9, 1, -11 }, // 0x4C 'L'
|
|
{ 480, 14, 12, 16, 1, -11 }, // 0x4D 'M'
|
|
{ 501, 10, 12, 13, 1, -11 }, // 0x4E 'N'
|
|
{ 516, 10, 12, 12, 1, -11 }, // 0x4F 'O'
|
|
{ 531, 9, 13, 11, 1, -12 }, // 0x50 'P'
|
|
{ 546, 10, 16, 12, 1, -11 }, // 0x51 'Q'
|
|
{ 566, 10, 13, 11, 1, -12 }, // 0x52 'R'
|
|
{ 583, 8, 12, 10, 1, -11 }, // 0x53 'S'
|
|
{ 595, 10, 12, 11, 0, -11 }, // 0x54 'T'
|
|
{ 610, 10, 12, 12, 1, -11 }, // 0x55 'U'
|
|
{ 625, 11, 12, 11, 0, -11 }, // 0x56 'V'
|
|
{ 642, 16, 12, 17, 1, -11 }, // 0x57 'W'
|
|
{ 666, 11, 12, 11, 0, -11 }, // 0x58 'X'
|
|
{ 683, 11, 12, 11, 0, -11 }, // 0x59 'Y'
|
|
{ 700, 9, 12, 10, 1, -11 }, // 0x5A 'Z'
|
|
{ 714, 4, 17, 6, 1, -13 }, // 0x5B '['
|
|
{ 723, 9, 13, 10, 0, -11 }, // 0x5C '\'
|
|
{ 738, 4, 17, 6, 1, -13 }, // 0x5D ']'
|
|
{ 747, 7, 4, 8, 1, -10 }, // 0x5E '^'
|
|
{ 751, 8, 2, 8, 0, 1 }, // 0x5F '_'
|
|
{ 753, 4, 3, 6, 1, -12 }, // 0x60 '`'
|
|
{ 755, 8, 9, 10, 1, -8 }, // 0x61 'a'
|
|
{ 764, 9, 13, 10, 1, -12 }, // 0x62 'b'
|
|
{ 779, 7, 9, 9, 1, -8 }, // 0x63 'c'
|
|
{ 787, 8, 13, 11, 1, -12 }, // 0x64 'd'
|
|
{ 800, 8, 9, 10, 1, -8 }, // 0x65 'e'
|
|
{ 809, 7, 13, 7, 0, -12 }, // 0x66 'f'
|
|
{ 821, 9, 12, 10, 1, -8 }, // 0x67 'g'
|
|
{ 835, 8, 13, 11, 1, -12 }, // 0x68 'h'
|
|
{ 848, 3, 12, 5, 1, -11 }, // 0x69 'i'
|
|
{ 853, 4, 16, 5, 0, -12 }, // 0x6A 'j'
|
|
{ 861, 8, 13, 10, 1, -12 }, // 0x6B 'k'
|
|
{ 874, 4, 13, 6, 1, -12 }, // 0x6C 'l'
|
|
{ 881, 14, 9, 16, 1, -8 }, // 0x6D 'm'
|
|
{ 897, 8, 9, 11, 1, -8 }, // 0x6E 'n'
|
|
{ 906, 9, 9, 10, 1, -8 }, // 0x6F 'o'
|
|
{ 917, 9, 12, 11, 1, -8 }, // 0x70 'p'
|
|
{ 931, 8, 12, 10, 1, -8 }, // 0x71 'q'
|
|
{ 943, 6, 9, 7, 1, -8 }, // 0x72 'r'
|
|
{ 950, 8, 9, 9, 1, -8 }, // 0x73 's'
|
|
{ 959, 7, 12, 7, 0, -11 }, // 0x74 't'
|
|
{ 970, 8, 9, 10, 1, -8 }, // 0x75 'u'
|
|
{ 979, 10, 9, 10, 0, -8 }, // 0x76 'v'
|
|
{ 991, 15, 9, 15, 0, -8 }, // 0x77 'w'
|
|
{ 1008, 10, 9, 10, 0, -8 }, // 0x78 'x'
|
|
{ 1020, 10, 12, 10, 0, -8 }, // 0x79 'y'
|
|
{ 1035, 8, 9, 9, 1, -8 }, // 0x7A 'z'
|
|
{ 1044, 4, 17, 6, 1, -13 }, // 0x7B '{'
|
|
{ 1053, 1, 17, 5, 2, -13 }, // 0x7C '|'
|
|
{ 1056, 4, 17, 6, 1, -13 }, // 0x7D '}'
|
|
{ 1065, 7, 3, 9, 1, -6 } }; // 0x7E '~'
|
|
|
|
const GFXfont Exo2_SemiBold_16pt7b = {
|
|
(uint8_t *)Exo2_SemiBold_16pt7bBitmaps,
|
|
(GFXglyph *)Exo2_SemiBold_16pt7bGlyphs,
|
|
0x20, 0x7E, 16 };//B
|
|
|
|
// Approx. 1740 bytes
|