“Print a file to a thermal printer when you push a button on your RasPi. Get creative!
For my next project, I’m building a machine to simply print a bunch of files by pressing different buttons.
We’re basically going to mash together these two tutorials:
Raspberry Pi Shutdown/Restart Button
Adafruit – Networked Thermal Printer with CUPS
In the end, we’ll write code to print arbitrary text, an image file, a saved text file, and a file retrieved from the Interplanetary File System – a new type of decentralized web!
I’m using the Mini Thermal Printer starter kit – follow the Adafruit tutorial to set up your printer with TTL, but you don’t need the last networking part.
Ready? Let’s go!”