mirror of
https://github.com/badgeteam/mch2022-template-app.git
synced 2025-01-08 07:15:37 +00:00
189 lines
11 KiB
C
189 lines
11 KiB
C
#include "../include/driver_framebuffer.h"
|
|
const uint8_t Exo2_Regular_16pt7bBitmaps[] = {
|
|
0x00, 0xFF, 0x98, 0xD9, 0x99, 0x18, 0x82, 0x10, 0x46, 0x3F, 0xF1, 0x10,
|
|
0x62, 0x08, 0x47, 0xFE, 0x23, 0x04, 0x41, 0x88, 0x31, 0x00, 0x08, 0x08,
|
|
0x08, 0x7F, 0xC8, 0xC8, 0xC8, 0xC8, 0x78, 0x1E, 0x13, 0x11, 0x11, 0x13,
|
|
0xFE, 0x10, 0x10, 0x78, 0x33, 0x21, 0x88, 0xC4, 0x23, 0x20, 0x8D, 0x82,
|
|
0x25, 0xE7, 0xA4, 0xC1, 0x91, 0x04, 0xC4, 0x21, 0x11, 0x84, 0xCC, 0x1E,
|
|
0x3F, 0x06, 0x00, 0x40, 0x04, 0x08, 0x60, 0x83, 0xFF, 0x60, 0x8C, 0x08,
|
|
0xC0, 0x8C, 0x08, 0xE3, 0xC7, 0xE7, 0xEA, 0x19, 0x98, 0x8C, 0x63, 0x10,
|
|
0x84, 0x31, 0x84, 0x21, 0x86, 0x08, 0x82, 0x08, 0x61, 0x08, 0x42, 0x18,
|
|
0x84, 0x23, 0x18, 0x88, 0x80, 0x10, 0x4D, 0xCC, 0x49, 0x20, 0x18, 0x18,
|
|
0x18, 0xFF, 0x18, 0x18, 0x18, 0xF7, 0xFC, 0xF0, 0x01, 0x80, 0x80, 0xC0,
|
|
0x40, 0x40, 0x20, 0x20, 0x10, 0x10, 0x08, 0x08, 0x04, 0x0C, 0x00, 0x3E,
|
|
0x31, 0x90, 0x58, 0x3C, 0x1E, 0x0F, 0x07, 0x83, 0xC1, 0xA0, 0x98, 0xC7,
|
|
0xC0, 0x3F, 0xC2, 0x10, 0x84, 0x21, 0x08, 0x42, 0x10, 0xFE, 0x87, 0x03,
|
|
0x03, 0x06, 0x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D0, 0x27,
|
|
0x38, 0xFC, 0x00, 0x03, 0x80, 0x38, 0xFE, 0x87, 0x83, 0x83, 0x83, 0x82,
|
|
0xFC, 0x86, 0x82, 0x82, 0x83, 0x83, 0x7F, 0xC0, 0xC0, 0xC0, 0xC0, 0x78,
|
|
0x1E, 0x03, 0x01, 0x01, 0x03, 0xFE, 0xFF, 0xC3, 0x00, 0xC0, 0x30, 0x0C,
|
|
0x03, 0x00, 0xC0, 0x30, 0x0C, 0x03, 0x00, 0xC0, 0x30, 0xC0, 0xF0, 0x3C,
|
|
0x0F, 0x03, 0xC0, 0xF0, 0x3C, 0x0F, 0x03, 0x40, 0x90, 0x27, 0x38, 0xFC,
|
|
0xC0, 0x68, 0x09, 0x83, 0x30, 0x62, 0x08, 0x63, 0x0C, 0x60, 0x88, 0x1B,
|
|
0x03, 0x60, 0x28, 0x07, 0x00, 0x83, 0x83, 0xC2, 0x82, 0xC2, 0x86, 0xC6,
|
|
0xC6, 0x46, 0xC6, 0x44, 0x44, 0x64, 0x4C, 0x64, 0x6C, 0x6C, 0x6C, 0x2C,
|
|
0x68, 0x28, 0x28, 0x38, 0x38, 0x60, 0xC4, 0x10, 0xC6, 0x08, 0x81, 0xB0,
|
|
0x1C, 0x06, 0xC0, 0xD8, 0x31, 0x86, 0x31, 0x83, 0x60, 0x30, 0xC0, 0xD8,
|
|
0x22, 0x18, 0xC4, 0x13, 0x06, 0x80, 0xE0, 0x30, 0x0C, 0x03, 0x00, 0xC0,
|
|
0x30, 0xFF, 0x03, 0x02, 0x06, 0x0C, 0x08, 0x18, 0x30, 0x60, 0x40, 0xC0,
|
|
0xFF, 0xF2, 0x49, 0x24, 0x92, 0x49, 0x24, 0xE0, 0xC0, 0x30, 0x08, 0x06,
|
|
0x01, 0x00, 0xC0, 0x20, 0x18, 0x04, 0x03, 0x00, 0x80, 0x20, 0x18, 0xE4,
|
|
0x92, 0x49, 0x24, 0x92, 0x49, 0xE0, 0x31, 0x4C, 0xA1, 0xFF, 0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0x3F, 0x63,
|
|
0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xE7, 0x7B, 0x03, 0x03, 0x03, 0x03, 0xDF,
|
|
0xCC, 0x30, 0xC3, 0x0C, 0x30, 0xC0, 0x7F, 0x82, 0x06, 0x07, 0xC0, 0xC0,
|
|
0x83, 0xFC, 0x30, 0xC3, 0x3F, 0x30, 0xC3, 0x0C, 0x30, 0xC3, 0x07, 0xC3,
|
|
0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC7, 0x79, 0xC1, 0xA0, 0xD8, 0x44,
|
|
0x63, 0x31, 0x90, 0x58, 0x38, 0x1C, 0x00, 0xC3, 0x85, 0x0A, 0x36, 0x28,
|
|
0xD9, 0xA2, 0x26, 0xC8, 0xD1, 0x63, 0x45, 0x07, 0x14, 0x1C, 0x70, 0x61,
|
|
0x91, 0x8C, 0x82, 0xC1, 0xC0, 0xB0, 0xC8, 0xC6, 0xC1, 0x80, 0xC1, 0xA0,
|
|
0xD8, 0x44, 0x63, 0x31, 0x90, 0x58, 0x38, 0x1C, 0x06, 0x02, 0x03, 0x03,
|
|
0x00, 0xFE, 0x0C, 0x30, 0x41, 0x06, 0x18, 0x60, 0xFE, 0x36, 0x44, 0x44,
|
|
0x4C, 0xC4, 0x44, 0x44, 0x46, 0x70, 0xFF, 0xFF, 0x80, 0xC6, 0x66, 0x66,
|
|
0x63, 0x36, 0x66, 0x66, 0x66, 0xC0, 0x73, 0x3C };
|
|
|
|
const GFXglyph Exo2_Regular_16pt7bGlyphs[] = {
|
|
{ 0, 1, 1, 4, 0, 0 }, // 0x20 ' '
|
|
{ 1, 1, 13, 5, 2, -12 }, // 0x21 '!'
|
|
{ 3, 4, 4, 6, 1, -11 }, // 0x22 '"'
|
|
{ 5, 11, 12, 12, 1, -11 }, // 0x23 '#'
|
|
{ 22, 8, 17, 10, 1, -14 }, // 0x24 '$'
|
|
{ 39, 14, 12, 16, 1, -11 }, // 0x25 '%'
|
|
{ 60, 12, 12, 14, 1, -11 }, // 0x26 '&'
|
|
{ 78, 2, 4, 4, 1, -11 }, // 0x27 '''
|
|
{ 79, 5, 17, 6, 1, -13 }, // 0x28 '('
|
|
{ 90, 5, 17, 6, 1, -13 }, // 0x29 ')'
|
|
{ 101, 6, 6, 8, 1, -11 }, // 0x2A '*'
|
|
{ 106, 8, 7, 10, 1, -8 }, // 0x2B '+'
|
|
{ 113, 2, 4, 4, 1, -1 }, // 0x2C ','
|
|
{ 114, 6, 1, 8, 1, -4 }, // 0x2D '-'
|
|
{ 115, 2, 2, 4, 1, -1 }, // 0x2E '.'
|
|
{ 116, 9, 13, 9, 0, -11 }, // 0x2F '/'
|
|
{ 131, 9, 12, 11, 1, -11 }, // 0x30 '0'
|
|
{ 145, 5, 12, 7, 0, -11 }, // 0x31 '1'
|
|
{ 153, 8, 12, 10, 1, -11 }, // 0x32 '2'
|
|
{ 165, 8, 12, 10, 1, -11 }, // 0x33 '3'
|
|
{ 177, 9, 12, 11, 1, -11 }, // 0x34 '4'
|
|
{ 191, 8, 12, 10, 1, -11 }, // 0x35 '5'
|
|
{ 203, 8, 12, 10, 1, -11 }, // 0x36 '6'
|
|
{ 215, 8, 12, 9, 1, -11 }, // 0x37 '7'
|
|
{ 227, 9, 12, 11, 1, -11 }, // 0x38 '8'
|
|
{ 241, 8, 12, 10, 1, -11 }, // 0x39 '9'
|
|
{ 253, 2, 8, 4, 1, -7 }, // 0x3A ':'
|
|
{ 255, 2, 10, 4, 1, -7 }, // 0x3B ';'
|
|
{ 258, 7, 7, 10, 1, -8 }, // 0x3C '<'
|
|
{ 265, 8, 5, 11, 1, -7 }, // 0x3D '='
|
|
{ 270, 8, 7, 10, 1, -8 }, // 0x3E '>'
|
|
{ 277, 7, 12, 9, 1, -11 }, // 0x3F '?'
|
|
{ 288, 11, 11, 13, 1, -9 }, // 0x40 '@'
|
|
{ 304, 11, 12, 11, 0, -11 }, // 0x41 'A'
|
|
{ 321, 8, 12, 11, 2, -11 }, // 0x42 'B'
|
|
{ 333, 9, 12, 10, 1, -11 }, // 0x43 'C'
|
|
{ 347, 9, 13, 12, 2, -12 }, // 0x44 'D'
|
|
{ 362, 8, 12, 10, 1, -11 }, // 0x45 'E'
|
|
{ 374, 7, 12, 10, 2, -11 }, // 0x46 'F'
|
|
{ 385, 9, 12, 11, 1, -11 }, // 0x47 'G'
|
|
{ 399, 8, 12, 12, 2, -11 }, // 0x48 'H'
|
|
{ 411, 1, 12, 5, 2, -11 }, // 0x49 'I'
|
|
{ 413, 4, 12, 6, 1, -11 }, // 0x4A 'J'
|
|
{ 419, 8, 12, 11, 2, -11 }, // 0x4B 'K'
|
|
{ 431, 7, 12, 9, 2, -11 }, // 0x4C 'L'
|
|
{ 442, 13, 12, 16, 1, -11 }, // 0x4D 'M'
|
|
{ 462, 9, 12, 13, 2, -11 }, // 0x4E 'N'
|
|
{ 476, 10, 12, 12, 1, -11 }, // 0x4F 'O'
|
|
{ 491, 8, 12, 11, 2, -11 }, // 0x50 'P'
|
|
{ 503, 10, 15, 12, 1, -11 }, // 0x51 'Q'
|
|
{ 522, 8, 12, 11, 2, -11 }, // 0x52 'R'
|
|
{ 534, 8, 12, 10, 1, -11 }, // 0x53 'S'
|
|
{ 546, 10, 12, 10, 0, -11 }, // 0x54 'T'
|
|
{ 561, 10, 12, 12, 1, -11 }, // 0x55 'U'
|
|
{ 576, 11, 12, 11, 0, -11 }, // 0x56 'V'
|
|
{ 593, 16, 12, 17, 1, -11 }, // 0x57 'W'
|
|
{ 617, 11, 12, 11, 0, -11 }, // 0x58 'X'
|
|
{ 634, 10, 12, 10, 0, -11 }, // 0x59 'Y'
|
|
{ 649, 8, 12, 10, 1, -11 }, // 0x5A 'Z'
|
|
{ 661, 3, 17, 6, 2, -13 }, // 0x5B '['
|
|
{ 668, 9, 13, 9, 0, -11 }, // 0x5C '\'
|
|
{ 683, 3, 17, 6, 1, -13 }, // 0x5D ']'
|
|
{ 690, 6, 4, 8, 1, -10 }, // 0x5E '^'
|
|
{ 693, 8, 1, 8, 0, 1 }, // 0x5F '_'
|
|
{ 694, 4, 3, 6, 1, -12 }, // 0x60 '`'
|
|
{ 696, 8, 9, 10, 1, -8 }, // 0x61 'a'
|
|
{ 705, 8, 13, 10, 1, -12 }, // 0x62 'b'
|
|
{ 718, 7, 9, 9, 1, -8 }, // 0x63 'c'
|
|
{ 726, 8, 13, 10, 1, -12 }, // 0x64 'd'
|
|
{ 739, 8, 9, 10, 1, -8 }, // 0x65 'e'
|
|
{ 748, 7, 12, 7, 0, -11 }, // 0x66 'f'
|
|
{ 759, 9, 13, 10, 1, -8 }, // 0x67 'g'
|
|
{ 774, 8, 13, 10, 1, -12 }, // 0x68 'h'
|
|
{ 787, 2, 12, 4, 1, -11 }, // 0x69 'i'
|
|
{ 790, 3, 15, 5, 0, -11 }, // 0x6A 'j'
|
|
{ 796, 8, 13, 9, 1, -12 }, // 0x6B 'k'
|
|
{ 809, 4, 13, 5, 1, -12 }, // 0x6C 'l'
|
|
{ 816, 13, 9, 16, 1, -8 }, // 0x6D 'm'
|
|
{ 831, 8, 9, 10, 1, -8 }, // 0x6E 'n'
|
|
{ 840, 8, 9, 10, 1, -8 }, // 0x6F 'o'
|
|
{ 849, 8, 13, 10, 1, -8 }, // 0x70 'p'
|
|
{ 862, 8, 13, 10, 1, -8 }, // 0x71 'q'
|
|
{ 875, 6, 9, 7, 1, -8 }, // 0x72 'r'
|
|
{ 882, 7, 9, 9, 1, -8 }, // 0x73 's'
|
|
{ 890, 6, 12, 7, 0, -11 }, // 0x74 't'
|
|
{ 899, 8, 9, 10, 1, -8 }, // 0x75 'u'
|
|
{ 908, 9, 9, 10, 0, -8 }, // 0x76 'v'
|
|
{ 919, 14, 9, 15, 0, -8 }, // 0x77 'w'
|
|
{ 935, 9, 9, 10, 0, -8 }, // 0x78 'x'
|
|
{ 946, 9, 13, 10, 0, -8 }, // 0x79 'y'
|
|
{ 961, 7, 9, 9, 1, -8 }, // 0x7A 'z'
|
|
{ 969, 4, 17, 6, 1, -13 }, // 0x7B '{'
|
|
{ 978, 1, 17, 4, 2, -13 }, // 0x7C '|'
|
|
{ 981, 4, 17, 6, 1, -13 }, // 0x7D '}'
|
|
{ 990, 7, 2, 9, 1, -5 } }; // 0x7E '~'
|
|
|
|
const GFXfont Exo2_Regular_16pt7b = {
|
|
(uint8_t *)Exo2_Regular_16pt7bBitmaps,
|
|
(GFXglyph *)Exo2_Regular_16pt7bGlyphs,
|
|
0x20, 0x7E, 16 };//B
|
|
|
|
// Approx. 1664 bytes
|