SHARE
TWEET

Pocked Button Test

DerMarten Jul 28th, 2015 198 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.loadAPI("button")
  2. term.clear()
  3. --------------------------------
  4. function fillTable()
  5.   button.setTable("Licht", licht, 3, 13, 3, 5)
  6.   button.screen()
  7. end
  8.  
  9. function getClickt()
  10.   event, side,x,y = os.pullEvent("monitor_touch")
  11.   button.checkxy(x,y)
  12. end
  13. function licht()
  14.   button.toggleButton("Licht")
  15. end
  16. ----------------------------------
  17. fillTable()
  18. button.heading("Haus Steuerung")
  19. --button.label(4,7,"Nicht angeschlossen")
  20. while true do
  21.   getClickt()
  22. 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