// LED_Blink:

void setup() {
  pinMode(5, OUTPUT);     
}
void loop() {
  digitalWrite(5, LOW);
  delay(1000);
  digitalWrite(5, HIGH);
  delay(1000);
}


// LED_Alternate_Blink:

void setup() {
  pinMode(4, OUTPUT);     
  pinMode(5, OUTPUT); 
}
void loop() {
  digitalWrite(4, HIGH);
  digitalWrite(5, LOW);
  delay(1000);
 
  digitalWrite(4, LOW);
  digitalWrite(5, HIGH);
  delay(1000);
}


// LED_Sequential_Blink:

void setup() {
  pinMode(2, OUTPUT); 
  pinMode(4, OUTPUT);     
  pinMode(5, OUTPUT);
}
void loop() {
  digitalWrite(2, HIGH);
  digitalWrite(4, LOW);
  digitalWrite(5, LOW);
  delay(1000);
 
  digitalWrite(2, LOW);
  digitalWrite(4, HIGH);
  digitalWrite(5, LOW);
  delay(1000);
 
  digitalWrite(2, LOW);
  digitalWrite(4, LOW);
  digitalWrite(5, HIGH);
  delay(1000);
}


// LED_Fade:

void setup() {
}

void loop() {
  for(int fadeValue = 0; fadeValue <= 255; fadeValue +=5) {
    analogWrite(5, fadeValue);
    delay(30);                           
  }
  for(int fadeValue = 255 ; fadeValue >= 0; fadeValue -=5) {
    analogWrite(5, fadeValue);
    delay(30);                           
  }
}