Advertisement
jared314

Elevator Receiver

Jul 11th, 2014
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. while true do
  2. rednet.open("left")
  3. ID, msg, distance = rednet.receive()
  4.     if msg == "L" then
  5.         rs.setOutput("right", false)
  6.     else if msg == "B" then
  7.         rs.setOutput("right", false)
  8.     else if msg == "2" then
  9.         rs.setOutput("right", true)
  10.     else if msg == "3" then
  11.         rs.setOutput("right", false)
  12.     else if msg == "4" then
  13.         rs.setOutput("right", false)
  14.     else if msg == "5" then
  15.         rs.setOutput("right", false)
  16.     end
  17.     end
  18.     end
  19.     end
  20.     end
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement