This tiny library ensures that a button input only triggers an event once.
To install (on OSX) or in general, Git Bash worked for me on Windows 7:
cd
to your default Arduino directory- Run this in the directory
git clone git://github.com/d2kagw/arduino-tap-library.git Tap
- Open (or relaunch) the Arduino IDE
- Select
Sketch > Import Library... > Tap
- Profit.
Examples are in the examples
directory.
Enjoy.