-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtextAndShapes.h
181 lines (172 loc) · 2.82 KB
/
textAndShapes.h
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
// Place data (except text[]) in program memory to save dynamic memory
// https://playground.arduino.cc/Main/PROGMEM
// http://www.gammon.com.au/progmem
const char text[] = " Hello";
const char string_0[] PROGMEM = "World!";
const char string_1[] PROGMEM = " RPM";
const char string_2[] PROGMEM = " SEC";
const char string_3[] PROGMEM = " REV";
const char string_4[] PROGMEM = " odo";
const char * const string_table[] PROGMEM = { // change "string_table" name to suit
string_0,
string_1,
string_2,
string_3,
string_4,
};
const char PROGMEM shape_1[] = { // heart
B00000100,
B00000100,
B00000010,
B00000010,
B00000010,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000010,
B00000010,
B00000100,
B00001000,
B00010000,
B00100000,
B01000000,
B10000000,
B10000000,
B01000000,
B00100000,
B00010000,
B00001000,
B00000100,
B00000010,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000010,
B00000010,
B00000010,
B00000100,
B00000100,
B00000100,
B00000100,
B00001000,
B00001000,
B00001000,
B00001000,
B00001000,
B00001000,
B00001000,
B00001000,
B00001000,
B00001000,
B00001000,
B00000100,
B00000100,
B00000100,
B00000010,
B00000010,
B00000001,
B00000001,
B00000010,
B00000010,
B00000100,
B00000100,
B00000100,
B00001000,
B00001000,
B00001000,
B00001000,
B00001000,
B00001000,
B00001000,
B00001000,
B00001000,
B00001000,
B00001000,
B00000100,
};
const char PROGMEM shape_2[] = { // smile
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00100001,
B01010001,
B01001001,
B01001001,
B01010001,
B00100001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00100001,
B01010001,
B01001001,
B01001001,
B01010001,
B00100001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00100001,
B00010001,
B00010001,
B00011001,
B00011001,
B00011001,
B00011001,
B00011001,
B00011001,
B00011001,
B00011001,
B00011001,
B00011001,
B00011001,
B00011001,
B00011001,
B00011001,
B00011001,
B00011001,
B00010001,
B00010001,
B00100001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
B00000001,
};
/*
Creative Commons Attribution-Noncommercial-Share Alike 2.5 Australia License
This page was last modified 14:41, 11 January 2009. This page has been accessed 1,477 times.
Content is available under Creative Commons Attribution-Noncommercial-Share Alike 2.5 Australia License.
About Open Source Urbanism
Disclaimers
Powered by MediaWiki
*/