Led fade on/off

Hi
I’m trying to get a white led strip to fade on for a set time and then fade off from a single button press.
I’ve got fade on/off working on a loop but when I try to trigger it from a button press, it just flashes continuously.
I’m new to this so treat me gently please.

Just look at your code, the error is in line 42.

In case of confusion what @zwieblum is saying is that we cannot help without seeing your program.

It will also be a big help if you describe in detail what it actually does and what you want it to do that is different.

...R

You can find some very useful tips here. Do read and follow them.

Robin2:
In case of confusion what @zwieblum is saying is that we cannot help without seeing your program.

Spoiler! :grinning: