mirror of
https://github.com/badgeteam/mch2022-template-app.git
synced 2024-11-26 11:01:06 +00:00
137 lines
7.5 KiB
C
137 lines
7.5 KiB
C
#include "../include/driver_framebuffer.h"
|
|
const uint8_t roboto_9pt7bBitmaps[] = {
|
|
0x00, 0xFA, 0xFC, 0x52, 0xBE, 0xAF, 0xD2, 0x80, 0x4E, 0x98, 0x61, 0x9E,
|
|
0x40, 0xC3, 0x6D, 0x08, 0x5D, 0x51, 0xC0, 0x71, 0x25, 0x18, 0x57, 0x27,
|
|
0x40, 0xC0, 0x6A, 0xAA, 0x90, 0x89, 0x12, 0x4A, 0x50, 0x2D, 0x27, 0x21,
|
|
0x3E, 0x42, 0x00, 0x60, 0xE0, 0x80, 0x12, 0x22, 0x44, 0x88, 0xE9, 0x99,
|
|
0x99, 0xE0, 0x74, 0x92, 0x48, 0x72, 0x62, 0x22, 0x21, 0xE0, 0x72, 0x42,
|
|
0x60, 0xE5, 0xC0, 0x10, 0x8C, 0xA5, 0x7C, 0x40, 0xF8, 0xE1, 0x19, 0xE0,
|
|
0x68, 0xE9, 0x99, 0x60, 0xF8, 0x44, 0x22, 0x11, 0x00, 0xE9, 0x96, 0x99,
|
|
0xE0, 0x72, 0x62, 0x97, 0x8D, 0xC0, 0x88, 0x40, 0x60, 0x16, 0xE1, 0xF0,
|
|
0xF0, 0x86, 0x78, 0x79, 0x12, 0x20, 0x20, 0x3C, 0x42, 0x9A, 0xAA, 0xAA,
|
|
0xAA, 0xBE, 0xC0, 0x78, 0x10, 0x60, 0xA1, 0x47, 0xC8, 0xB1, 0x80, 0xF4,
|
|
0xA5, 0xE8, 0xC7, 0xC0, 0x74, 0x61, 0x08, 0x45, 0xC0, 0xF4, 0xE3, 0x18,
|
|
0xCF, 0xC0, 0xF8, 0x8F, 0x88, 0xF0, 0xF8, 0x8F, 0x88, 0x80, 0x74, 0x61,
|
|
0x78, 0xC5, 0xC0, 0x8C, 0x63, 0xF8, 0xC6, 0x20, 0xFE, 0x08, 0x42, 0x10,
|
|
0xC5, 0xC0, 0x9C, 0xA9, 0xCA, 0x4A, 0x20, 0x88, 0x88, 0x88, 0xF0, 0x87,
|
|
0x8F, 0x1E, 0x5A, 0xB6, 0x64, 0x80, 0x8E, 0x73, 0x59, 0xCE, 0x20, 0x74,
|
|
0x63, 0x18, 0xC5, 0xC0, 0xF4, 0x63, 0xE8, 0x42, 0x00, 0x74, 0x63, 0x18,
|
|
0xC5, 0xC1, 0xF4, 0x63, 0xE9, 0x4A, 0x20, 0x79, 0x24, 0x4E, 0x0F, 0x17,
|
|
0x80, 0xFC, 0x82, 0x08, 0x20, 0x82, 0x00, 0x86, 0x18, 0x61, 0x85, 0x27,
|
|
0x80, 0x85, 0x24, 0x92, 0x30, 0xC3, 0x00, 0x88, 0xAC, 0x95, 0x4A, 0xA5,
|
|
0x53, 0x10, 0x88, 0xC5, 0x23, 0x04, 0x31, 0x2C, 0x40, 0x85, 0x24, 0x8C,
|
|
0x20, 0x82, 0x00, 0xF8, 0x21, 0x08, 0x21, 0x0F, 0xC0, 0xEA, 0xAA, 0xB0,
|
|
0x84, 0x44, 0x22, 0x21, 0xD5, 0x55, 0x70, 0x66, 0x90, 0xF8, 0xD0, 0x74,
|
|
0x9D, 0x26, 0x80, 0x88, 0x8F, 0x99, 0x9F, 0x76, 0x61, 0x17, 0x00, 0x11,
|
|
0x1F, 0x99, 0x9F, 0x74, 0x7F, 0x07, 0x80, 0x69, 0x74, 0x92, 0xF9, 0x99,
|
|
0xF1, 0xE0, 0x88, 0x8F, 0x99, 0x99, 0xBE, 0xCA, 0xAA, 0x80, 0x88, 0x8B,
|
|
0xCC, 0xA9, 0xFF, 0xFF, 0x26, 0x4C, 0x99, 0x20, 0xF9, 0x99, 0x90, 0xF9,
|
|
0x99, 0xF0, 0xF9, 0x99, 0xF8, 0x80, 0xF9, 0x99, 0xF1, 0x10, 0xBA, 0x48,
|
|
0x72, 0x5D, 0x17, 0x00, 0x5D, 0x24, 0xC0, 0x99, 0x99, 0xF0, 0x8A, 0x94,
|
|
0xC2, 0x00, 0x9B, 0x5A, 0x5A, 0x24, 0x24, 0xDA, 0x88, 0xAD, 0x80, 0x8A,
|
|
0x94, 0xC2, 0x11, 0x00, 0xF0, 0x88, 0x8F, 0x80, 0x29, 0x28, 0x92, 0x44,
|
|
0xFF, 0x89, 0x22, 0x92, 0x50, 0xED, 0xC0 };
|
|
|
|
const GFXglyph roboto_9pt7bGlyphs[] = {
|
|
{ 0, 1, 1, 2, 0, 0 }, // 0x20 ' '
|
|
{ 1, 1, 7, 3, 1, -6 }, // 0x21 '!'
|
|
{ 2, 2, 3, 3, 1, -7 }, // 0x22 '"'
|
|
{ 3, 5, 7, 6, 1, -6 }, // 0x23 '#'
|
|
{ 8, 4, 9, 6, 1, -7 }, // 0x24 '$'
|
|
{ 13, 6, 7, 7, 1, -6 }, // 0x25 '%'
|
|
{ 19, 6, 7, 6, 0, -6 }, // 0x26 '&'
|
|
{ 25, 1, 2, 2, 0, -7 }, // 0x27 '''
|
|
{ 26, 2, 10, 3, 1, -7 }, // 0x28 '('
|
|
{ 29, 3, 10, 3, 0, -7 }, // 0x29 ')'
|
|
{ 33, 4, 4, 4, 0, -6 }, // 0x2A '*'
|
|
{ 35, 5, 5, 6, 0, -5 }, // 0x2B '+'
|
|
{ 39, 2, 2, 2, 0, 0 }, // 0x2C ','
|
|
{ 40, 3, 1, 3, 0, -2 }, // 0x2D '-'
|
|
{ 41, 1, 1, 3, 1, 0 }, // 0x2E '.'
|
|
{ 42, 4, 8, 4, 0, -6 }, // 0x2F '/'
|
|
{ 46, 4, 7, 6, 1, -6 }, // 0x30 '0'
|
|
{ 50, 3, 7, 6, 1, -6 }, // 0x31 '1'
|
|
{ 53, 5, 7, 6, 0, -6 }, // 0x32 '2'
|
|
{ 58, 5, 7, 6, 0, -6 }, // 0x33 '3'
|
|
{ 63, 5, 7, 6, 0, -6 }, // 0x34 '4'
|
|
{ 68, 4, 7, 6, 1, -6 }, // 0x35 '5'
|
|
{ 72, 4, 7, 6, 1, -6 }, // 0x36 '6'
|
|
{ 76, 5, 7, 6, 0, -6 }, // 0x37 '7'
|
|
{ 81, 4, 7, 6, 1, -6 }, // 0x38 '8'
|
|
{ 85, 5, 7, 6, 0, -6 }, // 0x39 '9'
|
|
{ 90, 1, 5, 2, 1, -4 }, // 0x3A ':'
|
|
{ 91, 2, 6, 2, 0, -4 }, // 0x3B ';'
|
|
{ 93, 4, 4, 5, 0, -4 }, // 0x3C '<'
|
|
{ 95, 4, 3, 5, 1, -4 }, // 0x3D '='
|
|
{ 97, 4, 4, 5, 1, -4 }, // 0x3E '>'
|
|
{ 99, 4, 7, 5, 0, -6 }, // 0x3F '?'
|
|
{ 103, 8, 9, 9, 1, -6 }, // 0x40 '@'
|
|
{ 112, 7, 7, 7, 0, -6 }, // 0x41 'A'
|
|
{ 119, 5, 7, 6, 1, -6 }, // 0x42 'B'
|
|
{ 124, 5, 7, 7, 1, -6 }, // 0x43 'C'
|
|
{ 129, 5, 7, 7, 1, -6 }, // 0x44 'D'
|
|
{ 134, 4, 7, 6, 1, -6 }, // 0x45 'E'
|
|
{ 138, 4, 7, 6, 1, -6 }, // 0x46 'F'
|
|
{ 142, 5, 7, 7, 1, -6 }, // 0x47 'G'
|
|
{ 147, 5, 7, 7, 1, -6 }, // 0x48 'H'
|
|
{ 152, 1, 7, 3, 1, -6 }, // 0x49 'I'
|
|
{ 153, 5, 7, 6, 0, -6 }, // 0x4A 'J'
|
|
{ 158, 5, 7, 6, 1, -6 }, // 0x4B 'K'
|
|
{ 163, 4, 7, 5, 1, -6 }, // 0x4C 'L'
|
|
{ 167, 7, 7, 9, 1, -6 }, // 0x4D 'M'
|
|
{ 174, 5, 7, 7, 1, -6 }, // 0x4E 'N'
|
|
{ 179, 5, 7, 7, 1, -6 }, // 0x4F 'O'
|
|
{ 184, 5, 7, 6, 1, -6 }, // 0x50 'P'
|
|
{ 189, 5, 8, 7, 1, -6 }, // 0x51 'Q'
|
|
{ 194, 5, 7, 6, 1, -6 }, // 0x52 'R'
|
|
{ 199, 6, 7, 6, 0, -6 }, // 0x53 'S'
|
|
{ 205, 6, 7, 6, 0, -6 }, // 0x54 'T'
|
|
{ 211, 6, 7, 6, 0, -6 }, // 0x55 'U'
|
|
{ 217, 6, 7, 6, 0, -6 }, // 0x56 'V'
|
|
{ 223, 9, 7, 9, 0, -6 }, // 0x57 'W'
|
|
{ 231, 6, 7, 6, 0, -6 }, // 0x58 'X'
|
|
{ 237, 6, 7, 6, 0, -6 }, // 0x59 'Y'
|
|
{ 243, 6, 7, 6, 0, -6 }, // 0x5A 'Z'
|
|
{ 249, 2, 10, 3, 1, -7 }, // 0x5B '['
|
|
{ 252, 4, 8, 4, 0, -6 }, // 0x5C '\'
|
|
{ 256, 2, 10, 3, 0, -7 }, // 0x5D ']'
|
|
{ 259, 4, 3, 4, 0, -6 }, // 0x5E '^'
|
|
{ 261, 5, 1, 5, 0, 1 }, // 0x5F '_'
|
|
{ 262, 2, 2, 3, 0, -7 }, // 0x60 '`'
|
|
{ 263, 5, 5, 5, 0, -4 }, // 0x61 'a'
|
|
{ 267, 4, 8, 6, 1, -7 }, // 0x62 'b'
|
|
{ 271, 5, 5, 5, 0, -4 }, // 0x63 'c'
|
|
{ 275, 4, 8, 6, 1, -7 }, // 0x64 'd'
|
|
{ 279, 5, 5, 5, 0, -4 }, // 0x65 'e'
|
|
{ 283, 3, 8, 3, 0, -7 }, // 0x66 'f'
|
|
{ 286, 4, 7, 6, 1, -4 }, // 0x67 'g'
|
|
{ 290, 4, 8, 6, 1, -7 }, // 0x68 'h'
|
|
{ 294, 1, 7, 2, 1, -6 }, // 0x69 'i'
|
|
{ 295, 2, 9, 2, 0, -6 }, // 0x6A 'j'
|
|
{ 298, 4, 8, 5, 1, -7 }, // 0x6B 'k'
|
|
{ 302, 1, 8, 2, 1, -7 }, // 0x6C 'l'
|
|
{ 303, 7, 5, 9, 1, -4 }, // 0x6D 'm'
|
|
{ 308, 4, 5, 6, 1, -4 }, // 0x6E 'n'
|
|
{ 311, 4, 5, 6, 1, -4 }, // 0x6F 'o'
|
|
{ 314, 4, 7, 6, 1, -4 }, // 0x70 'p'
|
|
{ 318, 4, 7, 6, 1, -4 }, // 0x71 'q'
|
|
{ 322, 3, 5, 3, 0, -4 }, // 0x72 'r'
|
|
{ 324, 5, 5, 5, 0, -4 }, // 0x73 's'
|
|
{ 328, 3, 6, 3, 0, -5 }, // 0x74 't'
|
|
{ 331, 4, 5, 6, 1, -4 }, // 0x75 'u'
|
|
{ 334, 5, 5, 5, 0, -4 }, // 0x76 'v'
|
|
{ 338, 8, 5, 8, 0, -4 }, // 0x77 'w'
|
|
{ 343, 5, 5, 5, 0, -4 }, // 0x78 'x'
|
|
{ 347, 5, 7, 5, 0, -4 }, // 0x79 'y'
|
|
{ 352, 5, 5, 5, 0, -4 }, // 0x7A 'z'
|
|
{ 356, 3, 10, 3, 0, -7 }, // 0x7B '{'
|
|
{ 360, 1, 8, 2, 1, -6 }, // 0x7C '|'
|
|
{ 361, 3, 10, 3, 0, -7 }, // 0x7D '}'
|
|
{ 365, 5, 2, 7, 1, -3 } }; // 0x7E '~'
|
|
|
|
const GFXfont roboto_9pt7b = {
|
|
(uint8_t *)roboto_9pt7bBitmaps,
|
|
(GFXglyph *)roboto_9pt7bGlyphs,
|
|
0x20, 0x7E, 9 };//B
|
|
|
|
// Approx. 1039 bytes
|