Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- term.clear()
- --------------------------------
- function fillTable()
- button.setTable("Licht", licht, 3, 13, 3, 5)
- button.screen()
- end
- function getClickt()
- event, side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- function licht()
- button.toggleButton("Licht")
- end
- ----------------------------------
- fillTable()
- button.heading("Haus Steuerung")
- --button.label(4,7,"Nicht angeschlossen")
- while true do
- getClickt()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement