// Franzininho WiFi - Acionando os LEDs através do botão
//
// https://wokwi.com/projects/334024723590546002
//
// Copyright (C) 2022, Fabio Souza

const byte BUTTON = 1;
const byte LED_YELLOW = 33;
const byte LED_BLUE = 21;

void setup() {
  pinMode(LED_YELLOW, OUTPUT);
  pinMode(LED_BLUE, OUTPUT);
  pinMode(BUTTON, INPUT_PULLUP);
}

void loop() {
  if(digitalRead(BUTTON)==LOW){
    digitalWrite(LED_YELLOW,HIGH);
    digitalWrite(LED_BLUE,LOW);  
  }
  else{
    digitalWrite(LED_YELLOW,LOW);
    digitalWrite(LED_BLUE,HIGH);
  }
}