Blind friendly traffic signal code

Code created by innovative ideas: https://youtube.com/@innovative_ideas

void setup()

{

      pinMode(13, OUTPUT); //red

      pinMode(10, OUTPUT); //yellow

      pinMode(6, OUTPUT); // green

}

void loop()

{

  digitalWrite(13, HIGH);

  delay(8000);

  digitalWrite(13, LOW);

  digitalWrite(10, HIGH);

  delay(2000);

  digitalWrite(10, LOW);

  digitalWrite(6, HIGH);

  delay(8000);

  digitalWrite(6, LOW);

}

Post a Comment

1 Comments