Advertisement
aarock1234

Untitled

Apr 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. --# Load the API
  2. os.loadAPI('/multiMon')
  3. --# Create the monitors object (the monitors are arranged in the world the same way you see them in the table below).
  4. local monitorSetup = {
  5. {peripheral.wrap('monitor_6'), peripheral.wrap('monitor_7'), peripheral.wrap('monitor_8')}
  6. }
  7.  
  8. --# Create the virtual monitor (will also return the handle).
  9. local disp = multiMon.create('myMonitor', monitorSetup)
  10.  
  11. --# Showcasing some basic functions.
  12. disp.setTextScale(0.5)
  13. if disp.isColour() then
  14. disp.setTextColour(colours.white)
  15. disp.setBackgroundColour(colours.black)
  16. end
  17. disp.setCursorBlink(false)
  18. disp.clear()
  19. disp.setCursorPos(1, 1)
  20. local width, height = disp.getSize()
  21.  
  22. --# Writes random characters onto the screen.
  23. disp.write("TESTING 123456789")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement