Advertisement
9551

Untitled

Jun 18th, 2021
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. local b = require("button")
  2. local m = peripheral.wrap("right")
  3. m.setBackgroundColor(colors.black)
  4.  
  5. m.clear()
  6.  
  7. while true do
  8. local input = b.timetouch(1, "right")
  9. b.menu("right", input, 1, 2, 2, "white", "green", "white", "white", true, 1)
  10. b.menu("right", input, 2, 2, 3, "white", "green", "orange", "orange", true, 2)
  11. b.menu("right", input, 3, 2, 4, "white", "green", "red", "red", true, 3)
  12. b.menu("right", input, 4, 2, 5, "white", "green", "cyan", "cyan", true, 4)
  13.  
  14. aswitch = b.switchn("right", menuout[2], input, 10, 3, "red", "green", "black", "off", "on")
  15. if menuout ~= nil then
  16. b.signal("left", aswitch, menuout[1])
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement