SHARE
TWEET

Untitled

chaoscrafter Dec 15th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top