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(" ", test1, 0, 7,0,5)
- button.screen()
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- function test1()
- button.flash(" ")
- rs.setOutput("right", true)
- sleep(47)
- rs.setOutput("right", false)
- end
- function test2()
- button.toggleButton("Test2")
- print("Test2")
- end
- function test3()
- print("Test3")
- end
- function test4()
- print("Test4")
- end
- fillTable()
- while true do
- getClick()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement