Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local printer = peripheral.find("printer")
- -- Check ink status
- print("Ink: " .. printer.getInkLevel() .. "/" .. printer.getMaxInk())
- print("Can print " .. printer.getPrintablePages() .. " pages")
- -- Get full status
- local status = printer.getStatus()
- if status.canPrint then
- print("What will you write?")
- local text = read()
- printer.newPage()
- printer.write(text)
- printer.endPage() -- Uses 5% ink
- end
Advertisement
Add Comment
Please, Sign In to add comment