My Project
TM16XXFonts.h
Go to the documentation of this file.
1 /*
2 TM16XXFonts.h - Font definition for TM16XX.
3 
4 Copyright (C) 2011 Ricardo Batista (rjbatista <at> gmail <dot> com)
5 
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the version 3 GNU General Public License as
8 published by the Free Software Foundation.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18 
19 The bits are displayed by mapping bellow
20  -- 0 --
21 | |
22 5 1
23  -- 6 --
24 4 2
25 | |
26  -- 3 -- .7
27 
28 */
29 
30 #ifndef TM16XXFonts_h
31 #define TM16XXFonts_h
32 
33 // definition for standard hexadecimal numbers
34 const byte NUMBER_FONT[] = {
35  0b00111111, // 0
36  0b00000110, // 1
37  0b01011011, // 2
38  0b01001111, // 3
39  0b01100110, // 4
40  0b01101101, // 5
41  0b01111101, // 6
42  0b00000111, // 7
43  0b01111111, // 8
44  0b01101111, // 9
45  0b01110111, // A
46  0b01111100, // B
47  0b00111001, // C
48  0b01011110, // D
49  0b01111001, // E
50  0b01110001 // F
51 };
52 
53 const byte MINUS = 0b01000000;
54 
55 // definition for error
56 const byte ERROR_DATA[] = {
57  0b01111001, // E
58  0b01010000, // r
59  0b01010000, // r
60  0b01011100, // o
61  0b01010000, // r
62  0,
63  0,
64  0
65 };
66 
67 // definition for the displayable ASCII chars
68 const byte FONT_DEFAULT[] = {
69  0b00000000, // (32) <space>
70  0b10000110, // (33) !
71  0b00100010, // (34) "
72  0b01111110, // (35) #
73  0b01101101, // (36) $
74  0b00000000, // (37) %
75  0b00000000, // (38) &
76  0b00000010, // (39) '
77  0b00110000, // (40) (
78  0b00000110, // (41) )
79  0b01100011, // (42) *
80  0b00000000, // (43) +
81  0b00000100, // (44) ,
82  0b01000000, // (45) -
83  0b10000000, // (46) .
84  0b01010010, // (47) /
85  0b00111111, // (48) 0
86  0b00000110, // (49) 1
87  0b01011011, // (50) 2
88  0b01001111, // (51) 3
89  0b01100110, // (52) 4
90  0b01101101, // (53) 5
91  0b01111101, // (54) 6
92  0b00100111, // (55) 7
93  0b01111111, // (56) 8
94  0b01101111, // (57) 9
95  0b00000000, // (58) :
96  0b00000000, // (59) ;
97  0b00000000, // (60) <
98  0b01001000, // (61) =
99  0b00000000, // (62) >
100  0b01010011, // (63) ?
101  0b01011111, // (64) @
102  0b01110111, // (65) A
103  0b01111111, // (66) B
104  0b00111001, // (67) C
105  0b00111111, // (68) D
106  0b01111001, // (69) E
107  0b01110001, // (70) F
108  0b00111101, // (71) G
109  0b01110110, // (72) H
110  0b00000110, // (73) I
111  0b00011111, // (74) J
112  0b01101001, // (75) K
113  0b00111000, // (76) L
114  0b00010101, // (77) M
115  0b00110111, // (78) N
116  0b00111111, // (79) O
117  0b01110011, // (80) P
118  0b01100111, // (81) Q
119  0b00110001, // (82) R
120  0b01101101, // (83) S
121  0b01111000, // (84) T
122  0b00111110, // (85) U
123  0b00101010, // (86) V
124  0b00011101, // (87) W
125  0b01110110, // (88) X
126  0b01101110, // (89) Y
127  0b01011011, // (90) Z
128  0b00111001, // (91) [
129  0b01100100, // (92) \ (this can't be the last char on a line, even in comment or it'll concat)
130  0b00001111, // (93) ]
131  0b00000000, // (94) ^
132  0b00001000, // (95) _
133  0b00100000, // (96) `
134  0b01011111, // (97) a
135  0b01111100, // (98) b
136  0b01011000, // (99) c
137  0b01011110, // (100) d
138  0b01111011, // (101) e
139  0b00110001, // (102) f
140  0b01101111, // (103) g
141  0b01110100, // (104) h
142  0b00000100, // (105) i
143  0b00001110, // (106) j
144  0b01110101, // (107) k
145  0b00110000, // (108) l
146  0b01010101, // (109) m
147  0b01010100, // (110) n
148  0b01011100, // (111) o
149  0b01110011, // (112) p
150  0b01100111, // (113) q
151  0b01010000, // (114) r
152  0b01101101, // (115) s
153  0b01111000, // (116) t
154  0b00011100, // (117) u
155  0b00101010, // (118) v
156  0b00011101, // (119) w
157  0b01110110, // (120) x
158  0b01101110, // (121) y
159  0b01000111, // (122) z
160  0b01000110, // (123) {
161  0b00000110, // (124) |
162  0b01110000, // (125) }
163  0b00000001, // (126) ~
164 };
165 
166 #endif
const byte FONT_DEFAULT[]
Definition: TM16XXFonts.h:68
const byte NUMBER_FONT[]
Definition: TM16XXFonts.h:34
const byte ERROR_DATA[]
Definition: TM16XXFonts.h:56
const byte MINUS
Definition: TM16XXFonts.h:53