Ok, I posted a new update to the 45/85 e-switch firmware here: google drive 25/45/85 projects
I cleaned up this share folder now - it has the 3 BAT files I use for AVRDude, and has a ZIP of the full solution/project I use.
Changes:
- One bug fix: eliminated the short flash that occurs switching from hi to OFF to moonlight mode
- other minor clean-ups
I had thought the flash was a hardware issue, and attempted to fix it by adding a resistor to the FET gate input. But learned in the last couple of days that when I was changing modes to OFF, I was writing out a 0 to the TCCR0A register, which is probably not valid. I changed this to "PHASE" and can't reproduce the flash anymore in 4 separate lights I've tested it on so far. I also removed the resistor on the FET input pin I had on a couple of them. This problem has been haunting me for a long time now - been asking around, and seeing reports of it on other firmware/drivers, but could be unrelated there - not sure.
I'm not sure if this was just my version, but I'm suspecting it is. I went back to JonnyC's original STAR eswitch version and though he stored 0 for the PWM mode for the OFF mode, it wasn't actually written out to the register.
So, I probably have this same bug in my original e-switch firmware for the 13A as well. A big Oooopsy!