SOS Pau is an arduino code capable of switching on and off a LED with Morse Code Neocities.
Here's how you can add an image:
Here's the Morse Code works
Here's how the Morse Code works with arduino programing languagetutorials!
void setup()
{
pinMode(13, OUTPUT);
}
void loop()
{
//{S}
digitalWrite(13, HIGH);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, LOW);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, HIGH);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, LOW);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, HIGH);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, LOW);
delay(600); // Wait for 600 millisecond(s)
//{O}
digitalWrite(13, HIGH);
delay(600); // Wait for 600 millisecond(s)
digitalWrite(13, LOW);
delay(600); // Wait for 600 millisecond(s)
digitalWrite(13, HIGH);
delay(600); // Wait for 600 millisecond(s)
digitalWrite(13, LOW);
delay(600); // Wait for 600 millisecond(s)
digitalWrite(13, HIGH);
delay(600); // Wait for 600 millisecond(s)
digitalWrite(13, LOW);
delay(600); // Wait for 600 millisecond(s)
//{S}
digitalWrite(13, HIGH);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, LOW);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, HIGH);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, LOW);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, HIGH);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, LOW);
delay(600); // Wait for 600 millisecond(s)
digitalWrite(13, LOW);
delay(1000); // Wait for 1000 millisecond(s)
//{P}
digitalWrite(13, HIGH);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, LOW);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, HIGH);
delay(600); // Wait for 600 millisecond(s)
digitalWrite(13, LOW);
delay(600); // Wait for 600 millisecond(s)
digitalWrite(13, HIGH);
delay(600); // Wait for 600 millisecond(s)
digitalWrite(13, LOW);
delay(600); // Wait for 600 millisecond(s)
digitalWrite(13, HIGH);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, LOW);
delay(600); // Wait for 600 millisecond(s)
//{A}
digitalWrite(13, HIGH);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, LOW);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, HIGH);
delay(600); // Wait for 600 millisecond(s)
digitalWrite(13, LOW);
delay(600); // Wait for 600 millisecond(s)
//{U}
digitalWrite(13, HIGH);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, LOW);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, HIGH);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, LOW);
delay(200); // Wait for 200 millisecond(s)
digitalWrite(13, HIGH);
delay(600); // Wait for 600 millisecond(s)
digitalWrite(13, LOW);
delay(600); // Wait for 600 millisecond(s)
}