Quote Originally Posted by peu View Post
If you power up say after 10 seconds it remembers the last mode, but if you do an ON-OFF-ON cycle in less than a second it changes modes as described. Thats the only way to change modes, fast ON-OFFs
So you've got a counter...that counts...and it sits there...counting...
when the power button is pushed...
If the count < x then it saves the next mode and powers down
If the count > x then it doesn't switch modes in eeprom and just powers down