Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local printer = peripheral.wrap("left")
- local success = printer.newPage()
- if success then
- printer.write("Hello world!")
- printer.endPage()
- print("Page was printed successfully.")
- else
- error("Page could not be created. Check if there is any paper and ink in the printer.")
- end
Advertisement
Add Comment
Please, Sign In to add comment