jonassvensson4

Untitled

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