Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Check if the printer is connected
- if not peripheral.isPresent("right") then
- print("No printer found on the right side.")
- return
- end
- -- Get the printer peripheral
- local printer = peripheral.wrap("right")
- -- Check if the printer is ready to print
- if not printer then
- print("Could not wrap the printer peripheral.")
- return
- end
- -- Eject the printed page
- printer.eject()
- print("Page ejected.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement