mirror of
https://github.com/badgeteam/mch2022-template-app.git
synced 2024-11-26 11:01:06 +00:00
160 lines
9.2 KiB
C
160 lines
9.2 KiB
C
#include "../include/driver_framebuffer.h"
|
|
const uint8_t roboto_Black_12pt7bBitmaps[] = {
|
|
0x00, 0xFF, 0xF3, 0xC0, 0xFF, 0xBB, 0x14, 0x29, 0xF9, 0x62, 0xDF, 0xCA,
|
|
0x14, 0x68, 0x11, 0xEC, 0xF3, 0xE1, 0xC1, 0xF3, 0xCD, 0xE1, 0x00, 0xE0,
|
|
0xB6, 0xB4, 0xE8, 0x10, 0x37, 0x29, 0x49, 0x07, 0x38, 0x36, 0x1B, 0x0F,
|
|
0x83, 0xB3, 0xDB, 0xBC, 0xDC, 0x7F, 0x80, 0xFF, 0x27, 0x4C, 0xCC, 0xCC,
|
|
0xCC, 0x46, 0x30, 0x4E, 0x23, 0x33, 0x33, 0x33, 0x26, 0xC0, 0x30, 0x4F,
|
|
0xCC, 0x79, 0x20, 0x30, 0x63, 0xF9, 0x83, 0x00, 0xFE, 0xF0, 0xF0, 0x19,
|
|
0x8C, 0x42, 0x31, 0x08, 0xC4, 0x00, 0x7B, 0x3C, 0xF3, 0xCF, 0x3C, 0xF3,
|
|
0x78, 0x3F, 0x33, 0x33, 0x33, 0x30, 0x7B, 0x3C, 0xC3, 0x18, 0xE7, 0x38,
|
|
0xFC, 0x7B, 0x30, 0xCE, 0x0C, 0x3C, 0xF3, 0x78, 0x18, 0xE3, 0x9E, 0xDB,
|
|
0xF1, 0x86, 0x18, 0xFF, 0x0C, 0x3E, 0x4C, 0x30, 0xF3, 0x78, 0x39, 0x8C,
|
|
0x3E, 0xCF, 0x3C, 0xF3, 0x78, 0xFE, 0x0C, 0x30, 0x61, 0x83, 0x0E, 0x18,
|
|
0x70, 0x7B, 0x3C, 0xDE, 0xCF, 0x3C, 0xF3, 0x78, 0x38, 0xC9, 0x9F, 0x36,
|
|
0x67, 0xC1, 0x86, 0x30, 0xF0, 0x3C, 0xF0, 0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x21 '!'
|
|
{ 4, 4, 4, 4, 0, -9 }, // 0x22 '"'
|
|
{ 6, 7, 9, 8, 0, -8 }, // 0x23 '#'
|
|
{ 14, 6, 11, 8, 1, -9 }, // 0x24 '$'
|
|
{ 23, 8, 9, 10, 1, -8 }, // 0x25 '%'
|
|
{ 32, 9, 9, 9, 0, -8 }, // 0x26 '&'
|
|
{ 43, 2, 4, 2, 0, -9 }, // 0x27 '''
|
|
{ 44, 4, 13, 5, 1, -9 }, // 0x28 '('
|
|
{ 51, 4, 13, 5, 0, -9 }, // 0x29 ')'
|
|
{ 58, 6, 6, 6, 0, -8 }, // 0x2A '*'
|
|
{ 63, 7, 5, 7, 0, -6 }, // 0x2B '+'
|
|
{ 68, 2, 4, 4, 1, -1 }, // 0x2C ','
|
|
{ 69, 4, 1, 6, 1, -4 }, // 0x2D '-'
|
|
{ 70, 2, 2, 4, 1, -1 }, // 0x2E '.'
|
|
{ 71, 5, 10, 5, 0, -8 }, // 0x2F '/'
|
|
{ 78, 6, 9, 8, 1, -8 }, // 0x30 '0'
|
|
{ 85, 4, 9, 8, 1, -8 }, // 0x31 '1'
|
|
{ 90, 6, 9, 8, 1, -8 }, // 0x32 '2'
|
|
{ 97, 6, 9, 8, 1, -8 }, // 0x33 '3'
|
|
{ 104, 6, 9, 8, 1, -8 }, // 0x34 '4'
|
|
{ 111, 6, 9, 8, 1, -8 }, // 0x35 '5'
|
|
{ 118, 6, 9, 8, 1, -8 }, // 0x36 '6'
|
|
{ 125, 7, 9, 8, 0, -8 }, // 0x37 '7'
|
|
{ 133, 6, 9, 8, 1, -8 }, // 0x38 '8'
|
|
{ 140, 7, 9, 8, 0, -8 }, // 0x39 '9'
|
|
{ 148, 2, 7, 4, 1, -6 }, // 0x3A ':'
|
|
{ 150, 2, 9, 4, 1, -6 }, // 0x3B ';'
|
|
{ 153, 6, 6, 7, 0, -6 }, // 0x3C '<'
|
|
{ 158, 6, 4, 8, 1, -5 }, // 0x3D '='
|
|
{ 161, 5, 6, 7, 1, -6 }, // 0x3E '>'
|
|
{ 165, 6, 9, 7, 0, -8 }, // 0x3F '?'
|
|
{ 172, 11, 12, 12, 0, -8 }, // 0x40 '@'
|
|
{ 189, 9, 9, 9, 0, -8 }, // 0x41 'A'
|
|
{ 200, 7, 9, 8, 1, -8 }, // 0x42 'B'
|
|
{ 208, 7, 9, 9, 1, -8 }, // 0x43 'C'
|
|
{ 216, 7, 9, 8, 1, -8 }, // 0x44 'D'
|
|
{ 224, 6, 9, 7, 1, -8 }, // 0x45 'E'
|
|
{ 231, 6, 9, 7, 1, -8 }, // 0x46 'F'
|
|
{ 238, 7, 9, 9, 1, -8 }, // 0x47 'G'
|
|
{ 246, 7, 9, 9, 1, -8 }, // 0x48 'H'
|
|
{ 254, 2, 9, 4, 1, -8 }, // 0x49 'I'
|
|
{ 257, 6, 9, 7, 0, -8 }, // 0x4A 'J'
|
|
{ 264, 7, 9, 8, 1, -8 }, // 0x4B 'K'
|
|
{ 272, 6, 9, 7, 1, -8 }, // 0x4C 'L'
|
|
{ 279, 10, 9, 11, 1, -8 }, // 0x4D 'M'
|
|
{ 291, 7, 9, 9, 1, -8 }, // 0x4E 'N'
|
|
{ 299, 9, 9, 9, 0, -8 }, // 0x4F 'O'
|
|
{ 310, 8, 9, 8, 0, -8 }, // 0x50 'P'
|
|
{ 319, 9, 11, 9, 0, -8 }, // 0x51 'Q'
|
|
{ 332, 8, 9, 8, 0, -8 }, // 0x52 'R'
|
|
{ 341, 8, 9, 8, 0, -8 }, // 0x53 'S'
|
|
{ 350, 8, 9, 8, 0, -8 }, // 0x54 'T'
|
|
{ 359, 7, 9, 9, 1, -8 }, // 0x55 'U'
|
|
{ 367, 9, 9, 9, 0, -8 }, // 0x56 'V'
|
|
{ 378, 11, 9, 11, 0, -8 }, // 0x57 'W'
|
|
{ 391, 8, 9, 8, 0, -8 }, // 0x58 'X'
|
|
{ 400, 8, 9, 8, 0, -8 }, // 0x59 'Y'
|
|
{ 409, 8, 9, 8, 0, -8 }, // 0x5A 'Z'
|
|
{ 418, 3, 13, 4, 1, -10 }, // 0x5B '['
|
|
{ 423, 6, 10, 6, 0, -8 }, // 0x5C '\'
|
|
{ 431, 3, 13, 4, 0, -10 }, // 0x5D ']'
|
|
{ 436, 6, 4, 6, 0, -8 }, // 0x5E '^'
|
|
{ 439, 6, 2, 6, 0, 1 }, // 0x5F '_'
|
|
{ 441, 4, 2, 4, 0, -9 }, // 0x60 '`'
|
|
{ 442, 7, 7, 7, 0, -6 }, // 0x61 'a'
|
|
{ 449, 7, 10, 7, 0, -9 }, // 0x62 'b'
|
|
{ 458, 7, 7, 7, 0, -6 }, // 0x63 'c'
|
|
{ 465, 7, 10, 7, 0, -9 }, // 0x64 'd'
|
|
{ 474, 7, 7, 7, 0, -6 }, // 0x65 'e'
|
|
{ 481, 5, 10, 5, 0, -9 }, // 0x66 'f'
|
|
{ 488, 7, 10, 7, 0, -6 }, // 0x67 'g'
|
|
{ 497, 7, 10, 7, 0, -9 }, // 0x68 'h'
|
|
{ 506, 2, 10, 4, 1, -9 }, // 0x69 'i'
|
|
{ 509, 4, 13, 4, -1, -9 }, // 0x6A 'j'
|
|
{ 516, 6, 10, 7, 1, -9 }, // 0x6B 'k'
|
|
{ 524, 2, 10, 4, 1, -9 }, // 0x6C 'l'
|
|
{ 527, 10, 7, 11, 0, -6 }, // 0x6D 'm'
|
|
{ 536, 7, 7, 7, 0, -6 }, // 0x6E 'n'
|
|
{ 543, 7, 7, 7, 0, -6 }, // 0x6F 'o'
|
|
{ 550, 7, 10, 7, 0, -6 }, // 0x70 'p'
|
|
{ 559, 7, 10, 7, 0, -6 }, // 0x71 'q'
|
|
{ 568, 4, 7, 5, 1, -6 }, // 0x72 'r'
|
|
{ 572, 6, 7, 7, 0, -6 }, // 0x73 's'
|
|
{ 578, 4, 9, 4, 0, -8 }, // 0x74 't'
|
|
{ 583, 7, 7, 7, 0, -6 }, // 0x75 'u'
|
|
{ 590, 7, 7, 7, 0, -6 }, // 0x76 'v'
|
|
{ 597, 9, 7, 9, 0, -6 }, // 0x77 'w'
|
|
{ 605, 7, 7, 7, 0, -6 }, // 0x78 'x'
|
|
{ 612, 7, 10, 7, 0, -6 }, // 0x79 'y'
|
|
{ 621, 6, 7, 7, 0, -6 }, // 0x7A 'z'
|
|
{ 627, 4, 12, 4, 0, -9 }, // 0x7B '{'
|
|
{ 633, 1, 11, 3, 1, -8 }, // 0x7C '|'
|
|
{ 635, 4, 12, 4, 0, -9 }, // 0x7D '}'
|
|
{ 641, 7, 3, 8, 0, -4 } }; // 0x7E '~'
|
|
|
|
const GFXfont roboto_Black_12pt7b = {
|
|
(uint8_t *)roboto_Black_12pt7bBitmaps,
|
|
(GFXglyph *)roboto_Black_12pt7bGlyphs,
|
|
0x20, 0x7E, 12 };//B
|
|
|
|
// Approx. 1316 bytes
|