void setup() {
// put your setup code here, to run once:
pinMode(3,OUTPUT); //Make pin 3 an output pin
pinMode(4,OUTPUT); //Make pin 4 an output 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 1
digitalWrite(4, HIGH); //Turn the LED On
delay(500);
digitalWrite(4, LOW); //Turn the LED Off
delay(3500); //Delay between words
//Letter T
//Dash 1
digitalWrite(4, HIGH); //Turn the LED On
delay(1500);
digitalWrite(4, LOW); //Turn the LED Off
delay(1500); //Delay between letters
//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 E
//Dot 1
digitalWrite(4, HIGH); //Turn the LED On
delay(500);
digitalWrite(4, LOW); //Turn the LED Off
delay(1500); //Delay between letters
//Letter R
//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
//Dash 2
digitalWrite(4, HIGH); //Turn the LED On
delay(1500);
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(1500); //Delay between letters
//Letter E
//Dot 1
digitalWrite(4, HIGH); //Turn the LED On
delay(500);
digitalWrite(4, LOW); //Turn the LED Off
//Letter I
//Dot 1
digitalWrite(3, HIGH); //Turn the LED On
delay(500);
digitalWrite(3, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dot 2
digitalWrite(3, HIGH); //Turn the LED On
delay(500);
digitalWrite(3, LOW); //Turn the LED Off
delay(1500); //Delay between letters
//Letter S
//Dot 1
digitalWrite(3, HIGH); //Turn the LED On
delay(500);
digitalWrite(3, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dot 2
digitalWrite(3, HIGH); //Turn the LED On
delay(500);
digitalWrite(3, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dot 3
digitalWrite(3, HIGH); //Turn the LED On
delay(500);
digitalWrite(3, LOW); //Turn the LED Off
delay(1500); //Delay between letters
//Letter A
//Dot 1
digitalWrite(3, HIGH); //Turn the LED On
delay(500);
digitalWrite(3, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dash 2
digitalWrite(3, HIGH); //Turn the LED On
delay(1500);
digitalWrite(3, LOW); //Turn the LED Off
delay(1500); //Delay between letters
//Letter A
//Dot 1
digitalWrite(3, HIGH); //Turn the LED On
delay(500);
digitalWrite(3, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dash 2
digitalWrite(3, HIGH); //Turn the LED On
delay(1500);
digitalWrite(3, LOW); //Turn the LED Off
delay(1500); //Delay between letters
//Letter C
//Dash 1
digitalWrite(3, HIGH); //Turn the LED On
delay(1500);
digitalWrite(3, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dot 2
digitalWrite(3, HIGH); //Turn the LED On
delay(500);
digitalWrite(3, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dash 3
digitalWrite(3, HIGH); //Turn the LED On
delay(1500);
digitalWrite(3, LOW); //Turn the LED Off
delay(500); //Delay between dots and dashes
//Dot 4
digitalWrite(3, HIGH); //Turn the LED On
delay(500);
digitalWrite(3, LOW); //Turn the LED Off
}