Mors code form Wikipedia
https://upload.wikimedia.org/wikipedia/commons/b/b5/International_Morse_Code.svg
We have had students programing there name and trying to decipher each others code
// C++ code
//
int led = 13;
void setup()
{
pinMode(led, OUTPUT);
Serial.begin(9600);
}
void loop()
{
//This is the S
digitalWrite(led, HIGH); //this turns on the led
delay(300); // Wait for 1000 millisecond(s)
digitalWrite(led, LOW); //This turns off the led
delay(300); // Wait for 1000 millisecond(s)
digitalWrite(led, HIGH);
delay(300); // Wait for 1000 millisecond(s)
digitalWrite(led, LOW);
delay(300); // Wait for 1000 millisecond(s)
digitalWrite(led, HIGH);
delay(300); // Wait for 1000 millisecond(s)
digitalWrite(led, LOW);
delay(300); // Wait for 1000 millisecond(s)
//This is the Space
}
}