MaximumFrank

main

Mar 25th, 2016
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. function start()
  2. --stop terminate events
  3. os.pullEvent = os.pullEventRaw
  4.  
  5. --clear the screen
  6. func.clear()
  7.  
  8. --check if drive is present
  9. if periph.pScan('drive') == 1 then
  10. drive = true
  11. end
  12.  
  13. --check if monitor is present
  14. if periph.pScan('monitor') == 1 then
  15. monitor = true
  16.  
  17. end
  18.  
  19. --check if printer is present
  20. if periph.pScan('printer') == 1 then
  21. printer = true
  22. end
  23.  
  24. --check if modem is present
  25. if periph.pScan('modem') == 1 then
  26. modem = true
  27. periph.modem()
  28. end
  29.  
  30. --start main menu
  31. ui.main()
  32. end
Add Comment
Please, Sign In to add comment