A simple library for SSH1106 controlled GLCDs

Dependents:   SSH1106_OLED

Committer:
Anaesthetix
Date:
Thu Dec 22 23:15:46 2016 +0000
Revision:
2:b55dd362afb9
Parent:
0:3cd0a11a2f91
Made universal for different resolutions.

Who changed what in which revision?

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