Nilisco's works great, has continuous on or 30 sec on.
Go to the link, he did a really nice job with this, the cab has 2 "flashlights" in it.
You can map the 30 sec one to a button for a quick light that will go off if you ever accidently hit it without knowing, saving your LED from a possible damage.
It's based off of code from Vijay.
I think you want the cab in the second post.
Thanks Nilisco Vijay WoW Stroths
http://forum.xda-developers.com/show...hlight=nilisco