/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the Uno and
  Leonardo, it is attached to digital pin 13. If you're unsure what
  pin the on-board LED is connected to on your Arduino model, check
  the documentation at http://arduino.cc

  This example code is in the public domain.

  modified 8 May 2014
  by Scott Fitzgerald

  updated for Arduino to Go by
  Jody Culkin and Eric Hagan 
  February 2017
 */

void setup() {
  // put your setup code here, to run once:
  pinMode(13, OUTPUT);
}

void loop() {
  // 3 short flashes
  digitalWrite(13, HIGH);//turn the LED on(HIGH is the voltage level)
  delay(500);            //wait for a half second
  digitalWrite(13, LOW); //turn the LED off by making the voltage LOW
  delay(300);      //pause for 300 milliseconds, about 1/3 of a second
  digitalWrite(13, HIGH);   
  delay(500);              
  digitalWrite(13, LOW);    
  delay(300); 
  digitalWrite(13, HIGH);   
  delay(500);              
  digitalWrite(13, LOW);    
  delay(300);   
  
   //three long flashes
  digitalWrite(13, HIGH);   //turn the LED on 
  delay(1500);              //wait for a second and a half
  digitalWrite(13, LOW); //turn the LED off by making the voltage LOW
  delay(300); 
  digitalWrite(13, HIGH);   
  delay(1500);             
  digitalWrite(13, LOW);   
  delay(300); 
  digitalWrite(13, HIGH);   
  delay(1500);             
  digitalWrite(13, LOW);    
  delay(300);   
    
   // 3 short flashes again
  digitalWrite(13, HIGH); //turn the LED on 
  delay(500);            //wait for a half second
  digitalWrite(13, LOW); //turn the LED off by making the voltage LOW
  delay(300); 
  digitalWrite(13, HIGH);   
  delay(500);              
  digitalWrite(13, LOW);    
  delay(300); 
  digitalWrite(13, HIGH);   
  delay(500);              
  digitalWrite(13, LOW);    
  delay(3000);         //final delay is 3 seconds
}

Leave a Reply

Your email address will not be published. Required fields are marked *