Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local b = require("button")
- local m = peripheral.wrap("right")
- m.setBackgroundColor(colors.black)
- m.clear()
- while true do
- local input = b.timetouch(1, "right")
- b.menu("right", input, 1, 2, 2, "white", "green", "white", "white", true, 1)
- b.menu("right", input, 2, 2, 3, "white", "green", "orange", "orange", true, 2)
- b.menu("right", input, 3, 2, 4, "white", "green", "red", "red", true, 3)
- b.menu("right", input, 4, 2, 5, "white", "green", "cyan", "cyan", true, 4)
- aswitch = b.switchn("right", menuout[2], input, 10, 3, "red", "green", "black", "off", "on")
- if menuout ~= nil then
- b.signal("left", aswitch, menuout[1])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement