Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i=true
- rednet.open("left")
- rs.setAnalogOutput("right",15)
- while true do
- --m=rednet.receive(secret)
- --print(m)
- if rednet.receive(secret,0)==0 then
- rs.setAnalogOutput("top",0)
- i=false
- end
- if rs.getInput("bottom")==true then
- print("button pressed")
- if i==false then
- rs.setAnalogOutput("top",15)
- i=true
- end
- if i==true then
- rs.setAnalogOutput("top",0)
- sleep(5)
- rs.setAnalogOutput("top",15)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement