Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- m = peripheral.wrap("right")
- p = peripheral.wrap("back")
- m.clear()
- function fillTable()
- button.setTable("white",white,3,17,1,3)
- button.setTable("orange",orange,3,17,5,7)
- button.setTable("magenta",magenta,3,17,9,11)
- button.setTable("light blue",light_blue,3,17,13,15)
- button.setTable("yellow",yellow,3,17,17,19)
- button.setTable("lime",lime,3,17,1,3)
- button.setTable("pink",pink,3,17,5,7)
- button.setTable("grey",grey,3,17,9,11)
- ----------------------------------------------------
- button.setTable("light grey",light_grey,23,37,13,15)
- button.setTable("cyan",cyan,23,37,17,19)
- button.setTable("purple",purple,23,37,9,11)
- button.setTable("blue",blue,23,37,13,15)
- button.setTable("brown",brown,23,37,17,19)
- button.setTable("green",green,23,37,17,19)
- button.setTable("red",red,23,37,17,19)
- button.setTable("black",black,23,37,17,19)
- button.screen()
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x, y)
- end
- fillTable()
- while true do getClick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement