Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- m = peripheral.wrap("back")
- m.clear()
- function button1() button.toggleButton("0")
- print("RDC")
- rs.setOutput("right", true)
- sleep(4)
- rs.setOutput("right", false)
- rs.setOutput("right", true)
- sleep(4)
- rs.setOutput("right", false)
- rs.setOutput("right", true)
- sleep(4)
- rs.setOutput("right", false)
- button.toggleButton("0")
- end
- function button2() button.toggleButton("-1")
- print("-1")
- sleep(1)
- button.toggleButton("-1")
- end
- function button3() button.toggleButton("-2")
- print("-2")
- sleep(1)
- rs.setOutput("front", true)
- sleep(3)
- sleep(3)
- sleep(3)
- sleep(3)
- rs.setOutput("front",false)
- button.toggleButton("-2")
- end
- function ecran()
- button.setTable("0",button1,1,3,1,1)
- button.setTable("-1",button2,5,7,1,1)
- button.setTable("-2", button3,1,3,3,3)
- 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