Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------
- ---AKWs By Muzze77---------------------
- ---------------------------------------
- --###########Variablen###############--
- local boot = 0
- --+++++++++++++++++++++++++++++++++++--
- local wh = colors.white
- --+++++++++++++++++++++++++++++++++++--
- local bl = colors.black
- --###################################--
- local l1 = 1
- --###################################--
- ---------------------------------------
- --###########Funktionen##############--
- local function booting()
- while boot <= 90 do
- print ("System Startet:")
- sleep(0.5)
- boot = boot+10
- print(boot .. "%")
- sleep(0.5)
- shell.run("clear")
- end
- boot = 0
- end
- --+++++++++++++++++++++++++++++++++++--
- local function akws()
- while l1 == 1 do
- rs.setBundledOutput("back", wh)
- print("Weisses Kabel Output")
- sleep(25)
- rs.setBundledOutput("back", 0)
- sleep(0.5)
- shell.run("clear")
- if rs.getInput("left") == true then
- sleep(0.2)
- rs.setBundledOutput("back", 0)
- else
- l1 = l1+1
- end
- end
- while l1 == 2 do
- rs.setBundledOutput("back", bl)
- print("Schwarzes Kabel Output")
- sleep(25)
- rs.setBundledOutput("back", 0)
- sleep(0.5)
- shell.run("clear")
- if rs.getInput("left") == true then
- sleep(0.2)
- rs.setBundledOutput("back", 0)
- else
- l1 = l1-1
- end
- end
- end
- --###################################--
- ---------------------------------------
- --###########Programm################--
- while rs.getInput("top") and rs.getInput("left") do
- print("Faehrt AKW Hoch")
- sleep(0.3)
- shell.run("clear")
- sleep(0.2)
- print("Bitte Warten!")
- booting()
- akws()
- sleep(2)
- end
- print("Kein Signal")
- sleep(0.3)
- shell.run("reboot")
- --###################################--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement