Backup of David's Google+ Posts

So, it's Saturday afternoon, the kids are away playing with friends, the wife is sleeping in the next room for the night shift. What am I going to do? Reprogram the flashlight!  It's always bugged me how I have to click the button a few times to cycle the different brightness levels when turning it on or off.  Time to fix that.

It really ought to be: One-click on to previous brightness.  One-click off.  Or, quickly click to cycle through different brightnesses, and have the final brightness saved for the one-click setting.

HexBrighthttp://hexbright.com/

Arduinohttp://arduino.cc/en/Main/Software

Sample Codehttps://github.com/hexbright/samples

YouTube tutorialProgramming your Hexbright

Comments

David Blume on Jan 19, 2013
Actually, since I have kids, the best fix turns out to be even simpler. Always start with the weakest setting, and if the button is clicked quickly, cycle to brighter settings. Otherwise, the next click will mean off. (Hold to strobe is still there.)

This prevents the problem of having saved the brightest setting, and then having a kid accidentally turning it on while looking at the LED.

David Blume on Feb 1, 2013
I uploaded the change here: https://github.com/dblume/hexbright-factory

SNj Vaper on Feb 9, 2014
can you program in a half click or momentary click to cycle through settings of brightness?