Go Down

Topic: problem fading and blinking leds simultaneously with millis (Read 2148 times) previous topic - next topic


And to further try to help you understand the problem, the delay(50) I suggested was merely to illustrate that your LEDs are in fact blinking on and off in sequence, and not all at once.  So if you remove that delay you will once again get what would appear to be a smooth fade on pin 10, however that's merely an illusion.  Because of your for loop, the fade gets interrupted every 13 cycles.

You should rethink how you're delaying the blinking and not interrupt the fade at the same time.



Awesome.  Work on it a bit, and post your findings.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131