-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathInitFunctions.ino
57 lines (55 loc) · 1.08 KB
/
InitFunctions.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
void clearAll()
{
int i;
for(i = 0; i < nLEDs; i++)
{
repTL.setPixelColor(i, 0);
spltMtoRTL.setPixelColor(i, 0);
repTR.setPixelColor(i,0);
spltBLtoMem.setPixelColor(i,0);
ARegtoMux.setPixelColor(i,0);
jl.setPixelColor(i,0);
mem.setPixelColor(i,0);
pc.setPixelColor(i,0);
mux.setPixelColor(i,0);
DReg.setPixelColor(i,0);
alu.setPixelColor(i,0);
ARegtoMem.setPixelColor(i,0);
spltBLtoA.setPixelColor(i,0);
spltMtoD.setPixelColor(i,0);
repBR.setPixelColor(i,0);
}
repTL.show();
spltMtoRTL.show();
repTR.show();
spltBLtoMem.show();
ARegtoMux.show();
jl.show();
mem.show();
pc.show();
mux.show();
DReg.show();
alu.show();
ARegtoMem.show();
spltBLtoA.show();
spltMtoD.show();
repBR.show();
}
void initLED()
{
repTL.begin();
spltMtoRTL.begin();
repTR.begin();
spltBLtoMem.begin();
ARegtoMux.begin();
jl.begin();
mem.begin();
pc.begin();
mux.begin();
DReg.begin();
alu.begin();
ARegtoMem.begin();
spltBLtoA.begin();
spltMtoD.begin();
repBR.begin();
}