Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- m = peripheral.wrap("left")
- m.clear()
- function button1() button.toggleButton("Appel")
- rs.setOutput("top", true)
- sleep(2)
- rs.setOutput("top", false)
- button.toggleButton("Appel")
- end
- function ecran()
- button.setTable("Appel",button1,1,7,1,5)
- button.screen()
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- ecran()
- while true do getClick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement