jonassvensson4

Untitled

Aug 17th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. -- ### DATOR 2
  2. rednet.open("top")
  3.  
  4. message = rednet.receive()
  5.  
  6. -- ON
  7. if message == "won1" then
  8.     rs.setOutput("SIDA", true)
  9.         rednet.send(5, "won1")
  10. end
  11. if message == "ton1" then
  12.     rs.setOutput("SIDA", true)
  13.         rednet.send(5, "ton1")
  14. end
  15. if message == "ron1" then
  16.     rs.setOutput("SIDA", true)
  17.         rednet.send(5, "ron1")
  18. end
  19.  
  20.  
  21. -- OFF
  22. if message == "woff1" then
  23.     rs.setOutput("SIDA", false)
  24.         rednet.send(5, "woff1")
  25. end
  26. if message == "toff1" then
  27.     rs.setOutput("SIDA", false)
  28.         rednet.send(5, "toff1")
  29. end
  30. if message == "roff1" then
  31.     rs.setOutput("SIDA", false)
  32.         rednet.send(5, "roff1")
  33. end
Advertisement
Add Comment
Please, Sign In to add comment