//Incluir bibliotecas
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>

//Definicoes e constantes
char SSIDName[] = "Wokwi-GUEST"; //nome da rede WiFi
char SSIDPass[] = ""; //senha da rede WiFI

#define BLYNK_PRINT Serial

#define BLYNK_TEMPLATE_ID "TMPL2DOa5NEPo"
#define BLYNK_TEMPLATE_NAME "Comedouro2"
#define BLYNK_AUTH_TOKEN "8nOqIstfjTAO2u7V9vIuzpbvM7LrJu6n"

#define led1 13
#define led2 12
#define bt1 14
#define bt2 27

BLYNK_WRITE(V7){
  int valor1=param.asInt();
  digitalWrite(led1, valor1);
}

BLYNK_WRITE(V8){
  int valor2=param.asInt();
  digitalWrite(led2, valor2);
}

void setup(){
pinMode(led1, OUTPUT);
pinMode(led2,OUTPUT);
pinMode(bt1,INPUT);
pinMode(bt2,INPUT);
  
  // Debug console
  Serial.begin(115200);

  Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
}

void loop()
{
  Blynk.run();
}