// Blink
int unitDelay=300; // the common delay time for the blinking LED , controls blink time
int ledPin=13; // the didgital output pin chosen to drive the LED
// the setup function
void setup() {
// initialize digital pin LED_BUILTIN as an output
pinMode(ledPin, OUTPUT); // the variable ledPin is used here
}
void dot() {
digitalWrite(ledPin, HIGH);
delay(unitDelay);
digitalWrite(ledPin, LOW);
delay(unitDelay);
}
void dash() {
digitalWrite(ledPin, HIGH);
delay(3*unitDelay);
digitalWrite(ledPin, LOW);
delay(3*unitDelay);
}
// loop function runs over ad over again forever
void loop() {
// displays he letter C H E I K H
dash();
dot();
dash();
dot();
delay(2*unitDelay);
dot();
dot();
dot();
dot();
delay(2*unitDelay);
dot();
delay(2*unitDelay);
dot();
dot();
delay(2*unitDelay);
dash();
dot();
dash();
delay(2*unitDelay);
dot();
dot();
dot();
dot();
}