-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSegment16Font.h
More file actions
125 lines (120 loc) · 2.23 KB
/
Segment16Font.h
File metadata and controls
125 lines (120 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
// This is the font definition file. Only include once.
#include <stdint.h>
#define SegmentMaskA ((uint16_t)1<<0)
#define SegmentMaskB ((uint16_t)1<<1)
#define SegmentMaskC ((uint16_t)1<<2)
#define SegmentMaskD ((uint16_t)1<<3)
#define SegmentMaskE ((uint16_t)1<<4)
#define SegmentMaskF ((uint16_t)1<<5)
#define SegmentMaskG ((uint16_t)1<<6)
#define SegmentMaskH ((uint16_t)1<<7)
#define SegmentMaskK ((uint16_t)1<<8)
#define SegmentMaskM ((uint16_t)1<<9)
#define SegmentMaskN ((uint16_t)1<<10)
#define SegmentMaskP ((uint16_t)1<<11)
#define SegmentMaskR ((uint16_t)1<<12)
#define SegmentMaskS ((uint16_t)1<<13)
#define SegmentMaskT ((uint16_t)1<<14)
#define SegmentMaskU ((uint16_t)1<<15)
#define FONT_TABLE_OFFSET 32
#define FONT_CHARACTER_COUNT 96
#define FONT_FIRST_CHARACTER 32
#define FONT_LAST_CHARACTER FONT_FIRST_CHARACTER + FONT_CHARACTER_COUNT
const uint16_t fontTable[FONT_CHARACTER_COUNT] = {
0x0000, // space
0x000C, // !
0x0204, // "
0xAA3C, // #
0xAABB, // $
0xEE99, // %
0x9371, // &
0x0200, // '
0x1400, // (
0x4100, // )
0xFF00, // *
0xAA00, // +
0x4000, // ,
0x8800, // -
0x1000, // .
0x4400, // slash
0x44FF, // 0
0x040C, // 1
0x8877, // 2
0x083F, // 3
0x888C, // 4
0x90B3, // 5
0x88FB, // 6
0x000F, // 7
0x88FF, // 8
0x88BF, // 9
0x2200, // :
0x4200, // ;
0x9400, // <
0x8830, // =
0x4900, // >
0x2807, // ?
0x0AF7, // @
0x88CF, // A
0x2A3F, // B
0x00F3, // C
0x223F, // D
0x80F3, // E
0x80C3, // F
0x08FB, // G
0x88CC, // H
0x2233, // I
0x007C, // J
0x94C0, // K
0x00F0, // L
0x05CC, // M
0x11CC, // N
0x00FF, // O
0x88C7, // P
0x10FF, // Q
0x98C7, // R
0x88BB, // S
0x2203, // T
0x00FC, // U
0x44C0, // V
0x50CC, // W
0x5500, // X
0x88BC, // Y
0x4433, // Z
0x2212, // [
0x1100, // backslash
0x2221, // ]
0x5000, // ^
0x0030, // _
0x0100, // `
0xA070, // a
0xA0E0, // b
0x8060, // c
0x281C, // d
0xC060, // e
0xAA02, // f
0xA2A1, // g
0xA0C0, // h
0x2000, // i
0x2260, // j
0x3600, // k
0x00C0, // l
0xA848, // m
0xA040, // n
0xA060, // o
0x82C1, // p
0xA281, // q
0x8040, // r
0xA0A1, // s
0x80E0, // t
0x2060, // u
0x4040, // v
0x5048, // w
0x5500, // x
0x0A1C, // y
0xC020, // z
0xA212, // {
0x2200, // |
0x2A21, // }
0xCC00, // ~
0x0000, // (del)
};