SOS Carla is an arduino code capable of switching on and off a LED with Morse code Neocities.
Here's how you can make bold and italic text.
Here I'm going to explain the instructions of he Morse code:
Here's the Morse code works:
Here's how the Morse Code works with arduino programming language:
void setup()
{
pinMode(13, OUTPUT);
}
void loop()
{
//S
digitalWrite(13, HIGH);//turn on the light
delay(200); // Wait for 200 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(200); // Wait for 200 millisecond(s)off
digitalWrite(13, HIGH);//turn on the light
delay(200); // Wait for 200 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(200); // Wait for 200 millisecond(s)off
digitalWrite(13, HIGH);//turn on the light
delay(200); // Wait for 200 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(600); // Wait for 600 millisecond(s)off
//O
digitalWrite(13, HIGH);//turn on the light
delay(600); // Wait for 600 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(600); // Wait for 600 millisecond(s)off
digitalWrite(13, HIGH);//turn on the light
delay(600); // Wait for 600 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(600); // Wait for 600 millisecond(s)off
digitalWrite(13, HIGH);//turn on the light
delay(600); // Wait for 600 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(600); // Wait for 600 millisecond(s)off
//S
digitalWrite(13, HIGH);//turn on the light
delay(200); // Wait for 200 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(200); // Wait for 200 millisecond(s)off
digitalWrite(13, HIGH);//turn on the light
delay(200); // Wait for 200 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(200); // Wait for 200 millisecond(s)off
digitalWrite(13, HIGH);//turn on the light
delay(200); // Wait for 200 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(600); // Wait for 600 millisecond(s)off
//space between words is seven times a dot
delay(1400); // Wait for 1400 millisecond(s)= seven dots
//C
digitalWrite(13, HIGH);//turn on the light
delay(600); // Wait for 600 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(600); // Wait for 600 millisecond(s)off
digitalWrite(13, HIGH);//turn on the light
delay(200); // Wait for 200 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(200); // Wait for 200 millisecond(s)off
digitalWrite(13, HIGH);//turn on the light
delay(600); // Wait for 600 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(600); // Wait for 600 millisecond(s)off
digitalWrite(13, HIGH);//turn on the light
delay(200); // Wait for 200 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(600); // Wait for 600 millisecond(s)off
//A
digitalWrite(13, HIGH);//turn on the light
delay(200); // Wait for 200 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(200); // Wait for 200 millisecond(s)off
digitalWrite(13, HIGH);//turn on the light
delay(600); // Wait for 600 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(600); // Wait for 600 millisecond(s)off
//R
digitalWrite(13, HIGH);//turn on the light
delay(200); // Wait for 200 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(200); // Wait for 200 millisecond(s)off
digitalWrite(13, HIGH);//turn on the light
delay(600); // Wait for 600 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(600); // Wait for 600 millisecond(s)off
digitalWrite(13, HIGH);//turn on the light
delay(200); // Wait for 200 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(600); // Wait for 600 millisecond(s)off
//L
digitalWrite(13, HIGH);//turn on the light
delay(200); // Wait for 200 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(200); // Wait for 200 millisecond(s)off
delay(600); // Wait for 600 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(600); // Wait for 600 millisecond(s)off
digitalWrite(13, HIGH);//turn on the light
digitalWrite(13, HIGH);//turn on the light
delay(200); // Wait for 200 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(200); // Wait for 200 millisecond(s)off
digitalWrite(13, HIGH);//turn on the light
delay(200); // Wait for 200 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(600); // Wait for 600 millisecond(s)off
//A
digitalWrite(13, HIGH);//turn on the light
delay(200); // Wait for 200 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(200); // Wait for 200 millisecond(s)off
digitalWrite(13, HIGH);//turn on the light
delay(600); // Wait for 600 millisecond(s)= a dot
digitalWrite(13, LOW);//turn off the light
delay(600); // Wait for 600 millisecond(s)off
}