#define BLYNK_TEMPLATE_ID "TMPL6z3B3MHxm"
#define BLYNK_TEMPLATE_NAME "abc"
#define BLYNK_AUTH_TOKEN "hr6qPBpafBOVS-r1pSFHslI_MUqnp83x"
#define BYLINK_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() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
Blynk.run();
}