Opinions Wanted

You would have to configure the instant-off function to use something other than a long press or a short press, since those are both already spoken for...

Tom E has already done something similar, using a timer function - if you stay in the same mode longer than X and then do a short press, it turns off. If it's inside the timer window it changes mode like normal.

Richard was talking about using a longer press to go direct to off. Tweaking the press_duration checks would be the way I'd add direct to off. Instead of going directly to the previous mode when LONG_PRESS_DUR is reached, it would need a second check like there is in the else code. I think... It looks like it's already sort of a timer, sort of because it looks like every time it cycles and see the button is still pressed, it runs that if statement again and increments the press_duration. I need to look at the code some more.

I also need to build a test rig so I can easily rewrite the firmware and quickly test it without the hassle of dealing with a flashlight.

I suggested that way back when, by doing whatever in the code to check when the switch is released, instead of just how long it's pressed. Like, less than X is a short press, more than X but less than Y is a long press, and more than Y is the 'off' command. But I'm code illiterate, all I could do was describe it about as poorly as I did just now. :shy:

You do a good job explaining it. Hopefully I'll be up to speed enough that I can make little contributions soon. Not knowing C isn't that big of a problem. Code is code. A code reference and time is usually enough to get things done, and having a testing rig will help with saving lots of time testing changes. I really should have started looking into this when I first joined, and then I'd be writing code for anything you guys could think up...at least if it fit on the chip. Everyone here is pretty new to this though, and what's already been developed is very impressive. I can't wait to see what happens in a couple more years.

I have ordered the 'Dipper H33' (post #3), because why not. Think it'll be like a single cell Torchlite with a side switch? :|

There are so many nice mod hosts right now, and not enough time and money to play with all of them...and now Daylighter is going to try to prove me wrong by buying all of them!

wallbuys.com-YEZL-Y3

I really like the Yezl Y3 for high amps - uni-body pill, pill-top is 3 mm thick, maybe little more, real nice heat sinking and bigger reflector than a HD2010 - more throw. Can take 26650 or 18650. I even fit in the new 26700 5000 (5300) mAh tested cell -- it's basically a KK with higher capacity. The lights comfy linked look awesome too.

The Y3 has a real SS bezel by the way, and a tail switch, so if you wanted to make it pure direct drive, you can still use the tail switch for power cutoff.

DayLighter tipped me off for the Y3, same for the Warsun X60 which I have one on the way. Good thing he buys at least one of each of everything!