Persistence of Vision (POV) made easy.

Dependencies:   m3pi mbed-rtos mbed

Committer:
Samson Danziger
Date:
Fri May 27 16:51:29 2016 +0100
Revision:
1:38b399821b54
add beginnings of pov code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Samson Danziger 1:38b399821b54 1 #ifndef ALPHABET
Samson Danziger 1:38b399821b54 2 #define ALPHABET
Samson Danziger 1:38b399821b54 3
Samson Danziger 1:38b399821b54 4 const unsigned char font[96][6] = {
Samson Danziger 1:38b399821b54 5 {0x00,0x00,0x00,0x00,0x00,0x00}, //
Samson Danziger 1:38b399821b54 6 {0x2e,0x00,0x00,0x00,0x00,0x00}, // !
Samson Danziger 1:38b399821b54 7 {0x03,0x00,0x03,0x00,0x00,0x00}, // "
Samson Danziger 1:38b399821b54 8 {0x0a,0x1f,0x0a,0x1f,0x0a,0x00}, // #
Samson Danziger 1:38b399821b54 9 {0x2e,0x2a,0x6b,0x2a,0x3a,0x00}, // $
Samson Danziger 1:38b399821b54 10 {0x0e,0x2a,0x1e,0x08,0x3c,0x2a}, // %
Samson Danziger 1:38b399821b54 11 {0x3e,0x2a,0x2a,0x22,0x38,0x08}, // &
Samson Danziger 1:38b399821b54 12 {0x03,0x00,0x00,0x00,0x00,0x00}, // '
Samson Danziger 1:38b399821b54 13 {0x1c,0x22,0x00,0x00,0x00,0x00}, // (
Samson Danziger 1:38b399821b54 14 {0x22,0x1c,0x00,0x00,0x00,0x00}, // )
Samson Danziger 1:38b399821b54 15 {0x15,0x0e,0x04,0x0e,0x15,0x00}, // *
Samson Danziger 1:38b399821b54 16 {0x08,0x08,0x3e,0x08,0x08,0x00}, // +
Samson Danziger 1:38b399821b54 17 {0x60,0x00,0x00,0x00,0x00,0x00}, // ,
Samson Danziger 1:38b399821b54 18 {0x08,0x08,0x08,0x08,0x08,0x00}, // -
Samson Danziger 1:38b399821b54 19 {0x20,0x00,0x00,0x00,0x00,0x00}, // .
Samson Danziger 1:38b399821b54 20 {0x20,0x10,0x08,0x04,0x02,0x00}, // /
Samson Danziger 1:38b399821b54 21 {0x3e,0x22,0x2a,0x22,0x3e,0x00}, // 0
Samson Danziger 1:38b399821b54 22 {0x04,0x3e,0x00,0x00,0x00,0x00}, // 1
Samson Danziger 1:38b399821b54 23 {0x3a,0x2a,0x2a,0x2a,0x2e,0x00}, // 2
Samson Danziger 1:38b399821b54 24 {0x2a,0x2a,0x2a,0x2a,0x3e,0x00}, // 3
Samson Danziger 1:38b399821b54 25 {0x0e,0x08,0x08,0x08,0x3e,0x00}, // 4
Samson Danziger 1:38b399821b54 26 {0x2e,0x2a,0x2a,0x2a,0x3a,0x00}, // 5
Samson Danziger 1:38b399821b54 27 {0x3e,0x2a,0x2a,0x2a,0x3a,0x00}, // 6
Samson Danziger 1:38b399821b54 28 {0x02,0x02,0x02,0x02,0x3e,0x00}, // 7
Samson Danziger 1:38b399821b54 29 {0x3e,0x2a,0x2a,0x2a,0x3e,0x00}, // 8
Samson Danziger 1:38b399821b54 30 {0x2e,0x2a,0x2a,0x2a,0x3e,0x00}, // 9
Samson Danziger 1:38b399821b54 31 {0x14,0x00,0x00,0x00,0x00,0x00}, // :
Samson Danziger 1:38b399821b54 32 {0x34,0x00,0x00,0x00,0x00,0x00}, // ;
Samson Danziger 1:38b399821b54 33 {0x08,0x14,0x22,0x00,0x00,0x00}, // <
Samson Danziger 1:38b399821b54 34 {0x14,0x14,0x14,0x14,0x14,0x00}, // =
Samson Danziger 1:38b399821b54 35 {0x22,0x14,0x08,0x00,0x00,0x00}, // >
Samson Danziger 1:38b399821b54 36 {0x06,0x02,0x2a,0x0a,0x0e,0x00}, // ?
Samson Danziger 1:38b399821b54 37 {0x3e,0x02,0x3a,0x2a,0x3e,0x00}, // @
Samson Danziger 1:38b399821b54 38 {0x3e,0x12,0x12,0x12,0x3e,0x00}, // A
Samson Danziger 1:38b399821b54 39 {0x3e,0x2a,0x2a,0x2a,0x36,0x00}, // B
Samson Danziger 1:38b399821b54 40 {0x3e,0x22,0x22,0x22,0x22,0x00}, // C
Samson Danziger 1:38b399821b54 41 {0x3e,0x22,0x22,0x22,0x1c,0x00}, // D
Samson Danziger 1:38b399821b54 42 {0x3e,0x2a,0x2a,0x2a,0x22,0x00}, // E
Samson Danziger 1:38b399821b54 43 {0x3e,0x0a,0x0a,0x0a,0x02,0x00}, // F
Samson Danziger 1:38b399821b54 44 {0x3e,0x22,0x2a,0x2a,0x3a,0x00}, // G
Samson Danziger 1:38b399821b54 45 {0x3e,0x08,0x08,0x08,0x3e,0x00}, // H
Samson Danziger 1:38b399821b54 46 {0x22,0x3e,0x22,0x00,0x00,0x00}, // I
Samson Danziger 1:38b399821b54 47 {0x38,0x20,0x20,0x20,0x3e,0x00}, // J
Samson Danziger 1:38b399821b54 48 {0x3e,0x08,0x08,0x14,0x22,0x00}, // K
Samson Danziger 1:38b399821b54 49 {0x3e,0x20,0x20,0x20,0x20,0x00}, // L
Samson Danziger 1:38b399821b54 50 {0x3e,0x04,0x38,0x04,0x3e,0x00}, // M
Samson Danziger 1:38b399821b54 51 {0x3e,0x04,0x08,0x10,0x3e,0x00}, // N
Samson Danziger 1:38b399821b54 52 {0x3e,0x22,0x22,0x22,0x3e,0x00}, // O
Samson Danziger 1:38b399821b54 53 {0x3e,0x0a,0x0a,0x0a,0x0e,0x00}, // P
Samson Danziger 1:38b399821b54 54 {0x3e,0x22,0x72,0x22,0x3e,0x00}, // Q
Samson Danziger 1:38b399821b54 55 {0x3e,0x0a,0x0a,0x1a,0x2e,0x00}, // R
Samson Danziger 1:38b399821b54 56 {0x2e,0x2a,0x2a,0x2a,0x3a,0x00}, // S
Samson Danziger 1:38b399821b54 57 {0x02,0x02,0x3e,0x02,0x02,0x00}, // T
Samson Danziger 1:38b399821b54 58 {0x1e,0x20,0x20,0x20,0x1e,0x00}, // U
Samson Danziger 1:38b399821b54 59 {0x0e,0x10,0x20,0x10,0x0e,0x00}, // V
Samson Danziger 1:38b399821b54 60 {0x3e,0x10,0x0e,0x10,0x3e,0x00}, // W
Samson Danziger 1:38b399821b54 61 {0x22,0x14,0x08,0x14,0x22,0x00}, // X
Samson Danziger 1:38b399821b54 62 {0x02,0x04,0x38,0x04,0x02,0x00}, // Y
Samson Danziger 1:38b399821b54 63 {0x3a,0x2a,0x2a,0x2a,0x2e,0x00}, // Z
Samson Danziger 1:38b399821b54 64 {0x3e,0x22,0x00,0x00,0x00,0x00}, // [
Samson Danziger 1:38b399821b54 65 {0x3f,0x21,0x3f,0x00,0x00,0x00}, // "\"
Samson Danziger 1:38b399821b54 66 {0x22,0x3e,0x00,0x00,0x00,0x00}, // ]
Samson Danziger 1:38b399821b54 67 {0x0c,0x1e,0x3c,0x1e,0x0c,0x00}, // ^
Samson Danziger 1:38b399821b54 68 {0x20,0x20,0x20,0x20,0x20,0x00}, // _
Samson Danziger 1:38b399821b54 69 {0x1c,0x3e,0x3e,0x3e,0x1c,0x00}, // `
Samson Danziger 1:38b399821b54 70 {0x3c,0x24,0x24,0x24,0x3c,0x20}, // a
Samson Danziger 1:38b399821b54 71 {0x3e,0x24,0x24,0x24,0x3c,0x00}, // b
Samson Danziger 1:38b399821b54 72 {0x3c,0x24,0x24,0x24,0x24,0x00}, // c
Samson Danziger 1:38b399821b54 73 {0x3c,0x24,0x24,0x24,0x3e,0x00}, // d
Samson Danziger 1:38b399821b54 74 {0x3c,0x24,0x34,0x2c,0x24,0x00}, // e
Samson Danziger 1:38b399821b54 75 {0x08,0x3e,0x0a,0x0a,0x00,0x00}, // f
Samson Danziger 1:38b399821b54 76 {0x1c,0x54,0x54,0x54,0x7c,0x00}, // g
Samson Danziger 1:38b399821b54 77 {0x3e,0x04,0x04,0x04,0x3c,0x00}, // h
Samson Danziger 1:38b399821b54 78 {0x3a,0x00,0x00,0x00,0x00,0x00}, // i
Samson Danziger 1:38b399821b54 79 {0x7a,0x00,0x00,0x00,0x00,0x00}, // j
Samson Danziger 1:38b399821b54 80 {0x3e,0x08,0x14,0x22,0x00,0x00}, // k
Samson Danziger 1:38b399821b54 81 {0x02,0x3e,0x00,0x00,0x00,0x00}, // l
Samson Danziger 1:38b399821b54 82 {0x3c,0x04,0x3c,0x04,0x3c,0x00}, // m
Samson Danziger 1:38b399821b54 83 {0x3c,0x04,0x04,0x04,0x3c,0x00}, // n
Samson Danziger 1:38b399821b54 84 {0x3c,0x24,0x24,0x24,0x3c,0x00}, // o
Samson Danziger 1:38b399821b54 85 {0x7c,0x24,0x24,0x24,0x3c,0x00}, // p
Samson Danziger 1:38b399821b54 86 {0x3c,0x24,0x24,0x24,0x7c,0x00}, // q
Samson Danziger 1:38b399821b54 87 {0x3c,0x04,0x04,0x04,0x00,0x00}, // r
Samson Danziger 1:38b399821b54 88 {0x24,0x2c,0x34,0x24,0x00,0x00}, // s
Samson Danziger 1:38b399821b54 89 {0x04,0x3e,0x24,0x24,0x00,0x00}, // t
Samson Danziger 1:38b399821b54 90 {0x3c,0x20,0x20,0x20,0x3c,0x00}, // u
Samson Danziger 1:38b399821b54 91 {0x0c,0x10,0x20,0x10,0x0c,0x00}, // v
Samson Danziger 1:38b399821b54 92 {0x3c,0x20,0x3c,0x20,0x3c,0x00}, // w
Samson Danziger 1:38b399821b54 93 {0x24,0x24,0x18,0x24,0x24,0x00}, // x
Samson Danziger 1:38b399821b54 94 {0x1c,0x50,0x50,0x50,0x7c,0x00}, // y
Samson Danziger 1:38b399821b54 95 {0x24,0x34,0x2c,0x24,0x00,0x00}, // z
Samson Danziger 1:38b399821b54 96 {0x08,0x3e,0x22,0x00,0x00,0x00}, // {
Samson Danziger 1:38b399821b54 97 {0x1c,0x22,0x22,0x22,0x1c,0x00}, // |
Samson Danziger 1:38b399821b54 98 {0x22,0x3e,0x08,0x00,0x00,0x00}, // }
Samson Danziger 1:38b399821b54 99 {0x01,0x01,0x01,0x00,0x00,0x00}, // ~
Samson Danziger 1:38b399821b54 100 {0x00,0x00,0x00,0x00,0x00,0x00}
Samson Danziger 1:38b399821b54 101 };
Samson Danziger 1:38b399821b54 102
Samson Danziger 1:38b399821b54 103 #endif //ALPHABET