Advertisement
WorldTeacher

stonework control

Jul 4th, 2022
929
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. os.loadAPI("BryButtonAPI")
  2.  
  3. monitor = peripheral.find("monitor")
  4. monitor.setTextScale(1)
  5. monitor.setBackgroundColor(colors.black)
  6.  
  7. function FactoryControl(state)
  8.     if state then
  9.         rs.setOutput("right",true)
  10.     else
  11.         rs.setOutput("right",false)
  12.     end
  13. end
  14.  
  15. red=colors.red
  16. green=colors.green
  17.  
  18. Stw=BryButtonAPI.createNewButton(1,1,"Fact",red,green,true,FactoryControl)
  19. list={Stw}
  20. BryButtonAPI.drawButtons(list)
  21. while true do
  22.     BryButtonAPI.checkButtonsPressed(monitor,list,0,print)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement