Advertisement
karelvysinka

STARTUP2

May 7th, 2015
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. -----------------------------------------------
  2. --DISPLAY LAMP SOFTWARE STARTUP2 PASTEBIN: NkzsSg1M
  3. -----------------------------------------------
  4. --execute command
  5. function ExecuteCom()
  6.   print("Execute command..")
  7.   print(message)
  8. end
  9. -----------------------------------------------
  10. --recieve command
  11. function RecieveCommand()
  12.   rednet.open("left")
  13.   message = rednet.recieve()
  14.   print(message)
  15. end
  16. -----------------------------------------------
  17. --start program
  18.  
  19. while true do
  20.   print("Starting program STARTUP2")
  21.   RecieveCommand()
  22.   ExecuteCom()
  23.   print("Stoping program STARTUP2")
  24. end
  25. -----------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement