Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os = require("os")
- c= require("component")
- r= c.proxy(c.get("b12"))
- r2= c.proxy(c.get("6df"))
- sides= require("sides")
- ins= r.getInput(sides.up)
- gpu= c.gpu
- colors=require("colors")
- os.execute("clear")
- print("Programm wird ausgeführt")
- print("")
- print("Starte den Computer neu um ihn zu benutzen")
- gpu.bind(c.get("2b51"))
- while true do
- if ins == 15 then
- r2.setOutput(sides.up, 15)
- os.execute("wolle")
- ins= r.getInput(sides.up)
- elseif ins == 0 then
- os.sleep (0.2)
- r2.setOutput(sides.up, 0)
- ins= r.getInput(sides.up)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement