loop within the loop

Hello :slight_smile:

I want to run a loop within the loop. In my code now I want to have the led to blink with 1 second apart, and every three seconds, the buzzer to buzz, but when i use delay the led flashes and then I need to wait the three seconds for the buzzer to finish before it starts flash again.

Is this where you use the "for" statment? Do you have an example? :slight_smile:

This is a job for the "Blink Without Delay" paradigm.

You need to study the "Blink Without Delay" example to see how to control your timing without using delay.

You need to study the "Blink Without Delay" example to see how to control your timing without using delay.

Yeshhh, you should do it . . .

The demo Several Things at a Time is an extended example of BWoD

...R