AVR-C code for an ATtiny based device, which will play a sound when being shaken.