-
Notifications
You must be signed in to change notification settings - Fork 2
/
EverythingOn.ino
46 lines (42 loc) · 1.65 KB
/
EverythingOn.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
#include "Constants.h"
void setup() {
pinMode(Lights[0], PATTERN_INITIALIZE);
pinMode(Lights[1], PATTERN_INITIALIZE);
pinMode(Lights[2], PATTERN_INITIALIZE);
pinMode(Lights[3], PATTERN_INITIALIZE);
pinMode(Lights[4], PATTERN_INITIALIZE);
pinMode(Lights[5], PATTERN_INITIALIZE);
pinMode(Lights[6], PATTERN_INITIALIZE);
pinMode(Lights[7], PATTERN_INITIALIZE);
pinMode(Lights[8], PATTERN_INITIALIZE);
pinMode(Lights[9], PATTERN_INITIALIZE);
pinMode(Lights[10], PATTERN_INITIALIZE);
pinMode(Lights[11], PATTERN_INITIALIZE);
pinMode(Lights[12], PATTERN_INITIALIZE);
pinMode(Lights[13], PATTERN_INITIALIZE);
pinMode(Lights[14], PATTERN_INITIALIZE);
pinMode(Lights[15], PATTERN_INITIALIZE);
}
// code above the man is ignored by the emulator
// code below it is transpiled into js and run by the emulator
// )'(
// Scenes
// roughly: anything that calls `digitalWrite();` is a scene
void loop() {
digitalWrite(Lights[0], PATTERN_ON);
digitalWrite(Lights[1], PATTERN_ON);
digitalWrite(Lights[2], PATTERN_ON);
digitalWrite(Lights[3], PATTERN_ON);
digitalWrite(Lights[4], PATTERN_ON);
digitalWrite(Lights[5], PATTERN_ON);
digitalWrite(Lights[6], PATTERN_ON);
digitalWrite(Lights[7], PATTERN_ON);
digitalWrite(Lights[8], PATTERN_ON);
digitalWrite(Lights[9], PATTERN_ON);
digitalWrite(Lights[10], PATTERN_ON);
digitalWrite(Lights[11], PATTERN_ON);
digitalWrite(Lights[12], PATTERN_ON);
digitalWrite(Lights[13], PATTERN_ON);
digitalWrite(Lights[14], PATTERN_ON);
digitalWrite(Lights[15], PATTERN_ON);
}