Advertisement
Muzze77

Muzze 4x Test AKW

Jan 5th, 2014
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1.  
  2.  
  3. ---------------------------------------
  4. ---AKWs By Muzze77---------------------
  5. ---------------------------------------
  6. --###########Variablen###############--
  7. local boot = 0
  8. --+++++++++++++++++++++++++++++++++++--
  9. local wh = colors.white
  10. --+++++++++++++++++++++++++++++++++++--
  11. local bl = colors.black
  12. --###################################--
  13. local l1 = 1
  14. --###################################--
  15. ---------------------------------------
  16. --###########Funktionen##############--
  17. local function booting()
  18. while boot <= 90 do
  19. print ("System Startet:")
  20. sleep(0.5)
  21. boot = boot+10
  22. print(boot .. "%")
  23. sleep(0.5)
  24. shell.run("clear")
  25. end
  26. boot = 0
  27. end
  28. --+++++++++++++++++++++++++++++++++++--
  29. local function akws()
  30. while l1 == 1 do
  31. rs.setBundledOutput("back", wh)
  32. print("Weisses Kabel Output")
  33. sleep(25)
  34. rs.setBundledOutput("back", 0)
  35. sleep(0.5)
  36. shell.run("clear")
  37. if rs.getInput("left") == true then
  38. sleep(0.2)
  39. rs.setBundledOutput("back", 0)
  40. else
  41.  
  42. l1 = l1+1
  43. end
  44. end
  45.  
  46. while l1 == 2 do
  47. rs.setBundledOutput("back", bl)
  48. print("Schwarzes Kabel Output")
  49. sleep(25)
  50. rs.setBundledOutput("back", 0)
  51. sleep(0.5)
  52. shell.run("clear")
  53. if rs.getInput("left") == true then
  54. sleep(0.2)
  55. rs.setBundledOutput("back", 0)
  56. else
  57.  
  58. l1 = l1-1
  59. end
  60. end
  61. end
  62. --###################################--
  63. ---------------------------------------
  64. --###########Programm################--
  65.  
  66.  
  67. while rs.getInput("top") and rs.getInput("left") do
  68. print("Faehrt AKW Hoch")
  69. sleep(0.3)
  70. shell.run("clear")
  71. sleep(0.2)
  72. print("Bitte Warten!")
  73. booting()
  74. akws()
  75.  
  76. sleep(2)
  77.  
  78. end
  79. print("Kein Signal")
  80. sleep(0.3)
  81. shell.run("reboot")
  82. --###################################--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement