Statistics
| Branch: | Revision:

root / arduino-1.0 / hardware / arduino / cores / arduino / binary.h @ 58d82c77

History | View | Annotate | Download (10.1 KB)

1
#ifndef Binary_h
2
#define Binary_h
3

    
4
#define B0 0
5
#define B00 0
6
#define B000 0
7
#define B0000 0
8
#define B00000 0
9
#define B000000 0
10
#define B0000000 0
11
#define B00000000 0
12
#define B1 1
13
#define B01 1
14
#define B001 1
15
#define B0001 1
16
#define B00001 1
17
#define B000001 1
18
#define B0000001 1
19
#define B00000001 1
20
#define B10 2
21
#define B010 2
22
#define B0010 2
23
#define B00010 2
24
#define B000010 2
25
#define B0000010 2
26
#define B00000010 2
27
#define B11 3
28
#define B011 3
29
#define B0011 3
30
#define B00011 3
31
#define B000011 3
32
#define B0000011 3
33
#define B00000011 3
34
#define B100 4
35
#define B0100 4
36
#define B00100 4
37
#define B000100 4
38
#define B0000100 4
39
#define B00000100 4
40
#define B101 5
41
#define B0101 5
42
#define B00101 5
43
#define B000101 5
44
#define B0000101 5
45
#define B00000101 5
46
#define B110 6
47
#define B0110 6
48
#define B00110 6
49
#define B000110 6
50
#define B0000110 6
51
#define B00000110 6
52
#define B111 7
53
#define B0111 7
54
#define B00111 7
55
#define B000111 7
56
#define B0000111 7
57
#define B00000111 7
58
#define B1000 8
59
#define B01000 8
60
#define B001000 8
61
#define B0001000 8
62
#define B00001000 8
63
#define B1001 9
64
#define B01001 9
65
#define B001001 9
66
#define B0001001 9
67
#define B00001001 9
68
#define B1010 10
69
#define B01010 10
70
#define B001010 10
71
#define B0001010 10
72
#define B00001010 10
73
#define B1011 11
74
#define B01011 11
75
#define B001011 11
76
#define B0001011 11
77
#define B00001011 11
78
#define B1100 12
79
#define B01100 12
80
#define B001100 12
81
#define B0001100 12
82
#define B00001100 12
83
#define B1101 13
84
#define B01101 13
85
#define B001101 13
86
#define B0001101 13
87
#define B00001101 13
88
#define B1110 14
89
#define B01110 14
90
#define B001110 14
91
#define B0001110 14
92
#define B00001110 14
93
#define B1111 15
94
#define B01111 15
95
#define B001111 15
96
#define B0001111 15
97
#define B00001111 15
98
#define B10000 16
99
#define B010000 16
100
#define B0010000 16
101
#define B00010000 16
102
#define B10001 17
103
#define B010001 17
104
#define B0010001 17
105
#define B00010001 17
106
#define B10010 18
107
#define B010010 18
108
#define B0010010 18
109
#define B00010010 18
110
#define B10011 19
111
#define B010011 19
112
#define B0010011 19
113
#define B00010011 19
114
#define B10100 20
115
#define B010100 20
116
#define B0010100 20
117
#define B00010100 20
118
#define B10101 21
119
#define B010101 21
120
#define B0010101 21
121
#define B00010101 21
122
#define B10110 22
123
#define B010110 22
124
#define B0010110 22
125
#define B00010110 22
126
#define B10111 23
127
#define B010111 23
128
#define B0010111 23
129
#define B00010111 23
130
#define B11000 24
131
#define B011000 24
132
#define B0011000 24
133
#define B00011000 24
134
#define B11001 25
135
#define B011001 25
136
#define B0011001 25
137
#define B00011001 25
138
#define B11010 26
139
#define B011010 26
140
#define B0011010 26
141
#define B00011010 26
142
#define B11011 27
143
#define B011011 27
144
#define B0011011 27
145
#define B00011011 27
146
#define B11100 28
147
#define B011100 28
148
#define B0011100 28
149
#define B00011100 28
150
#define B11101 29
151
#define B011101 29
152
#define B0011101 29
153
#define B00011101 29
154
#define B11110 30
155
#define B011110 30
156
#define B0011110 30
157
#define B00011110 30
158
#define B11111 31
159
#define B011111 31
160
#define B0011111 31
161
#define B00011111 31
162
#define B100000 32
163
#define B0100000 32
164
#define B00100000 32
165
#define B100001 33
166
#define B0100001 33
167
#define B00100001 33
168
#define B100010 34
169
#define B0100010 34
170
#define B00100010 34
171
#define B100011 35
172
#define B0100011 35
173
#define B00100011 35
174
#define B100100 36
175
#define B0100100 36
176
#define B00100100 36
177
#define B100101 37
178
#define B0100101 37
179
#define B00100101 37
180
#define B100110 38
181
#define B0100110 38
182
#define B00100110 38
183
#define B100111 39
184
#define B0100111 39
185
#define B00100111 39
186
#define B101000 40
187
#define B0101000 40
188
#define B00101000 40
189
#define B101001 41
190
#define B0101001 41
191
#define B00101001 41
192
#define B101010 42
193
#define B0101010 42
194
#define B00101010 42
195
#define B101011 43
196
#define B0101011 43
197
#define B00101011 43
198
#define B101100 44
199
#define B0101100 44
200
#define B00101100 44
201
#define B101101 45
202
#define B0101101 45
203
#define B00101101 45
204
#define B101110 46
205
#define B0101110 46
206
#define B00101110 46
207
#define B101111 47
208
#define B0101111 47
209
#define B00101111 47
210
#define B110000 48
211
#define B0110000 48
212
#define B00110000 48
213
#define B110001 49
214
#define B0110001 49
215
#define B00110001 49
216
#define B110010 50
217
#define B0110010 50
218
#define B00110010 50
219
#define B110011 51
220
#define B0110011 51
221
#define B00110011 51
222
#define B110100 52
223
#define B0110100 52
224
#define B00110100 52
225
#define B110101 53
226
#define B0110101 53
227
#define B00110101 53
228
#define B110110 54
229
#define B0110110 54
230
#define B00110110 54
231
#define B110111 55
232
#define B0110111 55
233
#define B00110111 55
234
#define B111000 56
235
#define B0111000 56
236
#define B00111000 56
237
#define B111001 57
238
#define B0111001 57
239
#define B00111001 57
240
#define B111010 58
241
#define B0111010 58
242
#define B00111010 58
243
#define B111011 59
244
#define B0111011 59
245
#define B00111011 59
246
#define B111100 60
247
#define B0111100 60
248
#define B00111100 60
249
#define B111101 61
250
#define B0111101 61
251
#define B00111101 61
252
#define B111110 62
253
#define B0111110 62
254
#define B00111110 62
255
#define B111111 63
256
#define B0111111 63
257
#define B00111111 63
258
#define B1000000 64
259
#define B01000000 64
260
#define B1000001 65
261
#define B01000001 65
262
#define B1000010 66
263
#define B01000010 66
264
#define B1000011 67
265
#define B01000011 67
266
#define B1000100 68
267
#define B01000100 68
268
#define B1000101 69
269
#define B01000101 69
270
#define B1000110 70
271
#define B01000110 70
272
#define B1000111 71
273
#define B01000111 71
274
#define B1001000 72
275
#define B01001000 72
276
#define B1001001 73
277
#define B01001001 73
278
#define B1001010 74
279
#define B01001010 74
280
#define B1001011 75
281
#define B01001011 75
282
#define B1001100 76
283
#define B01001100 76
284
#define B1001101 77
285
#define B01001101 77
286
#define B1001110 78
287
#define B01001110 78
288
#define B1001111 79
289
#define B01001111 79
290
#define B1010000 80
291
#define B01010000 80
292
#define B1010001 81
293
#define B01010001 81
294
#define B1010010 82
295
#define B01010010 82
296
#define B1010011 83
297
#define B01010011 83
298
#define B1010100 84
299
#define B01010100 84
300
#define B1010101 85
301
#define B01010101 85
302
#define B1010110 86
303
#define B01010110 86
304
#define B1010111 87
305
#define B01010111 87
306
#define B1011000 88
307
#define B01011000 88
308
#define B1011001 89
309
#define B01011001 89
310
#define B1011010 90
311
#define B01011010 90
312
#define B1011011 91
313
#define B01011011 91
314
#define B1011100 92
315
#define B01011100 92
316
#define B1011101 93
317
#define B01011101 93
318
#define B1011110 94
319
#define B01011110 94
320
#define B1011111 95
321
#define B01011111 95
322
#define B1100000 96
323
#define B01100000 96
324
#define B1100001 97
325
#define B01100001 97
326
#define B1100010 98
327
#define B01100010 98
328
#define B1100011 99
329
#define B01100011 99
330
#define B1100100 100
331
#define B01100100 100
332
#define B1100101 101
333
#define B01100101 101
334
#define B1100110 102
335
#define B01100110 102
336
#define B1100111 103
337
#define B01100111 103
338
#define B1101000 104
339
#define B01101000 104
340
#define B1101001 105
341
#define B01101001 105
342
#define B1101010 106
343
#define B01101010 106
344
#define B1101011 107
345
#define B01101011 107
346
#define B1101100 108
347
#define B01101100 108
348
#define B1101101 109
349
#define B01101101 109
350
#define B1101110 110
351
#define B01101110 110
352
#define B1101111 111
353
#define B01101111 111
354
#define B1110000 112
355
#define B01110000 112
356
#define B1110001 113
357
#define B01110001 113
358
#define B1110010 114
359
#define B01110010 114
360
#define B1110011 115
361
#define B01110011 115
362
#define B1110100 116
363
#define B01110100 116
364
#define B1110101 117
365
#define B01110101 117
366
#define B1110110 118
367
#define B01110110 118
368
#define B1110111 119
369
#define B01110111 119
370
#define B1111000 120
371
#define B01111000 120
372
#define B1111001 121
373
#define B01111001 121
374
#define B1111010 122
375
#define B01111010 122
376
#define B1111011 123
377
#define B01111011 123
378
#define B1111100 124
379
#define B01111100 124
380
#define B1111101 125
381
#define B01111101 125
382
#define B1111110 126
383
#define B01111110 126
384
#define B1111111 127
385
#define B01111111 127
386
#define B10000000 128
387
#define B10000001 129
388
#define B10000010 130
389
#define B10000011 131
390
#define B10000100 132
391
#define B10000101 133
392
#define B10000110 134
393
#define B10000111 135
394
#define B10001000 136
395
#define B10001001 137
396
#define B10001010 138
397
#define B10001011 139
398
#define B10001100 140
399
#define B10001101 141
400
#define B10001110 142
401
#define B10001111 143
402
#define B10010000 144
403
#define B10010001 145
404
#define B10010010 146
405
#define B10010011 147
406
#define B10010100 148
407
#define B10010101 149
408
#define B10010110 150
409
#define B10010111 151
410
#define B10011000 152
411
#define B10011001 153
412
#define B10011010 154
413
#define B10011011 155
414
#define B10011100 156
415
#define B10011101 157
416
#define B10011110 158
417
#define B10011111 159
418
#define B10100000 160
419
#define B10100001 161
420
#define B10100010 162
421
#define B10100011 163
422
#define B10100100 164
423
#define B10100101 165
424
#define B10100110 166
425
#define B10100111 167
426
#define B10101000 168
427
#define B10101001 169
428
#define B10101010 170
429
#define B10101011 171
430
#define B10101100 172
431
#define B10101101 173
432
#define B10101110 174
433
#define B10101111 175
434
#define B10110000 176
435
#define B10110001 177
436
#define B10110010 178
437
#define B10110011 179
438
#define B10110100 180
439
#define B10110101 181
440
#define B10110110 182
441
#define B10110111 183
442
#define B10111000 184
443
#define B10111001 185
444
#define B10111010 186
445
#define B10111011 187
446
#define B10111100 188
447
#define B10111101 189
448
#define B10111110 190
449
#define B10111111 191
450
#define B11000000 192
451
#define B11000001 193
452
#define B11000010 194
453
#define B11000011 195
454
#define B11000100 196
455
#define B11000101 197
456
#define B11000110 198
457
#define B11000111 199
458
#define B11001000 200
459
#define B11001001 201
460
#define B11001010 202
461
#define B11001011 203
462
#define B11001100 204
463
#define B11001101 205
464
#define B11001110 206
465
#define B11001111 207
466
#define B11010000 208
467
#define B11010001 209
468
#define B11010010 210
469
#define B11010011 211
470
#define B11010100 212
471
#define B11010101 213
472
#define B11010110 214
473
#define B11010111 215
474
#define B11011000 216
475
#define B11011001 217
476
#define B11011010 218
477
#define B11011011 219
478
#define B11011100 220
479
#define B11011101 221
480
#define B11011110 222
481
#define B11011111 223
482
#define B11100000 224
483
#define B11100001 225
484
#define B11100010 226
485
#define B11100011 227
486
#define B11100100 228
487
#define B11100101 229
488
#define B11100110 230
489
#define B11100111 231
490
#define B11101000 232
491
#define B11101001 233
492
#define B11101010 234
493
#define B11101011 235
494
#define B11101100 236
495
#define B11101101 237
496
#define B11101110 238
497
#define B11101111 239
498
#define B11110000 240
499
#define B11110001 241
500
#define B11110010 242
501
#define B11110011 243
502
#define B11110100 244
503
#define B11110101 245
504
#define B11110110 246
505
#define B11110111 247
506
#define B11111000 248
507
#define B11111001 249
508
#define B11111010 250
509
#define B11111011 251
510
#define B11111100 252
511
#define B11111101 253
512
#define B11111110 254
513
#define B11111111 255
514

    
515
#endif