Advertisement
Guest User

test

a guest
Feb 6th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. term.clear()
  2.  
  3. m = peripheral.wrap("back")
  4. m.setTextScale(3)
  5.  
  6. term.setTextColor(4)
  7. term.setBackgroundColor(64)
  8. term.setCursorPos(3,3)
  9. print ("Ein/Aus")
  10. term.setBackgroundColor(64)
  11.  
  12.  
  13. while true do
  14. event,side,x,y = os.pullEvent()
  15.  if event == "monitor_touch" then
  16.   if x == 3 and  y == 3 then
  17.   redstone.setOutput("left", true)
  18.   sleep(1)
  19.   event,side,x,y = os.pullEvent()
  20.    if event == "monitor_touch" then
  21.     if x == 3 and y == 3 then
  22.     redstone.setOutput("left", false
  23.     end
  24.    end
  25.   end
  26.  end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement