Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- os.loadAPI("button")
- m = peripheral.wrap("back")
- m.clear()
- function button1() button.toggleButton("rez de chausser")
- rednet.send(1,"open")
- sleep(10)
- rednet.send(1,"0")
- button.toggleButton("rez de chausser")
- end
- function button2() button.toggleButton("-2")
- rednet.send(1,"2")
- button.toggleButton("-2")
- end
- function button3() button.toggleButton("-3")
- rednet.send(1,"3")
- button.toggleButton("-3")
- end
- function ecran()
- button.setTable("rez de chausser",button1,8,25,3,3)
- button.setTable("-2",button2,8,25,6,6)
- button.setTable("-3",button3,8,25,9,9)
- 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