Bistro was written for mechanical switches. This is an e-switch light. It could probably be modified, even easily if I understand as well as I think I do, but its not just a direct drop-in.
I’d be okay with this idea too, but I do like the idea of a ramping UI. So if that’s an option I’d like to see it played out.
While we’re throwing ideas around, since this will be a fairly large PCB with lots of room, it would be nice to have ready to use places to solder some 7135 on the unused pins of the MCU. It would make it easier to add, say, an extra colored LED that way. Or a photodiode or some other weird mod.
I got e-switch firmware now with more configuration settings than Bistro - 12 sets of modes to choose from, optional moon, and ability to set the level of moon, etc.
Simple 1 click ON, 1 click OFF, navigate to next and previous modes
12 mode sets to choose from, 1 to 8 modes/output levels can be configured, and then saved
Modes can be arranged for low to hi, or hi to low
Multiple strobe and beacon modes can be accessed, total of 5 special modes (16 Hz strobe, police strobe, bike strobe, 2 sec beacon, and 10 sec beacon), and you can configure all blinkies disabled, only one strobe, or the full set
Low Voltage Protection (LVP) – output is decreased starting at ~3.0v, shut off at ~2.7v
Turbo timeout can be enabled/disabled, and the time be set
When power is applied, 2 blinks indicate it’s ready
An Indicator LED (SMD LED) is supported as a locator LED and low voltage indicator
Battery Check – blink out the voltage level (ex: 3.7v would be 3 blinks, pause, then 7 blinks)
Lock-out feature for the side switch – enabled and disable by a special click sequence
Mode memory can be enabled to quickly restore the last used mode setting, but not recommended
A power tail switch can be used to change modes w/memory
With some members posting their interest in a moon mode for this light, and given that it has four emitters, inf a moon mode is to be part of the specs, would it be possible/practical to have the moon mode light only one emitter?
That would require quite a hardware adaptation. Instead, a nice way to create moon could be to make the led behind the side switch a nice warm white one instead of a colour led, so it can be indicator light, battery check and moonlight in one.
I get some crazy low output in a 3 LED SupFire M6, like sub 1 lumen, with this firmware running a FET+1 driver. And yes, you can make a indicator PCB LED as effective as a low moon mode. I got one of those too.
Dunno how accurate these #'s are, this is down in the dirt for the meter and light box, but:
SupFire M6 moon (PWM value of 2): 0.14 lumens
ZY-T11 clone moon (PWM value of 2): 0.068 lumens
Pics showing the M6 moon, and the indicator/locator LED's:
Careful here . I've kind of/sort of have some originality in the firmware, but certainly not all. I'm re-using some very useful code TK wrote, as well as others. It's a blending, saves time, saves re-testing, leverages what's been proven. We still need to add ramping, and this is hoping we can negotiate the inclusion of our own firmware into the manufacturing.