Advertisement
realrivals

eclairage (suite)

Oct 13th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local modem = peripheral.wrap("back")
  2. modem.open(14111)
  3. local r = true
  4. while r do
  5.     local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
  6.     term.clear()
  7.     term.setCursorPos(1, 1)
  8.     print(message)
  9.     if message==true then
  10.         rs.setOutput("left", false)
  11.         rs.setOutput("right", true)
  12.         elseif message==false then
  13.         rs.setOutput("right", false)
  14.         rs.setOutput("left", true)
  15.     end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement