r/arduino•
nvrmoar

Does anyone have an example of how to use two different delays for two LEDs that start at the same time and end at different times?

Hello. I'm a bit confused as to how I would write code to make two LEDs start at the same time, but stop at different times.

For instance:
If Button Pressed:
LED on
5 second delay
Buzzer on for 1 second
1 second delay

However, I don't want them to start separately. How can I program this? Thanks very much in advance.

Posted Apr 15, 2016, 2:30 AM UTC · edited

04
Loading comments…