Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local monitor
  2.  
  3. function writeAt(x,y,text)
  4. monitor.setCursorPos(x,y)
  5. monitor.write(text)
  6. end
  7.  
  8. function startMonitor()
  9. monitor = peripheral.wrap("right")
  10. end
  11.  
  12. function drawDisplay()
  13. monitor.clear()
  14. writeAt(1,1,"***************************")
  15. writeAt(1,2,"* awesome faction *")
  16. writeAt(1,3,"***************************")
  17. writeAt(1,4,"**")
  18. writeAt(1,5,"**")
  19. end
  20.  
  21. startMonitor()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement