Skip to content

Commit

Permalink
Added examples for Inkplate 5
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoric committed Aug 8, 2023
1 parent 5d0bfcf commit 240f8ad
Show file tree
Hide file tree
Showing 14 changed files with 4,666 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
// Created by http://oleddisplay.squix.ch/ Consider a donation
// In case of problems make sure that you are using the font file with the correct version!
const uint8_t Open_Sans_SemiBold_16Bitmaps[] PROGMEM = {

// Bitmap Data:
0x00, // ' '
0xDB, 0x6D, 0xB6, 0x03, 0x60, // '!'
0xDB, 0x6D, 0xB6, // '"'
0x09, 0x03, 0x20, 0x6C, 0x3F, 0xE1, 0x20, 0x24, 0x04, 0x87, 0xFC, 0x36, 0x04, 0xC0, 0x90, 0x12, 0x00, // '#'
0x10, 0x10, 0x7C, 0xFE, 0xD0, 0xD0, 0x78, 0x3C, 0x16, 0x96, 0xFE, 0xFC, 0x10, 0x10, // '$'
0x70, 0xC6, 0x84, 0x26, 0x61, 0x32, 0x09, 0xB0, 0x69, 0x71, 0xD2, 0xC1, 0xB2, 0x09, 0x90, 0xCC, 0x84, 0x2C,
0x61, 0xC0, // '%'
0x3C, 0x07, 0xE0, 0x66, 0x06, 0x60, 0x6C, 0x03, 0x80, 0x78, 0xCC, 0xCC, 0xC7, 0x8C, 0x38, 0xFF, 0x87, 0xCC, // '&'
0xDB, 0x60, // '''
0x23, 0x11, 0x8C, 0x42, 0x10, 0x84, 0x31, 0x84, 0x30, 0x80, // '('
0x43, 0x08, 0x63, 0x08, 0x42, 0x10, 0x8C, 0x62, 0x31, 0x00, // ')'
0x10, 0x10, 0xD6, 0xFE, 0x38, 0x6C, 0x44, // '*'
0x10, 0x10, 0x10, 0xFE, 0x10, 0x10, 0x10, // '+'
0x66, 0x44, // ','
0xEE, // '-'
0xD8, // '.'
0x0C, 0x10, 0x60, 0xC1, 0x06, 0x0C, 0x10, 0x60, 0xC1, 0x06, 0x00, // '/'
0x38, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0x38, // '0'
0x18, 0xEF, 0x96, 0x18, 0x61, 0x86, 0x18, 0x61, 0x86, // '1'
0x7C, 0xFE, 0xC6, 0x06, 0x06, 0x0C, 0x08, 0x10, 0x20, 0xC0, 0xFE, 0xFE, // '2'
0x7C, 0xFE, 0x86, 0x06, 0x04, 0x78, 0x7C, 0x06, 0x06, 0x06, 0xFE, 0xF8, // '3'
0x06, 0x03, 0x80, 0xE0, 0x78, 0x16, 0x0D, 0x86, 0x61, 0x18, 0xFF, 0xBF, 0xE0, 0x60, 0x18, // '4'
0x7C, 0xFC, 0xC0, 0xC0, 0xFC, 0xFE, 0x06, 0x06, 0x06, 0x06, 0xFC, 0xF8, // '5'
0x1E, 0x7E, 0x60, 0xC0, 0xFC, 0xFE, 0xC6, 0xC2, 0xC2, 0xC6, 0x7E, 0x3C, // '6'
0xFE, 0xFE, 0x06, 0x04, 0x0C, 0x0C, 0x18, 0x18, 0x10, 0x30, 0x30, 0x60, // '7'
0x7C, 0xFE, 0xC6, 0xC6, 0x64, 0x38, 0x7C, 0xC6, 0x82, 0xC6, 0xFE, 0x7C, // '8'
0x78, 0xFC, 0xC6, 0xC6, 0x86, 0xC6, 0xFE, 0x7E, 0x06, 0x0C, 0xFC, 0xF0, // '9'
0xD8, 0x00, 0x06, 0xC0, // ':'
0x66, 0x00, 0x00, 0x06, 0x64, 0x40, // ';'
0x02, 0x0E, 0x38, 0xE0, 0xC0, 0x38, 0x0E, 0x02, // '<'
0xFE, 0x00, 0x00, 0x00, 0xFE, // '='
0x80, 0xE0, 0x38, 0x0E, 0x06, 0x38, 0xE0, 0x80, // '>'
0x78, 0xFC, 0x06, 0x06, 0x0C, 0x18, 0x30, 0x30, 0x00, 0x00, 0x30, 0x30, // '?'
0x0F, 0x81, 0xC6, 0x18, 0x08, 0x9F, 0x6D, 0x99, 0x4C, 0xCA, 0x46, 0x52, 0x32, 0x99, 0xB6, 0x77, 0x10, 0x00,
0x61, 0x01, 0xF8, 0x00, // '@'
0x0E, 0x00, 0xE0, 0x0A, 0x01, 0xB0, 0x1B, 0x03, 0x18, 0x31, 0x83, 0xF8, 0x7F, 0xC6, 0x0C, 0x60, 0xCC, 0x06, // 'A'
0xFC, 0x7F, 0x21, 0xD0, 0x68, 0x67, 0xF3, 0xF9, 0x06, 0x83, 0x41, 0xBF, 0xDF, 0x80, // 'B'
0x1F, 0x3F, 0x98, 0x5C, 0x0C, 0x06, 0x03, 0x01, 0x80, 0xC0, 0x30, 0x1F, 0xC3, 0xE0, // 'C'
0xFC, 0x3F, 0x88, 0x72, 0x0E, 0x81, 0xA0, 0x68, 0x1A, 0x06, 0x83, 0xA1, 0xCF, 0xE3, 0xF0, // 'D'
0xFD, 0xFA, 0x04, 0x08, 0x1F, 0xBF, 0x40, 0x81, 0x03, 0xF7, 0xE0, // 'E'
0xFD, 0xFA, 0x04, 0x08, 0x1F, 0xBF, 0x40, 0x81, 0x02, 0x04, 0x00, // 'F'
0x1F, 0x87, 0xF1, 0xC0, 0x70, 0x0C, 0x01, 0x80, 0x31, 0xF6, 0x3E, 0xE0, 0xCE, 0x19, 0xFF, 0x0F, 0xC0, // 'G'
0x81, 0xA0, 0x68, 0x1A, 0x06, 0x81, 0xBF, 0xEF, 0xFA, 0x06, 0x81, 0xA0, 0x68, 0x1A, 0x06, // 'H'
0xAA, 0xAA, 0xAA, // 'I'
0x10, 0x84, 0x21, 0x08, 0x42, 0x10, 0x84, 0x63, 0x7B, 0x80, // 'J'
0xC3, 0x30, 0xCC, 0x63, 0x30, 0xD8, 0x36, 0x0F, 0x83, 0x30, 0xC6, 0x31, 0x8C, 0x33, 0x06, // 'K'
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xFE, 0xFE, // 'L'
0xC0, 0x6E, 0x0E, 0xE0, 0xEA, 0x0A, 0xB1, 0xAB, 0x12, 0x91, 0x29, 0xB2, 0x9A, 0x28, 0xE2, 0x8E, 0x28, 0xC2, // 'M'
0xC0, 0xB8, 0x2E, 0x0A, 0xC2, 0xB8, 0xA6, 0x28, 0xCA, 0x3A, 0x86, 0xA0, 0xE8, 0x3A, 0x06, // 'N'
0x1F, 0x07, 0xFC, 0x60, 0xCE, 0x06, 0xC0, 0x6C, 0x06, 0xC0, 0x6C, 0x06, 0xE0, 0x66, 0x0C, 0x7F, 0xC1, 0xF0, // 'O'
0xF8, 0xFE, 0x86, 0x86, 0x86, 0x86, 0xFC, 0xF8, 0x80, 0x80, 0x80, 0x80, // 'P'
0x1F, 0x07, 0xFC, 0x60, 0xCE, 0x06, 0xC0, 0x6C, 0x06, 0xC0, 0x6C, 0x06, 0xE0, 0x66, 0x0C, 0x7F, 0x81, 0xF0,
0x03, 0x80, 0x18, 0x00, 0xC0, // 'Q'
0xFC, 0x3F, 0x8C, 0x73, 0x0C, 0xC3, 0x31, 0xCF, 0xE3, 0xF0, 0xCC, 0x31, 0x8C, 0x33, 0x0E, // 'R'
0x7C, 0xFE, 0xC2, 0xC0, 0xE0, 0x78, 0x1C, 0x06, 0x06, 0x86, 0xFE, 0xFC, // 'S'
0xFF, 0xBF, 0xE0, 0x80, 0x20, 0x08, 0x02, 0x00, 0x80, 0x20, 0x08, 0x02, 0x00, 0x80, 0x20, // 'T'
0xC0, 0xD8, 0x1B, 0x03, 0x60, 0x6C, 0x0D, 0x81, 0xB0, 0x36, 0x06, 0xC0, 0xCC, 0x31, 0xFE, 0x0F, 0x00, // 'U'
0xC0, 0xD8, 0x11, 0x86, 0x30, 0xC6, 0x10, 0x66, 0x0C, 0xC1, 0x90, 0x1E, 0x03, 0xC0, 0x70, 0x06, 0x00, // 'V'
0xC3, 0x86, 0xC3, 0x86, 0x63, 0x8C, 0x62, 0x8C, 0x66, 0xCC, 0x66, 0xCC, 0x24, 0xC8, 0x34, 0x58, 0x3C, 0x78,
0x3C, 0x78, 0x18, 0x30, 0x18, 0x30, // 'W'
0x61, 0x8C, 0x30, 0xCC, 0x19, 0x81, 0xE0, 0x18, 0x07, 0x80, 0xF0, 0x33, 0x06, 0x61, 0x86, 0x60, 0x60, // 'X'
0xC1, 0x98, 0xC6, 0x30, 0xD8, 0x36, 0x07, 0x01, 0xC0, 0x20, 0x08, 0x02, 0x00, 0x80, 0x20, // 'Y'
0xFE, 0x7F, 0x01, 0x81, 0x81, 0x80, 0xC0, 0xC0, 0xC0, 0x60, 0x60, 0x3F, 0xDF, 0xE0, // 'Z'
0xF6, 0x31, 0x8C, 0x63, 0x18, 0xC6, 0x31, 0x8C, 0x63, 0xC0, // '['
0xC0, 0x81, 0x83, 0x02, 0x06, 0x0C, 0x08, 0x18, 0x30, 0x20, 0x60, // '\'
0xF1, 0x8C, 0x63, 0x18, 0xC6, 0x31, 0x8C, 0x63, 0x1B, 0xC0, // ']'
0x08, 0x07, 0x01, 0x40, 0x98, 0x22, 0x10, 0xCC, 0x10, // '^'
0xFE, // '_'
0xC4, 0x20, // '`'
0x7C, 0x7E, 0x06, 0x06, 0x7E, 0xC6, 0xC6, 0xFE, 0x76, // 'a'
0xC0, 0x60, 0x30, 0x18, 0x0D, 0xE7, 0xF3, 0x8D, 0x86, 0xC3, 0x61, 0xB8, 0xDF, 0xCD, 0xE0, // 'b'
0x3C, 0xFB, 0x06, 0x0C, 0x18, 0x30, 0x3E, 0x3C, // 'c'
0x03, 0x01, 0x80, 0xC0, 0x67, 0xB3, 0xFB, 0x1D, 0x86, 0xC3, 0x61, 0xB1, 0xDF, 0xE7, 0xB0, // 'd'
0x3C, 0x7E, 0xC6, 0xFE, 0xFE, 0xC0, 0xC0, 0x7E, 0x3C, // 'e'
0x1E, 0x3C, 0x30, 0x30, 0x7C, 0xFC, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, // 'f'
0x3F, 0x99, 0x86, 0x31, 0x8C, 0x62, 0x0F, 0x06, 0x01, 0xFC, 0x7F, 0x30, 0x6C, 0x1B, 0x0C, 0x7E, 0x00, //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19, 0x1C, 0x46, 0x53, 0x19, 0x4C, 0x6D, 0xB0, 0xB6, 0x83, 0x8E, 0x0E, 0x38, 0x38, 0xE0, // 'w'
0x63, 0x18, 0xC3, 0x60, 0x70, 0x1C, 0x07, 0x03, 0x61, 0x8C, 0x63, 0x00, // 'x'
0xC1, 0x98, 0xC6, 0x31, 0x8C, 0x36, 0x0D, 0x81, 0x60, 0x70, 0x1C, 0x06, 0x01, 0x83, 0xC0, 0xE0, 0x00, // 'y'
0xFD, 0xF8, 0x30, 0xC3, 0x0C, 0x30, 0x7E, 0xFC, // 'z'
0x1C, 0x70, 0xC1, 0x83, 0x06, 0x38, 0x38, 0x30, 0x60, 0xC1, 0x83, 0x03, 0x07, 0x00, // '{'
0xAA, 0xAA, 0xAA, 0xAA, 0x80, // '|'
0xE0, 0xE0, 0xC1, 0x83, 0x06, 0x07, 0x1C, 0x30, 0x60, 0xC1, 0x83, 0x0C, 0x38, 0x00 // '}'
};
const GFXglyph Open_Sans_SemiBold_16Glyphs[] PROGMEM = {
// bitmapOffset, width, height, xAdvance, xOffset, yOffset
{0, 1, 1, 5, 0, 0}, // ' '
{1, 3, 12, 5, 1, -12}, // '!'
{6, 6, 4, 8, 1, -12}, // '"'
{9, 11, 12, 11, 0, -12}, // '#'
{26, 8, 14, 10, 1, -13}, // '$'
{40, 13, 12, 15, 1, -12}, // '%'
{60, 12, 12, 13, 1, -12}, // '&'
{78, 3, 4, 5, 1, -12}, // '''
{80, 5, 15, 6, 1, -12}, // '('
{90, 5, 15, 6, 0, -12}, // ')'
{100, 8, 7, 10, 1, -13}, // '*'
{107, 8, 7, 10, 1, -9}, // '+'
{114, 4, 4, 5, 0, -2}, // ','
{116, 4, 2, 6, 1, -5}, // '-'
{117, 3, 2, 5, 1, -2}, // '.'
{118, 7, 12, 7, 0, -12}, // '/'
{129, 8, 12, 10, 1, -12}, // '0'
{141, 6, 12, 10, 1, -12}, // '1'
{150, 8, 12, 10, 1, -12}, // '2'
{162, 8, 12, 10, 1, -12}, // '3'
{174, 10, 12, 10, 0, -12}, // '4'
{189, 8, 12, 10, 1, -12}, // '5'
{201, 8, 12, 10, 1, -12}, // '6'
{213, 8, 12, 10, 1, -12}, // '7'
{225, 8, 12, 10, 1, -12}, // '8'
{237, 8, 12, 10, 1, -12}, // '9'
{249, 3, 9, 5, 1, -9}, // ':'
{253, 4, 11, 5, 0, -9}, // ';'
{259, 8, 8, 10, 1, -10}, // '<'
{267, 8, 5, 10, 1, -8}, // '='
{272, 8, 8, 10, 1, -10}, // '>'
{280, 8, 12, 8, 0, -12}, // '?'
{292, 13, 13, 15, 1, -12}, // '@'
{314, 12, 12, 12, 0, -12}, // 'A'
{332, 9, 12, 12, 2, -12}, // 'B'
{346, 9, 12, 11, 1, -12}, // 'C'
{360, 10, 12, 13, 2, -12}, // 'D'
{375, 7, 12, 10, 2, -12}, // 'E'
{386, 7, 12, 10, 2, -12}, // 'F'
{397, 11, 12, 13, 1, -12}, // 'G'
{414, 10, 12, 13, 2, -12}, // 'H'
{429, 2, 12, 6, 2, -12}, // 'I'
{432, 5, 15, 6, -1, -12}, // 'J'
{442, 10, 12, 11, 1, -12}, // 'K'
{457, 8, 12, 10, 2, -12}, // 'L'
{469, 12, 12, 16, 2, -12}, // 'M'
{487, 10, 12, 14, 2, -12}, // 'N'
{502, 12, 12, 14, 1, -12}, // 'O'
{520, 8, 12, 11, 2, -12}, // 'P'
{532, 12, 15, 14, 1, -12}, // 'Q'
{555, 10, 12, 11, 1, -12}, // 'R'
{570, 8, 12, 10, 1, -12}, // 'S'
{582, 10, 12, 10, 0, -12}, // 'T'
{597, 11, 12, 13, 1, -12}, // 'U'
{614, 11, 12, 11, 0, -12}, // 'V'
{631, 16, 12, 16, 0, -12}, // 'W'
{655, 11, 12, 11, 0, -12}, // 'X'
{672, 10, 12, 10, 0, -12}, // 'Y'
{687, 9, 12, 10, 1, -12}, // 'Z'
{701, 5, 15, 6, 1, -12}, // '['
{711, 7, 12, 7, 0, -12}, // '\'
{722, 5, 15, 6, 0, -12}, // ']'
{732, 10, 7, 10, 0, -12}, // '^'
{741, 8, 1, 8, 0, 1}, // '_'
{742, 4, 3, 10, 3, -13}, // '`'
{744, 8, 9, 10, 1, -9}, // 'a'
{753, 9, 13, 11, 1, -13}, // 'b'
{768, 7, 9, 9, 1, -9}, // 'c'
{776, 9, 13, 11, 1, -13}, // 'd'
{791, 8, 9, 10, 1, -9}, // 'e'
{800, 8, 13, 7, 0, -13}, // 'f'
{813, 10, 13, 10, 0, -9}, // 'g'
{830, 9, 13, 11, 1, -13}, // 'h'
{845, 3, 13, 5, 1, -13}, // 'i'
{850, 5, 17, 5, -1, -13}, // 'j'
{861, 9, 13, 10, 1, -13}, // 'k'
{876, 3, 13, 5, 1, -13}, // 'l'
{881, 14, 9, 16, 1, -9}, // 'm'
{897, 9, 9, 11, 1, -9}, // 'n'
{908, 9, 9, 11, 1, -9}, // 'o'
{919, 9, 13, 11, 1, -9}, // 'p'
{934, 9, 13, 11, 1, -9}, // 'q'
{949, 7, 9, 8, 1, -9}, // 'r'
{957, 7, 9, 9, 1, -9}, // 's'
{965, 7, 11, 7, 0, -11}, // 't'
{975, 9, 9, 11, 1, -9}, // 'u'
{986, 10, 9, 10, 0, -9}, // 'v'
{998, 14, 9, 14, 0, -9}, // 'w'
{1014, 10, 9, 10, 0, -9}, // 'x'
{1026, 10, 13, 10, 0, -9}, // 'y'
{1043, 7, 9, 9, 1, -9}, // 'z'
{1051, 7, 15, 7, 0, -12}, // '{'
{1065, 2, 17, 10, 4, -13}, // '|'
{1070, 7, 15, 7, 0, -12} // '}'
};
const GFXfont Open_Sans_SemiBold_16 PROGMEM = {(uint8_t *)Open_Sans_SemiBold_16Bitmaps,
(GFXglyph *)Open_Sans_SemiBold_16Glyphs, 0x20, 0x7E, 23};
Loading

0 comments on commit 240f8ad

Please sign in to comment.