-
Notifications
You must be signed in to change notification settings - Fork 1
/
zwift-jersey.ino
92 lines (87 loc) · 1.6 KB
/
zwift-jersey.ino
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
#define ARRAYSIZE 52
String codes[ARRAYSIZE] = {
"Goalienware",
"ATOC2015",
"GOAMGENTOC",
"GOBATTENKILL",
"BICYCLINGMAG",
"BIKERADAR",
"BIKEANDBEER",
"CANBERRACCKIT",
"GOCIS",
"CRCANYC",
"GOCYCLEOPS",
"GOELITE",
"GOFREESPEED",
"GoGCN",
"GEARPATROL",
"GEELONGCCKIT",
"GOLDCOAST",
"GOLONGRIDERS",
"GOVISION",
"GOINGAMBA",
"Hikkit32616",
"JENSIE",
"LAFUGA.CC",
"LAVA",
"MDCCKit",
"MTSKIT",
"MGCCKit",
"NCCMAKIT",
"PCGKIT32516",
"GOPEARSON",
"RIDEPOWERTAP",
"RIDEQUARQ",
"RADAVIST",
"RIDEAUSTRALIA",
"ROAD.CC",
"GOSKRYE",
"SIGMASPORT",
"SLOWTWITCH",
"SOIGNEURDK",
"STKILDA2015KIT",
"SYDNEYCCKIT",
"GOTACX",
"TDP2015",
"GOTRAINSHARP",
"TRIATHLETEMAG",
"TSBIKES",
"GOUSMES",
"VCGHKIT",
"WAHOOFITNESS",
"GOWBR",
"GOWSR",
"ZTHKIT"
};
boolean start = true;
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
}
void loop() {
if (start) {
for (int i = 0; i < ARRAYSIZE; i++) {
printCode(codes[i]);
}
delay(400);
Keyboard.print("p");
delay(200);
Keyboard.print("All done!");
start = false;
}
ledBlink(LED_BUILTIN, 300);
}
void printCode(String code) {
delay(400);
Keyboard.print("p");
delay(200);
Keyboard.print(code);
delay(400);
Keyboard.println();
}
void ledBlink(int led, int delayRate) {
delay(delayRate);
digitalWrite(led, HIGH);
delay(delayRate);
digitalWrite(led, LOW);
}