View difference between Paste ID: pwcC2Ptq and anmtvnkv
SHOW: | | - or go back to the newest paste.
1
rednet.open("right")
2
t = turtle
3
m = peripheral.wrap("left")
4
5
6
function run()
7-
  term.clear()
7+
8
 term.clear()
9-
  id, message = rednet.receive()
9+
10-
  sleep(0.1)
10+
 id, message = rednet.receive()
11
 sleep(0.1)
12-
  startProgram(message)
12+
	
13-
 end
13+
14
 startProgram(message)
15
16-
function startProgram()
16+
17-
 if input == "clear" then
17+
18-
    for i = 1,16 do
18+
19-
      rs.setOutput("bottom", true)
19+
function startProgram(input)
20-
	os.sleep(0.2)
20+
if input == "clear" then
21-
	rs.setOutput("bottom", false)
21+
    for i = 1,15 do
22-
      m.dropDown(6,1)
22+
        rs.setAnalogOutput("bottom", 1)
23
	os.sleep(0.1)
24-
 os.sleep(1)
24+
	rs.setAnalogOutput("bottom", 0)
25-
print ("done")
25+
        os.sleep(4)
26
	m.dropDown(6,1)
27-
  return
27+
        os.sleep(0.5)
28
    end
29
  m.suckDown(6,15)
30
  print ("Clear!")
31
os.sleep(2)
32
term.clear()
33
 --os.sleep(300)
34
35
  end
36
 -- return
37
--end
38
39
while true do
40
  run()
41
end