Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- wrap the two monitors
- local monitor1 = peripheral.wrap("monitor_85")
- local monitor2 = peripheral.wrap("monitor_86")
- -- easyprint thingy for writing stuff
- local function print1(str, x, y)
- monitor1.setCursorPos(x, y)
- monitor1.write(str)
- end
- local function print2(str, x, y)
- monitor2.setCursorPos(x, y)
- monitor2.write(str)
- end
- -- clear whatever they have currently
- monitor1.clear()
- monitor2.clear()
- -- set their background colours
- monitor1.setBackgroundColor(colors.white)
- monitor2.setBackgroundColor(colors.white)
- -- top monitor text
- monitor2.setTextScale(5)
- monitor2.setTextColor(colors.green)
- monitor2.setCursorPos(2, 1)
- monitor2.write("WELCOME TO")
- monitor2.setTextColor(colors.blue)
- monitor2.setCursorPos(3, 2)
- monitor2.write("IC-TECH")
- -- bottom monitor text
- monitor1.setTextScale(4)
- monitor1.setTextColor(colors.black)
- print1("RECEPTION",1,1)
Advertisement
Add Comment
Please, Sign In to add comment