Advertisement
chaoscrafter

Untitled

Dec 15th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 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.  
  13. elseif x > 19 and x < 33 and y == 2 and rs.getOutput("top") == false then
  14. rs.setOutput("top",true)
  15. mon.setCursorPos(2,1)
  16. mon.clearLine()
  17. mon.blit("Licht = OFF","0000000000","dddddddddd")
  18.  
  19. elseif x > 19 and x < 33 and y == 2 and rs.getOutput("top") == true then
  20. rs.setOutput("top",false)
  21. mon.setCursorPos(2,1)
  22. mon.clearLine()
  23. mon.blit("Licht = ON","0000000000","eeeeeeeeee")
  24.  
  25.  
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement