/*
Semáforo Franzininho
  by Diana Santos
  Visit https://wokwi.com to learn about the Wokwi Simulator
  Visit https://franzininho.com.br to learn about the Franzininho
*/

#define LED_VERDE 0
#define LED_AMARELO 1
#define LED_VERMELHO 2

void setup() {
  pinMode(LED_VERDE ,OUTPUT); //pino digital de saída
  pinMode(LED_AMARELO,OUTPUT); //pino digital de saída
  pinMode(LED_VERMELHO,OUTPUT); //pino digital de saída

}

void loop() {
  
//SINAL VERDE
digitalWrite(LED_VERDE,HIGH);   //acende o led verde 
digitalWrite(LED_AMARELO,LOW);   //apaga o led amarelo
digitalWrite(LED_VERMELHO,LOW);   //apaga o led vermelho

delay(6000);

//SINAL AMARELO
digitalWrite(LED_VERDE,LOW);   //apaga o led verde 
digitalWrite(LED_AMARELO,HIGH);   //acende o led amarelo
digitalWrite(LED_VERMELHO,LOW);   //apaga o led vermelho

delay(2000);

//SINAL VERMELHO
digitalWrite(LED_VERDE,LOW);   //apaga o led verde 
digitalWrite(LED_AMARELO,LOW);   //apaga o led amarelo
digitalWrite(LED_VERMELHO,HIGH);   //acende o led vermelho

delay(5000);



}