LED Fade Loop Inturruption with Push Button

septillion:
And if you just want simple, have a look at my library FadeLed :slight_smile:

If you REALLY want simple, simply read the state of the switch on each pass through each for loop. Break out of the loop if the switch is pressed. As long as you press the switch for 10 milliseconds, polling will be sufficient to not miss any presses.