Example touch detection code for the Bare Conductive Pi Cap. Writes simple touch / release event messages to stdout.
- Requires python-dev (
apt-get install python-dev
) - Requires WiringPi (
apt-get install wiringpi
) - Requires Bare Conductive's MPR121 libary for WiringPi
- You should install this code as part of the Pi Cap Raspbian package:
sudo apt-get install picap
- However, if you are doing this yourself, clone the repository and follow the usage instructions.
python simple-touch.py
N.B. must be run as root