otherwise the mode change will be so fast you'll end up with a random selection.
Quoteotherwise the mode change will be so fast you'll end up with a random selection.In my code, the mode changes only once each time the switch is pressed. The speed at which it changes depends entirely on how fast the user presses and releases the switch.
There's the debouncing problem though...
QuoteThere's the debouncing problem though...True, but what OP wanted to do in each mode was going to take time, so debouncing would be handled by that.