Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --# Load the API
- os.loadAPI('/multiMon')
- --# Create the monitors object (the monitors are arranged in the world the same way you see them in the table below).
- local monitorSetup = {
- {peripheral.wrap('monitor_6'), peripheral.wrap('monitor_7'), peripheral.wrap('monitor_8')}
- }
- --# Create the virtual monitor (will also return the handle).
- local disp = multiMon.create('myMonitor', monitorSetup)
- --# Showcasing some basic functions.
- disp.setTextScale(0.5)
- if disp.isColour() then
- disp.setTextColour(colours.white)
- disp.setBackgroundColour(colours.black)
- end
- disp.setCursorBlink(false)
- disp.clear()
- disp.setCursorPos(1, 1)
- local width, height = disp.getSize()
- --# Writes random characters onto the screen.
- disp.write("TESTING 123456789")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement