I’ve put the code that drives this in a github project named resin-nametag. It’s pretty simple:
- It sets up the driver and userspace utilities for the PaPiRus HAT
- It generates a QR code from a provided URL
- It uses Imagemagick to combine a black and white image (of my face unless you change it ) with the QR code and some text
- Finally it just draws that image to the ePaper display
I stuck some metal on the back (properly insulated, of course!) so that I can attach it to my shirt with a magnet.
This way I can update my badge and then unplug the Pi so I don’t have to carry a battery around with me. Because the display is ePaper, it won’t clear until I plug back in and push a change.
I can’t wait to go to the next conference with this!