Blink 2

Here is the entire code:

int led = 12;
void setup()
{
pinMode(led, OUTPUT);
}

void loop()
{
// S en codigo MORSE
flash(400);
delay(100);
flash(400);
delay(100);
flash(400);
delay(300);

// O en codigo MORSE
flash(1200);
delay(100);
flash(1200);
delay(100);
flash(1200);
delay(300);

// S en codigo MORSE
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.