View difference between Paste ID: y3DfRxT6 and 8AgZbxhk
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.setBackgroundColor(colors.blue)
7-
  peripheral.wrap("monitor_5");
7+
  mon2.setBackgroundColor(colors.blue)
8-
  peripheral.wrap("monitor_6");
8+
  mon3.setBackgroundColor(colors.blue)
9-
  peripheral.wrap("monitor_7");
9+
  mon4.setBackgroundColor(colors.blue)
10-
}
10+
11
  mon1.setTextColor(colors.yellow)
12-
function allMonitors()
12+
  mon2.setTextColor(colors.yellow)
13-
	for i=1,#monitors do
13+
  mon3.setTextColor(colors.yellow)
14-
  monitors[i].setBackgroundColor(colors.blue)
14+
  mon4.setTextColor(colors.yellow)
15-
  monitors[i].setTextColor(colors.yellow)
15+
16-
  monitors[i].setCursorPos(6,4.5)
16+
  mon1.setCursorPos(6,4.5)
17-
  monitors[i].setTextScale(5)
17+
  mon2.setCursorPos(6,4.5)
18-
	 sleep(300)
18+
  mon3.setCursorPos(6,4.5)
19-
  monitors[i].clear()
19+
  mon4.setCursorPos(6,4.5)
20-
  monitors[i].write("5 Minutes Remaining")
20+
21-
	end
21+
  mon1.setTextScale(5)
22-
end
22+
  mon2.setTextScale(5)
23-
allMonitors()
23+
  mon3.setTextScale(5)
24
  mon4.setTextScale(5)
25
26
sleep(300)
27
28
  mon1.clear()
29
  mon2.clear()
30
  mon3.clear()
31
  mon4.clear()
32
33
  mon1.write("5 Minutes Remaining")
34
  mon2.write("5 Minutes Remaining")
35
  mon3.write("5 Minutes Remaining")
36
  mon4.write("5 Minutes Remaining")
37
38
shell.run("1min")