Ok, so I built a board and tested it with a working rear clicky firmware. All fine and working
Then I uploaded the new dual switch firmware and soldered a small cable to the outer ring.
I connected it to a battery and it starts in direct drive (=the highest mode).
If I touch the otc pad (=pin 2) with the small cable it should change modes right?
Anyway, nothing happens. I tried a few other pins on the attiny, but only the fet pin (=pin 3) did lower the output and as soon as I removed the small cable it was at direct drive again.
I tried both firmware versions and also tried it with and without the otc cap, because this is not needed in a dual switch light right? But no difference, I can’t get it to switch modes.
Here is a pictures of the driver, sorry it is a little bit dirty looking now.
FWIW, Ferrero Rocher is supposed to blink once and shut off when power is connected. Short and long presses should go through the modes in opposite directions. However, it also tries to use two pins for battery indicator LEDs, and that could be messing with the behavior.
I suspect that what happens is a short or long press cycles normally until you let go, then it tries to indicate battery status by turning on one or two pins. This causes the light to turn on another power channel at 100%, and it drowns out any mode changes you do afterward.
If you disable the battery indicator code, it’ll probably behave a bit better. But this at least suggests that the e-switch pin is physically working.