Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("BryButtonAPI")
- monitor = peripheral.find("monitor")
- monitor.setTextScale(1)
- monitor.setBackgroundColor(colors.black)
- function control(state)
- if state then
- rs.setOutput("right", true)
- else
- rs.setOutput("right", false)
- end
- end
- red=colors.red
- green=colors.green
- All=BryButtonAPI.createNewButton(2,2,"All",red, green, true,control )
- list={All}
- BryButtonAPI.drawButtons(monitor,list)
- while true do
- BryButtonAPI.checkButtonsPressed(monitor,list, 0, print)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement