SHARE
TWEET

startup

a guest Aug 25th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local modem = peripheral.wrap("top")
  2. modem.open(10)
  3.  
  4. while true do
  5.   local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
  6.   if message == "on" then
  7.     rs.setOutput("left", true)
  8.     rs.setOutput("right", true)
  9.     rs.setOutput("back", true)
  10.     rs.setOutput("front", true)
  11.   elseif message == "off" then
  12.     rs.setOutput("left", false)
  13.     rs.setOutput("right", false)
  14.     rs.setOutput("back", false)
  15.     rs.setOutput("front", false)
  16.   else
  17.     os.sleep(1)
  18.   end
  19. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top