Advertisement
hoblin

Lamp client up

Nov 25th, 2012
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. rednet.open("front")
  2. rednet.open("bottom")
  3. while true do
  4.   sender, message, distance = rednet.receive(1)
  5.   if message == "lightOn" then
  6.     rs.setOutput('top', true)
  7.   elseif message == "lightOff" then
  8.     rs.setOutput('top', false)
  9.   end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement