The patterns are cycled by pressing a switch that calls an interrupt and increments a counter.
Let me guess. Lots of delay()s, so polling the switch is too slow. Time to rewrite the code to eliminate the delay()s and the interrupt.
The patterns are cycled by pressing a switch that calls an interrupt and increments a counter.
Let me guess. Lots of delay()s, so polling the switch is too slow. Time to rewrite the code to eliminate the delay()s and the interrupt.