Code for staging light.   Eclipse project setup for ATMega328P (arduino MCU).  Could easily be compiled to run on a ATTiny48/88.