Advertisement
Guest User

Untitled

a guest
Oct 12th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. os = require("os")
  2. c= require("component")
  3. r= c.proxy(c.get("b12"))
  4. r2= c.proxy(c.get("6df"))
  5. sides= require("sides")
  6. ins= r.getInput(sides.up)
  7. gpu= c.gpu
  8. colors=require("colors")
  9.  
  10.  
  11. os.execute("clear")
  12. print("Programm wird ausgeführt")
  13. print("")
  14. print("Starte den Computer neu um ihn zu benutzen")
  15. gpu.bind(c.get("2b51"))
  16.  
  17.  
  18. while true do
  19. if ins == 15 then
  20. r2.setOutput(sides.up, 15)
  21. os.execute("wolle")
  22. ins= r.getInput(sides.up)
  23. elseif ins == 0 then
  24. os.sleep (0.2)
  25. r2.setOutput(sides.up, 0)
  26. ins= r.getInput(sides.up)
  27. end
  28.  
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement