Posted 02 January 2014 - 02:20 PM
i want a text on a monitor but how do i do it can sombody help my?
local mon --# Create a variable for the monitor
for _, name in ipairs( peripheral.getNames() ) do -- Loop through all peripherals attached
if peripheral.getType( name ) == "monitor" then -- Check if the peripheral type was a monitor
mon = peripheral.wrap( name ) -- If it was the wrap it
break -- And break from the loop
end
end
Now it's simple, You can do this
mon.write("Hello World!")