Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.write("Looking for connected devices:")
- for i, dev in pairs(peripheral.getNames()) do
- print()
- term.write(" " .. dev)
- if(peripheral.getType(dev) == "monitor") then
- term.write(" ready")
- local mon = peripheral.wrap(dev)
- mon.setBackgroundColor(colors.white)
- mon.setTextColor(colors.black)
- mon.setTextScale(2)
- mon.setCursorPos(1,1)
- mon.clear()
- -- zacatek vypisu textu
- mon.write(" Vitejte na")
- mon.setCursorPos(3, 2)
- mon.write(" Promenade!")
- end
- end
- print()
- print("script ended")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement