Simple library for UC1701 based GLCD's
Dependents: Opensmart_LCD_UC1701
With lots of fonts! Will include more in the future. A couple bitmaps have also been added.
fonts/font2d_hunter.h@5:7494bdca926b, 2016-12-19 (annotated)
- Committer:
- Anaesthetix
- Date:
- Mon Dec 19 23:26:17 2016 +0000
- Revision:
- 5:7494bdca926b
- Parent:
- 0:a8cfaf48d064
Added basic drawing functions + buffered versions. More will come soon. Has a minor bug with postioning
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Anaesthetix | 0:a8cfaf48d064 | 1 | #ifndef FONT2D_HUNTER_H |
Anaesthetix | 0:a8cfaf48d064 | 2 | #define FONT2D_HUNTER_H |
Anaesthetix | 0:a8cfaf48d064 | 3 | |
Anaesthetix | 0:a8cfaf48d064 | 4 | ; // Compiler bug: remove if needed |
Anaesthetix | 0:a8cfaf48d064 | 5 | const char font2d_hunter[96][8] = { |
Anaesthetix | 0:a8cfaf48d064 | 6 | {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, // |
Anaesthetix | 0:a8cfaf48d064 | 7 | {0x5f,0x5f,0x00,0x00,0x00,0x00,0x00,0x00}, // ! |
Anaesthetix | 0:a8cfaf48d064 | 8 | {0x07,0x07,0x00,0x07,0x07,0x00,0x00,0x00}, // " |
Anaesthetix | 0:a8cfaf48d064 | 9 | {0x14,0x7f,0x7f,0x14,0x7f,0x7f,0x14,0x00}, // # |
Anaesthetix | 0:a8cfaf48d064 | 10 | {0x6f,0x6f,0x6b,0xeb,0x6b,0x7b,0x7b,0x00}, // $ |
Anaesthetix | 0:a8cfaf48d064 | 11 | {0x63,0x73,0x38,0x1c,0x0e,0x67,0x63,0x00}, // % |
Anaesthetix | 0:a8cfaf48d064 | 12 | {0x7f,0x7f,0x6b,0x63,0x68,0x78,0x78,0x00}, // & |
Anaesthetix | 0:a8cfaf48d064 | 13 | {0x07,0x07,0x00,0x00,0x00,0x00,0x00,0x00}, // ' |
Anaesthetix | 0:a8cfaf48d064 | 14 | {0xff,0xff,0x80,0x00,0x00,0x00,0x00,0x00}, // ( |
Anaesthetix | 0:a8cfaf48d064 | 15 | {0x80,0xff,0xff,0x00,0x00,0x00,0x00,0x00}, // ) |
Anaesthetix | 0:a8cfaf48d064 | 16 | {0x36,0x08,0x7f,0x7f,0x7f,0x08,0x36,0x00}, // * |
Anaesthetix | 0:a8cfaf48d064 | 17 | {0x08,0x08,0x3e,0x08,0x08,0x00,0x00,0x00}, // + |
Anaesthetix | 0:a8cfaf48d064 | 18 | {0xe0,0xe0,0x00,0x00,0x00,0x00,0x00,0x00}, // , |
Anaesthetix | 0:a8cfaf48d064 | 19 | {0x08,0x08,0x08,0x08,0x08,0x00,0x00,0x00}, // - |
Anaesthetix | 0:a8cfaf48d064 | 20 | {0x60,0x60,0x00,0x00,0x00,0x00,0x00,0x00}, // . |
Anaesthetix | 0:a8cfaf48d064 | 21 | {0x70,0x1c,0x07,0x00,0x00,0x00,0x00,0x00}, // / |
Anaesthetix | 0:a8cfaf48d064 | 22 | {0x7f,0x7f,0x63,0x63,0x63,0x7f,0x7f,0x00}, // 0 |
Anaesthetix | 0:a8cfaf48d064 | 23 | {0x60,0x66,0x66,0x7f,0x7f,0x60,0x60,0x00}, // 1 |
Anaesthetix | 0:a8cfaf48d064 | 24 | {0x7b,0x7b,0x6b,0x6b,0x6b,0x6f,0x6f,0x00}, // 2 |
Anaesthetix | 0:a8cfaf48d064 | 25 | {0x63,0x63,0x6b,0x6b,0x6b,0x7f,0x7f,0x00}, // 3 |
Anaesthetix | 0:a8cfaf48d064 | 26 | {0x1f,0x1f,0x18,0x18,0x18,0x7e,0x7e,0x00}, // 4 |
Anaesthetix | 0:a8cfaf48d064 | 27 | {0x6f,0x6f,0x6b,0x6b,0x6b,0x7b,0x7b,0x00}, // 5 |
Anaesthetix | 0:a8cfaf48d064 | 28 | {0x7f,0x7f,0x6c,0x6c,0x6c,0x7c,0x7c,0x00}, // 6 |
Anaesthetix | 0:a8cfaf48d064 | 29 | {0x43,0x63,0x73,0x3b,0x1f,0x0f,0x07,0x00}, // 7 |
Anaesthetix | 0:a8cfaf48d064 | 30 | {0x7f,0x7f,0x6b,0x6b,0x6b,0x7f,0x7f,0x00}, // 8 |
Anaesthetix | 0:a8cfaf48d064 | 31 | {0x1f,0x1f,0x1b,0x1b,0x1b,0x7f,0x7f,0x00}, // 9 |
Anaesthetix | 0:a8cfaf48d064 | 32 | {0x6c,0x6c,0x00,0x00,0x00,0x00,0x00,0x00}, // : |
Anaesthetix | 0:a8cfaf48d064 | 33 | {0xec,0xec,0x00,0x00,0x00,0x00,0x00,0x00}, // ; |
Anaesthetix | 0:a8cfaf48d064 | 34 | {0x08,0x14,0x22,0x22,0x00,0x00,0x00,0x00}, // < |
Anaesthetix | 0:a8cfaf48d064 | 35 | {0x14,0x14,0x14,0x14,0x14,0x00,0x00,0x00}, // = |
Anaesthetix | 0:a8cfaf48d064 | 36 | {0x22,0x22,0x14,0x08,0x00,0x00,0x00,0x00}, // > |
Anaesthetix | 0:a8cfaf48d064 | 37 | {0x03,0x03,0x5b,0x5b,0x0b,0x0f,0x0f,0x00}, // ? |
Anaesthetix | 0:a8cfaf48d064 | 38 | {0x7f,0x7f,0x63,0x6f,0x6b,0x6f,0x6f,0x00}, // @ |
Anaesthetix | 0:a8cfaf48d064 | 39 | {0x7f,0x7f,0x1b,0x1b,0x1b,0x7f,0x7f,0x00}, // A |
Anaesthetix | 0:a8cfaf48d064 | 40 | {0x7f,0x7f,0x6b,0x6b,0x6f,0x7e,0x7c,0x00}, // B |
Anaesthetix | 0:a8cfaf48d064 | 41 | {0x7f,0x7f,0x63,0x63,0x63,0x63,0x63,0x00}, // C |
Anaesthetix | 0:a8cfaf48d064 | 42 | {0x7f,0x7f,0x63,0x63,0x67,0x7e,0x7c,0x00}, // D |
Anaesthetix | 0:a8cfaf48d064 | 43 | {0x7f,0x7f,0x6b,0x6b,0x6b,0x6b,0x6b,0x00}, // E |
Anaesthetix | 0:a8cfaf48d064 | 44 | {0x7f,0x7f,0x0b,0x0b,0x0b,0x03,0x03,0x00}, // F |
Anaesthetix | 0:a8cfaf48d064 | 45 | {0x7f,0x7f,0x63,0x63,0x6b,0x7b,0x7b,0x00}, // G |
Anaesthetix | 0:a8cfaf48d064 | 46 | {0x7f,0x7f,0x18,0x18,0x18,0x7f,0x7f,0x00}, // H |
Anaesthetix | 0:a8cfaf48d064 | 47 | {0x63,0x63,0x7f,0x7f,0x63,0x63,0x63,0x00}, // I |
Anaesthetix | 0:a8cfaf48d064 | 48 | {0x60,0x60,0x60,0x60,0x60,0x7f,0x3f,0x00}, // J |
Anaesthetix | 0:a8cfaf48d064 | 49 | {0x7f,0x7f,0x18,0x18,0x1e,0x7f,0x79,0x00}, // K |
Anaesthetix | 0:a8cfaf48d064 | 50 | {0x7f,0x7f,0x60,0x60,0x60,0x60,0x60,0x00}, // L |
Anaesthetix | 0:a8cfaf48d064 | 51 | {0x7f,0x7f,0x03,0x06,0x03,0x7f,0x7f,0x00}, // M |
Anaesthetix | 0:a8cfaf48d064 | 52 | {0x7f,0x7f,0x0e,0x1c,0x38,0x7f,0x7f,0x00}, // N |
Anaesthetix | 0:a8cfaf48d064 | 53 | {0x7f,0x7f,0x63,0x63,0x63,0x7f,0x7f,0x00}, // O |
Anaesthetix | 0:a8cfaf48d064 | 54 | {0x7f,0x7f,0x1b,0x1b,0x1b,0x1f,0x1f,0x00}, // P |
Anaesthetix | 0:a8cfaf48d064 | 55 | {0x7f,0x7f,0x63,0xf3,0xf3,0x7f,0x7f,0x00}, // Q |
Anaesthetix | 0:a8cfaf48d064 | 56 | {0x7f,0x7f,0x1b,0x3b,0x7b,0x7f,0x5f,0x00}, // R |
Anaesthetix | 0:a8cfaf48d064 | 57 | {0x6f,0x6f,0x6b,0x6b,0x6b,0x7b,0x7b,0x00}, // S |
Anaesthetix | 0:a8cfaf48d064 | 58 | {0x03,0x03,0x7f,0x7f,0x03,0x03,0x03,0x00}, // T |
Anaesthetix | 0:a8cfaf48d064 | 59 | {0x7f,0x7f,0x60,0x60,0x60,0x7f,0x7f,0x00}, // U |
Anaesthetix | 0:a8cfaf48d064 | 60 | {0x1f,0x3f,0x70,0x60,0x70,0x3f,0x1f,0x00}, // V |
Anaesthetix | 0:a8cfaf48d064 | 61 | {0x3f,0x7f,0x60,0x30,0x60,0x7f,0x3f,0x00}, // W |
Anaesthetix | 0:a8cfaf48d064 | 62 | {0x77,0x7f,0x1c,0x08,0x1c,0x7f,0x77,0x00}, // X |
Anaesthetix | 0:a8cfaf48d064 | 63 | {0x07,0x0f,0x7c,0x78,0x7c,0x0f,0x07,0x00}, // Y |
Anaesthetix | 0:a8cfaf48d064 | 64 | {0x73,0x7b,0x6b,0x6b,0x6b,0x6f,0x67,0x00}, // Z |
Anaesthetix | 0:a8cfaf48d064 | 65 | {0xff,0xff,0x80,0x00,0x00,0x00,0x00,0x00}, // [ |
Anaesthetix | 0:a8cfaf48d064 | 66 | {0x07,0x1c,0x70,0x00,0x00,0x00,0x00,0x00}, // "\" |
Anaesthetix | 0:a8cfaf48d064 | 67 | {0x80,0xff,0xff,0x00,0x00,0x00,0x00,0x00}, // ] |
Anaesthetix | 0:a8cfaf48d064 | 68 | {0x00,0x7f,0x40,0x7f,0x00,0x00,0x00,0x00}, // ^ |
Anaesthetix | 0:a8cfaf48d064 | 69 | {0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00}, // _ |
Anaesthetix | 0:a8cfaf48d064 | 70 | {0x00,0x7f,0x40,0x7f,0x00,0x00,0x00,0x00}, // ` |
Anaesthetix | 0:a8cfaf48d064 | 71 | {0x7f,0x7f,0x1b,0x1b,0x1b,0x7f,0x7f,0x00}, // a |
Anaesthetix | 0:a8cfaf48d064 | 72 | {0x7f,0x7f,0x6b,0x6b,0x6f,0x7e,0x7c,0x00}, // b |
Anaesthetix | 0:a8cfaf48d064 | 73 | {0x7f,0x7f,0x63,0x63,0x63,0x63,0x63,0x00}, // c |
Anaesthetix | 0:a8cfaf48d064 | 74 | {0x7f,0x7f,0x63,0x63,0x67,0x7e,0x7c,0x00}, // d |
Anaesthetix | 0:a8cfaf48d064 | 75 | {0x7f,0x7f,0x6b,0x6b,0x6b,0x6b,0x6b,0x00}, // e |
Anaesthetix | 0:a8cfaf48d064 | 76 | {0x7f,0x7f,0x0b,0x0b,0x0b,0x03,0x03,0x00}, // f |
Anaesthetix | 0:a8cfaf48d064 | 77 | {0x7f,0x7f,0x63,0x63,0x6b,0x7b,0x7b,0x00}, // g |
Anaesthetix | 0:a8cfaf48d064 | 78 | {0x7f,0x7f,0x18,0x18,0x18,0x7f,0x7f,0x00}, // h |
Anaesthetix | 0:a8cfaf48d064 | 79 | {0x63,0x63,0x7f,0x7f,0x63,0x63,0x63,0x00}, // i |
Anaesthetix | 0:a8cfaf48d064 | 80 | {0x60,0x60,0x60,0x60,0x60,0x7f,0x3f,0x00}, // j |
Anaesthetix | 0:a8cfaf48d064 | 81 | {0x7f,0x7f,0x18,0x18,0x1e,0x7f,0x79,0x00}, // k |
Anaesthetix | 0:a8cfaf48d064 | 82 | {0x7f,0x7f,0x60,0x60,0x60,0x60,0x60,0x00}, // l |
Anaesthetix | 0:a8cfaf48d064 | 83 | {0x7f,0x7f,0x03,0x06,0x03,0x7f,0x7f,0x00}, // m |
Anaesthetix | 0:a8cfaf48d064 | 84 | {0x7f,0x7f,0x0e,0x1c,0x38,0x7f,0x7f,0x00}, // n |
Anaesthetix | 0:a8cfaf48d064 | 85 | {0x7f,0x7f,0x63,0x63,0x63,0x7f,0x7f,0x00}, // o |
Anaesthetix | 0:a8cfaf48d064 | 86 | {0x7f,0x7f,0x1b,0x1b,0x1b,0x1f,0x1f,0x00}, // p |
Anaesthetix | 0:a8cfaf48d064 | 87 | {0x7f,0x7f,0x63,0xf3,0xf3,0x7f,0x7f,0x00}, // q |
Anaesthetix | 0:a8cfaf48d064 | 88 | {0x7f,0x7f,0x1b,0x3b,0x7b,0x7f,0x5f,0x00}, // r |
Anaesthetix | 0:a8cfaf48d064 | 89 | {0x6f,0x6f,0x6b,0x6b,0x6b,0x7b,0x7b,0x00}, // s |
Anaesthetix | 0:a8cfaf48d064 | 90 | {0x03,0x03,0x7f,0x7f,0x03,0x03,0x03,0x00}, // t |
Anaesthetix | 0:a8cfaf48d064 | 91 | {0x7f,0x7f,0x60,0x60,0x60,0x7f,0x7f,0x00}, // u |
Anaesthetix | 0:a8cfaf48d064 | 92 | {0x1f,0x3f,0x70,0x60,0x70,0x3f,0x1f,0x00}, // v |
Anaesthetix | 0:a8cfaf48d064 | 93 | {0x3f,0x7f,0x60,0x30,0x60,0x7f,0x3f,0x00}, // w |
Anaesthetix | 0:a8cfaf48d064 | 94 | {0x77,0x7f,0x1c,0x08,0x1c,0x7f,0x77,0x00}, // x |
Anaesthetix | 0:a8cfaf48d064 | 95 | {0x07,0x0f,0x7c,0x78,0x7c,0x0f,0x07,0x00}, // y |
Anaesthetix | 0:a8cfaf48d064 | 96 | {0x73,0x7b,0x6b,0x6b,0x6b,0x6f,0x67,0x00}, // z |
Anaesthetix | 0:a8cfaf48d064 | 97 | {0x1c,0xff,0xff,0x80,0x00,0x00,0x00,0x00}, // { |
Anaesthetix | 0:a8cfaf48d064 | 98 | {0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, // | |
Anaesthetix | 0:a8cfaf48d064 | 99 | {0x80,0xff,0xff,0x1c,0x00,0x00,0x00,0x00}, // } |
Anaesthetix | 0:a8cfaf48d064 | 100 | {0x00,0x7f,0x40,0x7f,0x00,0x00,0x00,0x00}, // ~ |
Anaesthetix | 0:a8cfaf48d064 | 101 | {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00} |
Anaesthetix | 0:a8cfaf48d064 | 102 | }; |
Anaesthetix | 0:a8cfaf48d064 | 103 | |
Anaesthetix | 0:a8cfaf48d064 | 104 | #endif |