Arduino
Sample code for SOS Blinking exercise:
// These are "dits", three "dits" in MORSE code mean the letter "S"
// "dits" are shorter, typically about a third the length of a "dah"
digitalWrite(13, HIGH);
delay(200);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(200);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(200);
digitalWrite(13, LOW);
delay(100);
// These are "dahs", three "dahs" in MORSE code mean the letter "O"
// "dahs" are longer, typically three times as long as a "dit"
digitalWrite(13, HIGH);
delay(600);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(600);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(600);
digitalWrite(13, LOW);
delay(100);
// Three more dits for a nother "S", but with a small change at the end
digitalWrite(13, HIGH);
delay(200);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(200);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(200);
digitalWrite(13, LOW);
delay(1400); // These last delay in longer to indicate a break between words, in our case "SOS
// These are "dits", three "dits" in MORSE code mean the letter "S"
// "dits" are shorter, typically about a third the length of a "dah"
digitalWrite(13, HIGH);
delay(200);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(200);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(200);
digitalWrite(13, LOW);
delay(100);
// These are "dahs", three "dahs" in MORSE code mean the letter "O"
// "dahs" are longer, typically three times as long as a "dit"
digitalWrite(13, HIGH);
delay(600);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(600);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(600);
digitalWrite(13, LOW);
delay(100);
// Three more dits for a nother "S", but with a small change at the end
digitalWrite(13, HIGH);
delay(200);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(200);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(200);
digitalWrite(13, LOW);
delay(1400); // These last delay in longer to indicate a break between words, in our case "SOS