LED strips


Somebody can help me with this code ? I need to change light after pressing limit switcher. Simply, I want to animate LED RGB strips one after another. I tried with this code when I press limit switch first time blue led light, I need to press few times to turn off the less. Why does it happen ?


Hi, you may refer to this link to revise the limit switch’s command.