Hey Guys,
Sooo, I think I’m going to incorporate morse code into my project and an scan of the world wide web firstly gave me this;
but then also this slightly more informative tutorial.
This is SOS;
int pin = 13;
void setup()
{
pinMode(pin, OUTPUT);
}
void loop()
{
dot(); dot(); dot();
dash(); dash(); dash();
dot(); dot(); dot();
delay(3000);
}
void dot()
{
digitalWrite(pin, HIGH);
delay(250);
digitalWrite(pin, LOW);
delay(250);
}
void dash()
{
digitalWrite(pin, HIGH);
delay(1000);
digitalWrite(pin, LOW);
delay(250);
}
Cool right? I didn’t know you could type it in as dot and dash.
You can check out the full tutorial here.
People are also very wierd.
Have a great night!
I’m quite fond of the “Jabba the Hut Mouse.” Looking forward to seeing your finished project.
The mouse is so adorable!! Nice job on coding, too.