Hi Matts,
i am also a diver. till now i have a hartenberger dive light with a halogen bulp. i am happy with this. very robust and good color rendition. but now i want also a dive light with a (deep)blue + white led for night diving. i have also a high power uv light with a nichia 365nm led, but without white leds. i also know about the night vision. my other hobby is astro photography.
i can not make an extra switch for powering of, cause the flashlite is i faulty body from ebay. it is this body:
http://www.amazon.com/Intova-SuperNova-Rechargeable-Scuba-Diving/dp/B006VEMJ3K
i think i understand your code and hope i can write some new code with it.
@Awol thanks too i will try to understand your code too!
thanks alot.