Advertisement
hoblin

Lamp client down

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