Advertisement
chaoscrafter

Untitled

Dec 15th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. mon = peripheral.wrap("front")
  2. mon.clear()
  3. mon.setTextScale(1.5)
  4.  
  5. mon.setCursorPos(2,1)
  6. mon.write("Licht =")
  7.  
  8.  
  9. while true do
  10. event,side,x,y = os.pullEvent("monitor_touch")
  11.  
  12. elseif x > 7 and x < 8 and y == 2 and rs.getOutput ("top") == true Then
  13. rs.setOutput("top",true)
  14. mon.setCursorPos(2,1)
  15. mon.clearLine()
  16. mon.blit("Licht = OFF","00000000000","eeeeeeeeeee")
  17.  
  18. elseif x > 7 and x < 8 and y == 2 and rs.getOutput("top") == true then
  19. re.setOutput("top",flase)
  20. mon.setCursorPos(2,1)
  21. mon.clearLine()
  22. mon.blit("Licht = ON","0000000000","eeeeeeeeee")
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement