Blink 2
Here is the entire code:
void setup()
{
pinMode(led, OUTPUT);
}
void loop()
{
flash(400);
delay(100);
flash(400);
delay(100);
flash(400);
delay(300);
flash(1200);
delay(100);
flash(1200);
delay(100);
flash(1200);
delay(300);
flash(400);
delay(100);
flash(400);
delay(100);
flash(400);
delay(300);
}
void flash(int duracion)
{
digitalWrite(led, HIGH);
delay(duracion);
digitalWrite(led, LOW);
}
By: Juan Antonio Calvete and Joel PoderĂ³s.