Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- m = peripheral.wrap("back")
- m.clear()
- --------------------------------
- function fillTable()
- button.setTable("Button1", button1, 3, 11, 3, 5)
- button.screen()
- end
- function getClickt()
- event, side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- function button1()
- button.toggleButton("Button1")
- end
- ----------------------------------
- fillTable()
- button.heading("Button Test")
- while true do
- getClickt()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement