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 FactoryControl(state)
- if state then
- rs.setOutput("right",true)
- else
- rs.setOutput("right",false)
- end
- end
- red=colors.red
- green=colors.green
- Stw=BryButtonAPI.createNewButton(1,1,"Fact",red,green,true,FactoryControl)
- list={Stw}
- BryButtonAPI.drawButtons(list)
- while true do
- BryButtonAPI.checkButtonsPressed(monitor,list,0,print)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement