#define BLYNK_TEMPLATE_ID "TMPL6rBXELGAe"
#define BLYNK_TEMPLATE_NAME "week6"
#define BLYNK_AUTH_TOKEN "Kt--s3UuK4XuKUmX3WV1phN_-NV0kM_m"

/*New blynk app project
   Home Page 
*/

//Include the library files
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>


char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Wokwi-GUEST";//Enter your WIFI name
char pass[] = "";//Enter your WIFI password

//Get the button value
BLYNK_WRITE(V0) {
  digitalWrite(14, param.asInt());
}

void setup() {
  //Set the LED pin as an output pin
  pinMode(14, OUTPUT);
  //Initialize the Blynk library
  Blynk.begin(auth, ssid, pass, "blynk.cloud", 80);
}

void loop() {
  //Run the Blynk library
  Blynk.run();
}