-
Notifications
You must be signed in to change notification settings - Fork 0
/
key_lut_literal.h
273 lines (271 loc) · 4.96 KB
/
key_lut_literal.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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
#ifndef KEY_LUT_LITERAL_H
#define KEY_LUT_LITERAL_H
namespace typotron{
/*
* key -> ASCII LUT
* literal - chars as on the typewriter keyboard
* if a char is on KBII it can be accessed
* by pressing CODE+key
*/
const char key_literal_lut[] PROGMEM = {
// NORMAL SHIFT CODE KB2+SHIFT
'\0' ,//000
'-' ,//001 - / o/
',' ,//002 ?
'n' ,//003 N
'\0' ,//004 last word
'v' ,//005 V
'x' ,//006 X
'\0' ,//007 margin right
'\0' ,//010
'.' ,//011 . .
'm' ,//012 M
'b' ,//013 B
'\x7F' ,//014 DEL del word
'c' ,//015 C
'z' ,//016 Z
'\0' ,//017 <CODE>
'\0' ,//020 tab + tab-
';' ,//021 ; ;
'l' ,//022 L
'g' ,//023 G
'j' ,//024 J
'd' ,//025 D
'\0' ,//026 margin left
'\0' ,//027 <SHIFT>
'\0' ,//030 up
'\0' ,//031 ij *
'k' ,//032 K
'f' ,//033 F
'h' ,//034 H
's' ,//035 S
'\0' ,//036 CAPS
'a' ,//037 A
'\0' ,//040 down
'i' ,//041 I
'y' ,//042 Y
'w' ,//043 W
'r' ,//044 R
'\t' ,//045 TAB
'\xA8' ,//046 umlaut ^
'p' ,//047 P
'\0' ,//050
'o' ,//051 O
'u' ,//052 U
'e' ,//053 E
't' ,//054 T
'q' ,//055 Q
'+' ,//056 + =
'\n' ,//057 ENTER
'\b' ,//060 BS autortrn
'7' ,//061 7 & <
'5' ,//062 5 % p10 degree
'1' ,//063 1 f |
'3' ,//064 3 Ĺ i1 1/2 `
' ' ,//065 SPACE
'\xBD' ,//066 1/2 ! hyphen
'9' ,//067 9 ( dec.tab
'\r' ,//070 CR
'6' ,//071 6 _ p12
'4' ,//072 4 $ i2
'\0' ,//073 margin ignore KB1<>2
'2' ,//074 2 " i1 '/
'0' ,//075 0 ) undrlne
'\xBE' ,//076 3/4 1/4 center
'8' ,//077 8 ' indent >
'\0' ,//100
'/' ,//101 - / o/
'?' ,//102
'N' ,//103 N
'\0' ,//104 last word
'V' ,//105 V
'X' ,//106 X
'\0' ,//107 margin right
'\0' ,//110
'.' ,//111 . .
'M' ,//112 M
'B' ,//113 B
'\0' ,//114 DEL del word
'C' ,//115 C
'Z' ,//116 Z
'\0' ,//117
'\0' ,//120 tab + tab-
':' ,//121 ; ;
'L' ,//122 L
'G' ,//123 G
'J' ,//124 J
'D' ,//125 D
'\0' ,//126 margin left
'\0' ,//127
'\0' ,//130 up
'*' ,//131 ij *
'K' ,//132 K
'F' ,//133 F
'H' ,//134 H
'S' ,//135 S
'\0' ,//136 CAPS
'A' ,//137 A
'\0' ,//140 down
'I' ,//141 I
'Y' ,//142 Y
'W' ,//143 W
'R' ,//144 R
'\0' ,//145 TAB
'^' ,//146 umlaut ^
'P' ,//147 P
'\0' ,//150
'O' ,//151 O
'U' ,//152 U
'E' ,//153 E
'T' ,//154 T
'Q' ,//155 Q
'=' ,//156 + =
'\0' ,//157 ENTER
'\0' ,//160 BS autortrn
'&' ,//161 7 & <
'%' ,//162 5 % p10 degree
'\x83' ,//163 1 F | ***
'\xA3' ,//164 3 Ĺ i1 1/2 `
'\0' ,//165 SPACE
'!' ,//166 1/2 ! hyphen
'(' ,//167 9 ( dec.tab
'\0' ,//170 CR
'_' ,//171 6 _ p12
'$' ,//172 4 $ i2
'\0' ,//173 margin ignore KB1<>2
'"' ,//174 2 " i1 '/
')' ,//175 0 ) undrlne
'\xBC' ,//176 3/4 1/4 center
'\'' ,//177 8 ' indent >
'\0' ,//200
'\0' ,//201 - / o/
'\0' ,//202
'\x10' ,//203 N
'\0' ,//204 last word
'\x16' ,//205 V
'\x18' ,//206 X
'\0' ,//207 margin right
'\0' ,//210
'\0' ,//211 . .
'\x0D' ,//212 M
'\x02' ,//213 B
'\0' ,//214 DEL del word
'\x03' ,//215 C
'\x1A' ,//216 Z
'\0' ,//217
'\0' ,//220 tab + tab-
'\0' ,//221 ; ;
'\x0C' ,//222 L
'\x07' ,//223 G
'\x0A' ,//224 J
'\x04' ,//225 D
'\0' ,//226 margin left
'\0' ,//227
'\0' ,//230 up
'\0' ,//231 ij *
'\x0B' ,//232 K
'\x06' ,//233 F
'\x08' ,//234 H
'\x13' ,//235 S
'\0' ,//236 CAPS
'\x01' ,//237 A
'\0' ,//240 down
'\x09' ,//241 I
'\x19' ,//242 Y
'\x17' ,//243 W
'\x12' ,//244 R
'\0' ,//245 TAB
'\0' ,//246 umlaut ^
'\x10' ,//247 P
'\0' ,//250
'\x0F' ,//251 O
'\x15' ,//252 U
'\x05' ,//253 E
'\x14' ,//254 T
'\x11' ,//255 Q
'\0' ,//256 + =
'\0' ,//257 ENTER
'\0' ,//260 BS autortrn
'<' ,//261 7 & <
'\0' ,//262 5 % p10 degree
'|' ,//263 1 F |
'`' ,//264 3 Ĺ i1 1/2 `
'\0' ,//265 SPACE
'\0' ,//266 1/2 ! hyphen
'\0' ,//267 9 ( dec.tab
'\0' ,//270 CR
'\0' ,//271 6 _ p12
'\0' ,//272 4 $ i2
'\0' ,//273 margin ignore KB1<>2
'\xB4' ,//274 2 " i1 '/
'\0' ,//275 0 ) undrlne
'\0' ,//276 3/4 1/4 center
'>' ,//277 8 ' indent >
'\0' ,//300
'\0' ,//301 - / o/
'\0' ,//302
'\0' ,//303 N
'\0' ,//304 last word
'\0' ,//305 V
'\0' ,//306 X
'\0' ,//307 margin right
'\0' ,//310
'\0' ,//311 . .
'\0' ,//312 M
'\0' ,//313 B
'\0' ,//314 DEL del word
'\0' ,//315 C
'\0' ,//316 Z
'\0' ,//317
'\0' ,//320 tab + tab-
'\0' ,//321 ; ;
'\0' ,//322 L
'\0' ,//323 G
'\0' ,//324 J
'\0' ,//325 D
'\0' ,//326 margin left
'\0' ,//327
'\0' ,//330 up
'\0' ,//331 ij *
'\0' ,//332 K
'\0' ,//333 F
'\0' ,//334 H
'\0' ,//335 S
'\0' ,//336 CAPS
'\0' ,//337 A
'\0' ,//340 down
'\0' ,//341 I
'\0' ,//342 Y
'\0' ,//343 W
'\0' ,//344 R
'\0' ,//345 TAB
'\0' ,//346 umlaut ^
'\0' ,//347 P
'\0' ,//350
'\0' ,//351 O
'\0' ,//352 U
'\0' ,//353 E
'\0' ,//354 T
'\0' ,//355 Q
'\0' ,//356 + =
'\0' ,//357 ENTER
'\0' ,//360 BS autortrn
'\0' ,//361 7 & <
'\0' ,//362 5 % p10 degree
'\0' ,//363 1 F |
'\0' ,//364 3 Ĺ i1 1/2 `
'\0' ,//365 SPACE
'\0' ,//366 1/2 ! hyphen
'\0' ,//367 9 ( dec.tab
'\0' ,//370 CR
'\0' ,//371 6 _ p12
'\0' ,//372 4 $ i2
'\0' ,//373 margin ignore KB1<>2
'\0' ,//374 2 " i1 '/
'\0' ,//375 0 ) undrlne
'\0' ,//376 3/4 1/4 center
'\0' ,//377 8 ' indent >
};
inline char keyToAsciiLiteral(byte key) {return pgm_read_byte_near(key_literal_lut+key);}
}//namespace
#endif