I’ve just pushed a couple of things up to the GitHub repository:
- the LibreOffice presentation I gave at yesterday’s CamJam
- the RPi.GPIO python library with enhanced hardware interrupt performance.
To install the RPi.GPIO changes type
cd ~ tar xvf GPIO.tgz cd GPIO sudo python setup.py INSTALL
Then to use the improved performance, instead of calling GPIO.wait_for_edge(), call
- GPIO.edge_detect_init(pin, edge) once at startup
- GPIO.edge_detect_wait(pin) whenever you want to wait for a GPIO pin event
GPIO.wait_for_edge() still exists as a wrapper for these 3 functions. pin and edge are identical parameters as for the standard GPIO.wait_for_edge() call.