[J]oby mailed in his Launchpad Metronome project. A visual metronome is a device which musicians use to keep time to beats. An LED flashes or a loud sound plays at fixed intervals. Who would have thought of using the Launchpad for this? No external components needed – all that is required is the onboard LED and pushbutton.
Timer0 increments a global tick counter. On button press an interrupt is fired and the current tick count is stored. After two button presses the LED period (in ticks) is stored. The LED is then toggled at the this period.
Visit his blog for more details and code. Shout a comment on his blog, if you like it.