Loops

 



int green_LED = 8;
int yellow_LED = 12;
void setup() {
  pinMode ( green_LED, OUTPUT);
  pinMode ( yellow_LED, OUTPUT);

}

void loop() {
  for (int i = 0; i < 4; i++)
  { digitalWrite(green_LED, HIGH);
    delay(500);
    digitalWrite(green_LED, LOW);
    delay(500);
  }
  int j = 0;
  while (j < 3)
  { digitalWrite(yellow_LED, HIGH);
    delay(500);
    digitalWrite(yellow_LED, LOW);
    delay(500);
    j++;
  }
}


Comments

Popular posts from this blog

4 Stage Timer With DS3231RTC Module.

Interfacing KY038 sound sensor with Raspberry pi Pico

Interfacing MQ2 Gas & Smoke Sensor With Raspberry Pi Pico