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