/*
  RGB com a Franzininho DIY
  Visit https://wokwi.com to learn about the Wokwi Simulator
  Visit https://franzininho.com.br to learn about the Franzininho
*/

const int red = 4;
const int green = 1;
const int blue = 0;

void setup() {
  // Configura os pinos de cada cor como saída
  pinMode(red, OUTPUT);
  pinMode(green, OUTPUT);
  pinMode(blue, OUTPUT);
}

void loop() {
  // Aciona o LED na cor vermelha
  digitalWrite(red, HIGH);
  digitalWrite(green, LOW);
  digitalWrite(blue, LOW);
  delay(5000); // Aguarda 5 segundos

  // Aciona o LED na cor verde
  digitalWrite(red, LOW);
  digitalWrite(green, HIGH);
  digitalWrite(blue, LOW);
  delay(5000); // Aguarda 5 segundos

  // Aciona o LED na cor azul
  digitalWrite(red, LOW);
  digitalWrite(green, LOW);
  digitalWrite(blue, HIGH);
  delay(5000); // Aguarda 5 segundos
}