Advertisement
fantadada

detection

Oct 7th, 2015
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. os.loadAPI("button")
  2. rednet.open("back")
  3. m = peripheral.wrap("top")
  4. m.clear()
  5.  
  6.  
  7.  
  8. function button1() button.toggleButton("Appeler")
  9. rednet.broadcast("ou")
  10. button.toggleButton("Appeler")
  11.  end
  12. end
  13.  
  14. function ecran()
  15. button.setTable("Appeler",button1,8,25,3,3)
  16. button.screen()
  17. end
  18.  
  19. function getClick()
  20. event,side,x,y = os.pullEvent("monitor_touch")
  21. button.checkxy(x,y)
  22. end
  23.  
  24. ecran()
  25.  
  26. while true do getClick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement