For a small project I’m working on I needed to attach a few buttons to a Raspberry Pi and have some code execute in response to the button presses. Normally I would reach for Python for a simple project like this, but constraints of the project made it necessary to implement something in C with minimal dependencies. I didn’t want to write something that was tied closely to my project…