How To Build a Flashlight With Perfect Modes (picture heavy)

This thread might help:

All I needed was three parts (a soic clip, a usbasp firmware programmer, and a ribbon cable) and some software.

This might help too:
http://bazaar.launchpad.net/~toykeeper/flashlight-firmware/trunk/view/head:/README