pyclapper a python tribute to the 80s classic, The Clapper!
pyclapper have been tested on Linux, and requires the following python libraries available:
pygame
version1.9.1release
pyaudio
version0.2.8
Other versions may work as well, these are simply the ones which have been tested.
The pyclapper repository contains 3 files:
clapper.py
contains a function that calls a given callback when a double clap is detected.light.py
contains a simple pygame class which creates a full screen application that can toggle between black and white - simulating a light.main.py
application combiningclapper.py
andlight.py
to toggle the light.
Test it out by running the main.py
file:
python main.py