Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("gcapi")
- os.loadAPI("multiMon")
- local monitorSetup = {{},{},{}}
- local monitors = {}
- for k,v in pairs(peripheral.getNames()) do
- if peripheral.getType(v) == "monitor" then
- table.insert(monitors, peripheral.wrap(v))
- end
- end
- table.sort(monitors)
- for k,v in pairs(monitors) do
- if k == 1 then k = 2 end
- table.insert(monitorSetup[((k%3)+1)], v)
- end
- local disp = multiMon.create('myMonitor', monitorSetup)
- while true do
- write("Enter the url: ")
- gcapi.printImageFromURL(gcapi.split(read()," ")[1], disp, true)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement