Hello, I don't know how to change the led strip mode with the button. Can someone help me.
Your post was MOVED to its current location as it is more suitable.
Could you also take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.
The same way you change any program’s flow with a button.
What do you already know about using a button to do anything, like turn on and off an LED?
Post your code so far. If you have no code, worrying about the button is premature. If you do have code, show us and also your best idea about where a button might enter into things.
What ‘mode’ ?
What LED strip ?
I have WS2821B led strip
rainbow / blinking
Some animations take time to complete so you may have to close a switch for a short period of time before the switch is read.
When a switch closer is detected, you can change the animation to the next in your sequence.
A simple State Machine can be used to switch between animation sequences.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.