gpio-watch: Run scripts in response to GPIO signals
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...read more
Interrupts on the PiFace
I recently acquired both a Raspberry Pi and a PiFace IO board. I had a rough time finding examples of how to read the input ports via interrupts (rather than periodically polling for values), especially for the newer versions of the PiFace python libraries.
After a little research, here's some …read more
I2C on the Raspberry Pi
Interrupt driven GPIO with Python
There are several Python libraries out there for interacting with the GPIO pins on a Raspberry Pi:
- The WiringPi bindings for Python, and
- The Quick2Wire Python API (which depends on Python 3)
All of them are reasonably easy to use, but the Quick2Wire API provides a uniquely useful …read more