View difference between Paste ID: J57hMJcN and 5dyTfKtY
SHOW: | | - or go back to the newest paste.
1-
monitors = {
1+
mon1 = peripheral.wrap("monitor_0")
2-
  peripheral.wrap("monitor_0");
2+
mon2 = peripheral.wrap("monitor_3")
3-
  peripheral.wrap("monitor_1");
3+
mon3 = peripheral.wrap("monitor_4")
4-
  peripheral.wrap("monitor_2");
4+
mon4 = peripheral.wrap("monitor_7")
5-
  peripheral.wrap("monitor_3");
5+
6-
  peripheral.wrap("monitor_4");
6+
  mon1.clear()
7-
  peripheral.wrap("monitor_5");
7+
  mon2.clear()
8-
  peripheral.wrap("monitor_6");
8+
  mon3.clear()
9-
  peripheral.wrap("monitor_7");
9+
  mon4.clear()
10-
}
10+
11
  mon1.setBackgroundColor(colors.blue)
12-
function allMonitors()
12+
  mon2.setBackgroundColor(colors.blue)
13-
	for i=1,#monitors do
13+
  mon3.setBackgroundColor(colors.blue)
14-
  monitors[i].clear()
14+
  mon4.setBackgroundColor(colors.blue)
15-
  monitors[i].setBackgroundColor(colors.blue)
15+
16-
  monitors[i].setTextColor(colors.yellow)
16+
  mon1.setTextColor(colors.yellow)
17-
  monitors[i].setCursorPos(6,4.5)
17+
  mon2.setTextColor(colors.yellow)
18-
  monitors[i].setTextScale(5)
18+
  mon3.setTextColor(colors.yellow)
19-
		monitors[i].write("3")
19+
  mon4.setTextColor(colors.yellow)
20
21-
  monitors[i].clear()
21+
  mon1.setCursorPos(6,4.5)
22-
  monitors[i].write("2")
22+
  mon2.setCursorPos(6,4.5)
23
  mon3.setCursorPos(6,4.5)
24-
  monitors[i].clear()
24+
  mon4.setCursorPos(6,4.5)
25-
  monitors[i].write("1")
25+
26
  mon1.setTextScale(5)
27-
  monitors[i].clear()
27+
  mon2.setTextScale(5)
28-
  monitors[i].write("GO!")
28+
  mon3.setTextScale(5)
29-
	end
29+
  mon4.setTextScale(5)
30-
end
30+
31-
allMonitors()
31+
  mon1.write("3")
32
  mon2.write("3")
33
  mon3.write("3")
34
  mon4.write("3")
35
36
  sleep(1)
37
38
  mon1.clear()
39
  mon2.clear()
40
  mon3.clear()
41
  mon4.clear()
42
43
  mon1.write("2")
44
  mon2.write("2")
45
  mon3.write("2")
46
  mon4.write("2")
47
48
  sleep(1)
49
50
  mon1.clear()
51
  mon2.clear()
52
  mon3.clear()
53
  mon4.clear()
54
55
  mon1.write("1")
56
  mon2.write("1")
57
  mon3.write("1")
58
  mon4.write("1")
59
60
  sleep(1)
61
62
  mon1.clear()
63
  mon2.clear()
64
  mon3.clear()
65
  mon4.clear()
66
67
  mon1.write("GO!")
68
  mon2.write("GO!")
69
  mon3.write("GO!")
70
  mon4.write("GO!")
71
72
rs.setOutput("right",true)
73
74
shell.run("10min")