daily pastebin goal
73%
SHARE
TWEET

red

a guest Feb 14th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("bottom")
  2. while true do
  3.  id, message = rednet.receive()
  4.  print(message)
  5.  
  6.  if message == "0000" then
  7.    rs.setOutput("right", false)
  8.  elseif message == "0001" then
  9.    rs.setOutput("right", true)
  10.  elseif message == "0010" then
  11.    rs.setOutput("left", false)
  12.  elseif message == "0011" then
  13.    rs.setOutput("left", true)
  14.  elseif message == "0020" then
  15.    rs.setOutput("top", false)
  16.  elseif message == "0021" then
  17.    rs.setOutput("top", true)
  18.  elseif message == "0030" then
  19.    rs.setOutput("front", false)
  20.  elseif message == "0031" then
  21.    rs.setOutput("front", true)
  22.  end
  23. end
RAW Paste Data
Top