Advertisement
Guest User

test

a guest
May 27th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. function controlled()
  2. while true do
  3. local modem = peripheral.wrap("top")
  4. modem.open(3)
  5. local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
  6. if "a" == message  then
  7. rs.setOutput("back", true)
  8. sleep(1)
  9. rs.setOutput("back", false)
  10. end
  11. end
  12. end
  13.  
  14. return controlled()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement