Making Project 2

by Charlotta Hellichius

For our second project I picked two new words. These turned out to be Edible and Mousetrap. This was my inspiration post on our class website.

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!

Advertisements