View difference between Paste ID: 19t2xuVj and bKCJft9R
SHOW: | | - or go back to the newest paste.
1
mon = peripheral.wrap("front")
2
term.getSize()
3
4
for i=1,15 do
5
mon.clearLine()
6
mon.setCursorPos(1,6)
7
mon.write(i)
8
rs.setAnalogOutput("left", true)
9
mon.setCursorPos(1,1)
10-
mon.setCursorPos(1,4)
10+
11
mon.setCursorPos(1,2)
12
os.sleep(800)
13
rs.setAnalogOutput("right", true)
14
rs.setAnalogOutput("left", false)
15
mon.clear()
16
mon.clearLine()
17
mon.write("2 is on")
18
mon.setCursorPos(1,3)
19
mon.write("Set 1 off")
20
mon.setCursorPos(1,6)
21
mon.clearLine()
22-
mon.write("Set 2 on")
22+
23
os.sleep(60)
24
end