#Need help w rgb led and button w pico
1 messages · Page 1 of 1 (latest)
I’m pretty sure the wiring is good
I think it’s somewhere in the code
Where I didnt do something
so right now you've just got it setup to change to static colors, one random color, and then repeat
i dont see a button actually controlling anything here
o how do i change the code for it
well you have the ability to detect if the button is pressed, but all youre doing is print a message. you are going to need a way to store information on if the light should be on or off, and adjust your main loop accordingly
Please share the code like shown in #📄・posting-guidelines message.
I'd recommend that you take 1 more minute to read the full #📄・posting-guidelines and make sure that your post respect it
nvm found the problem
I was supposed to put the code for the rgbs lights in the if section