SHARE
TWEET

Untitled

chaoscrafter Dec 15th, 2019 61 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.0)
  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 > 1 and x < 6 and y == 1 and rs.getOutput("top") == false then  
  13.          rs.setOutput("top",true)
  14.          mon.setCursorPos(2,1)
  15.          mon.clearLine()
  16.          mon.blit("Licht = OFF","0000000000000","ddddddddddddd")
  17.          
  18.     elseif x > 1 and x < 6 and y == 1 and rs.getOutput("top") == true then    
  19.         rs.setOutput("top",false)
  20.         mon.setCursorPos(2,1)
  21.         mon.clearLine()
  22.         mon.blit("Licht = ON","000000000000","eeeeeeeeeeee")
  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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top