This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
niek_1999's profile picture

How can I connect 1 computer to two monitors in version 1.46

Started by niek_1999, 22 February 2014 - 10:53 AM
niek_1999 #1
Posted 22 February 2014 - 11:53 AM
I want to show a text one 2 monitors whit the use of only one computer.

I currently use this code:
monitor = peripheral.wrap("left")
monitor.clear()
monitor.setCursorPos(1,1)
monitor.setTextScale(2)
monitor.write("test")

I want to show it also on the right monitor
6677 #2
Posted 22 February 2014 - 01:56 PM
monitor2 = peripheral.wrap("right")
monitor2.clear()
monitor2.setCursorPos(1,1)
monitor2.setTextScale(2)
monitor2.write("test")


Simply declare a second monitor variable. Then write to both monitors seperately. You could also write your own functions to print to 2 monitors simultaneously with 1 call.
Edited on 22 February 2014 - 12:58 PM
niek_1999 #3
Posted 23 February 2014 - 05:19 AM
Thanks

Helped a lot