|
Re: Arduino help -RGB LED
A couple more things that I found that are going to give you problems.
You're declaring ledState variables inside the pushCounter conditions within the loop. It looks like you're intending to try to maintain that state between loops and this will not accomplish that. You're already declaring a global ledState at the top, why are you redeclaring and reinitializing them again in the conditions?
The same goes for previousSlowMillis and previousFastMillis. They will always be 0 since you're reinitializing them every loop.
|