/*
There are rules to help people distinguish dots from dashes in Morse code.
The length of a dot is 1 time unit.
A dash is 3 time units.
The space between symbols (dots and dashes) of the same letter is 1 time unit.
The space between letters is 3 time units.
The space between words is 7 time units.
*/
void setup() {
// put your setup code here, to run once:
pinMode(7, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
// SOS in morse code:
// "S"
for(int i=1; i<=3; i++)
{digitalWrite(7, HIGH);
delay(200);
digitalWrite(7, LOW);
delay(200);
}
delay(200);
// "O"
for(int i=1; i<=3; i++)
{digitalWrite(7, HIGH);
delay(600);
digitalWrite(7, LOW);
delay(200);
}
delay(200);
// "S"
for(int i=1; i<=3; i++)
{digitalWrite(7, HIGH);
delay(200);
digitalWrite(7, LOW);
delay(200);
}
delay(1000);
}