void loop() {
delay(2000); // wait for 2 seconds
digitalWrite(2, HIGH); // turn the LED on (HIGH is the voltage level)
delay(2000); // wait for 2 seconds
digitalWrite(2, LOW); // turn the LED off by making the voltage LOW
}
[quote author=Nick Gammon link=msg=2082269 date=1423423784]
Isn't there an example sketch that does that?
[/quote]It's almost like the blink example but much more sophisticated, because the delay is 2 seconds.