Blink without Delay

Hi,

i wan’t replace the delay’s with millis in this sketch and my goal is if the led five times then flash 10 seconds break and again from the beginning,how i do it?

void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

how i do it?

Use the BWOD example and add a flash counter as a start.

what is BWOD? how i can find it? :o

Arduama: what is BWOD? how i can find it? :o

Blink WithOut Delay. It's one of the examples that comes with the IDE.

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

...R

There should be a section for frequently asked homework assignments. ;)

Whandall: There should be a section for frequently asked homework assignments. ;)

With A+ guaranteed :)

...R