-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.h
106 lines (102 loc) · 4.97 KB
/
demo.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
#include <stdint.h>
typedef enum _Color {
MOVE = 1,
LINE = 2,
CW = 3,
CCW = 4,
EXT_CW = 5,
EXT_CCW = 6
} Color;
typedef enum _Type {
BLACK = 1,
WHITE = 2,
RED = 3,
GREEN = 4,
BLUE = 5
} Type;
typedef struct _Part {
uint8_t x;
uint8_t y;
uint8_t r;
Color color;
Type type;
} Part;
Part demo[] = {
{.type = MOVE, .x = 78, .y = 13, .r = 0, .color = RED},
{.type = LINE, .x = 198, .y = 13, .r = 0, .color = RED},
{.type = LINE, .x = 198, .y = 118, .r = 0, .color = RED},
{.type = LINE, .x = 48, .y = 118, .r = 0, .color = RED},
{.type = LINE, .x = 48, .y = 43, .r = 0, .color = RED},
{.type = LINE, .x = 78, .y = 13, .r = 0, .color = RED},
{.type = MOVE, .x = 55, .y = 85, .r = 0, .color = RED},
{.type = CW, .x = 192, .y = 46, .r = 114, .color = RED},
{.type = MOVE, .x = 71, .y = 96, .r = 0, .color = RED},
{.type = CCW, .x = 182, .y = 54, .r = 81, .color = RED},
{.type = MOVE, .x = 75, .y = 63, .r = 0, .color = RED},
{.type = EXT_CCW, .x = 128, .y = 39, .r = 34, .color = RED},
{.type = MOVE, .x = 84, .y = 56, .r = 0, .color = RED},
{.type = EXT_CCW, .x = 115, .y = 42, .r = 25, .color = RED},
{.type = MOVE, .x = 105, .y = 53, .r = 0, .color = RED},
{.type = EXT_CW, .x = 105, .y = 71, .r = 11, .color = RED},
{.type = MOVE, .x = 109, .y = 61, .r = 0, .color = RED},
{.type = EXT_CCW, .x = 109, .y = 79, .r = 11, .color = RED},
{.type = MOVE, .x = 46, .y = 149, .r = 0, .color = RED},
{.type = LINE, .x = 46, .y = 142, .r = 0, .color = RED},
{.type = CW, .x = 74, .y = 142, .r = 14, .color = RED},
{.type = LINE, .x = 65, .y = 142, .r = 0, .color = RED},
{.type = CCW, .x = 54, .y = 142, .r = 6, .color = RED},
{.type = LINE, .x = 54, .y = 149, .r = 0, .color = RED},
{.type = CCW, .x = 65, .y = 149, .r = 6, .color = RED},
{.type = LINE, .x = 74, .y = 149, .r = 6, .color = RED},
{.type = CW, .x = 46, .y = 149, .r = 14, .color = RED},
{.type = MOVE, .x = 77, .y = 128, .r = 0, .color = RED},
{.type = LINE, .x = 85, .y = 128, .r = 0, .color = RED},
{.type = LINE, .x = 85, .y = 141, .r = 0, .color = RED},
{.type = LINE, .x = 98, .y = 141, .r = 0, .color = RED},
{.type = LINE, .x = 98, .y = 128, .r = 0, .color = RED},
{.type = LINE, .x = 106, .y = 128, .r = 0, .color = RED},
{.type = LINE, .x = 106, .y = 163, .r = 0, .color = RED},
{.type = LINE, .x = 98, .y = 163, .r = 0, .color = RED},
{.type = LINE, .x = 98, .y = 149, .r = 0, .color = RED},
{.type = LINE, .x = 85, .y = 149, .r = 0, .color = RED},
{.type = LINE, .x = 85, .y = 163, .r = 0, .color = RED},
{.type = LINE, .x = 77, .y = 163, .r = 0, .color = RED},
{.type = LINE, .x = 77, .y = 128, .r = 0, .color = RED},
{.type = MOVE, .x = 119, .y = 128, .r = 0, .color = RED},
{.type = LINE, .x = 131, .y = 128, .r = 0, .color = RED},
{.type = LINE, .x = 140, .y = 163, .r = 0, .color = RED},
{.type = LINE, .x = 132, .y = 163, .r = 0, .color = RED},
{.type = LINE, .x = 131, .y = 156, .r = 0, .color = RED},
{.type = LINE, .x = 119, .y = 156, .r = 0, .color = RED},
{.type = LINE, .x = 118, .y = 163, .r = 0, .color = RED},
{.type = LINE, .x = 110, .y = 163, .r = 0, .color = RED},
{.type = LINE, .x = 119, .y = 128, .r = 0, .color = RED},
{.type = MOVE, .x = 125, .y = 136, .r = 0, .color = RED},
{.type = LINE, .x = 125, .y = 136, .r = 0, .color = RED},
{.type = LINE, .x = 129, .y = 149, .r = 0, .color = RED},
{.type = LINE, .x = 121, .y = 149, .r = 0, .color = RED},
{.type = LINE, .x = 125, .y = 136, .r = 0, .color = RED},
{.type = MOVE, .x = 141, .y = 149, .r = 0, .color = RED},
{.type = LINE, .x = 141, .y = 142, .r = 0, .color = RED},
{.type = CW, .x = 169, .y = 142, .r = 14, .color = RED},
{.type = LINE, .x = 169, .y = 149, .r = 0, .color = RED},
{.type = CW, .x = 141, .y = 149, .r = 14, .color = RED},
{.type = MOVE, .x = 149, .y = 149, .r = 0, .color = RED},
{.type = LINE, .x = 149, .y = 142, .r = 0, .color = RED},
{.type = CW, .x = 160, .y = 142, .r = 6, .color = RED},
{.type = LINE, .x = 160, .y = 149, .r = 0, .color = RED},
{.type = CW, .x = 149, .y = 149, .r = 6, .color = RED},
{.type = MOVE, .x = 174, .y = 142, .r = 0, .color = RED},
{.type = LINE, .x = 174, .y = 135, .r = 0, .color = RED},
{.type = CW, .x = 199, .y = 137, .r = 14, .color = RED},
{.type = LINE, .x = 191, .y = 137, .r = 0, .color = RED},
{.type = CCW, .x = 181, .y = 142, .r = 6, .color = RED},
{.type = LINE, .x = 186, .y = 142, .r = 0, .color = RED},
{.type = CW, .x = 198, .y = 149, .r = 14, .color = RED},
{.type = LINE, .x = 198, .y = 156, .r = 0, .color = RED},
{.type = CW, .x = 172, .y = 153, .r = 14, .color = RED},
{.type = LINE, .x = 181, .y = 153, .r = 0, .color = RED},
{.type = CCW, .x = 191, .y = 149, .r = 6, .color = RED},
{.type = LINE, .x = 186, .y = 149, .r = 0, .color = RED},
{.type = CW, .x = 174, .y = 142, .r = 14, .color = RED}
};