void setup() {
// put your setup code here, to run once:
pinMode(4,OUTPUT); //Make pin 4 an output pin
pinMode(2, OUTPUT); // Make pin 2 an Ouutput pin
}
void loop() {
// put your main code here, to run repeatedly:
// Letter H
//Dot 1
digitalWrite(4, HIGH); //Turn the LED On
delay(500);
digitalWrite(4, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dot 2
digitalWrite(4, HIGH); //Turn the LED On
delay(500);
digitalWrite(4, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dot 3
digitalWrite(4, HIGH); //Turn the LED On
delay(500);
digitalWrite(4, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dot 4
digitalWrite(4, HIGH); //Turn the LED On
delay(500);
digitalWrite(4, LOW); //Turn the LED Off
delay(1500); //Delay between letters
// Letter I
//Dot 1
digitalWrite(4, HIGH); //Turn the LED On
delay(500);
digitalWrite(4, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dot 2
digitalWrite(4, HIGH); //Turn the LED On
delay(500);
digitalWrite(4, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Letter J
//Dot 1
digitalWrite(2, HIGH); //Turn the LED On
delay(500);
digitalWrite(2, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dash 1
digitalWrite(2, HIGH); //Turn the LED On
delay(1500);
digitalWrite(2, LOW); //Turn the LED Off
delay(500); //Delay Dots and dashes
//Dash 2
digitalWrite(2, HIGH); //Turn the LED On
delay(1500);
digitalWrite(2, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dash 3
digitalWrite(2, HIGH); //Turn the LED On
delay(1500);
digitalWrite(2, LOW); //Turn the LED Off
delay(1500); //Delay between letters
//Letter E
//Dot 1
digitalWrite(2, HIGH); //Turn the LED On
delay(500);
digitalWrite(2, LOW); //Turn the LED Off
delay(1500);//Delay Between letters
//Letter S
//Dot 1
digitalWrite(2, HIGH); //Turn the LED On
delay(500);
digitalWrite(2, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dot 2
digitalWrite(2, HIGH); //Turn the LED On
delay(500);
digitalWrite(2, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dot 3
digitalWrite(2, HIGH); //Turn the LED On
delay(500);
digitalWrite(2, LOW); //Turn the LED Off
delay(1500); //Delay between letters
//Letter S
//Dot 1
digitalWrite(2, HIGH); //Turn the LED On
delay(500);
digitalWrite(2, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dot 2
digitalWrite(2, HIGH); //Turn the LED On
delay(500);
digitalWrite(2, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dot 3
digitalWrite(2, HIGH); //Turn the LED On
delay(500);
digitalWrite(2, LOW); //Turn the LED Off
delay(1500); //Delay between letters
//Letter E
//Dot 1
digitalWrite(2, HIGH); //Turn the LED On
delay(500);
digitalWrite(2, LOW); //Turn the LED Off
}