/*New blynk app project
Home Page
*/
#define BLYNK_TEMPLATE_ID "TMPL6IiMKVf1h"
#define BLYNK_TEMPLATE_NAME "test"
#define BLYNK_AUTH_TOKEN "D2sdqt0EMtnhwwc2EoMsBkV_ZA4gRf3f"
#define BLYNK_PRINT Serial
#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(15, param.asInt());
}
void setup() {
//Set the LED pin as an output pin
pinMode(15, OUTPUT);
//Initialize the Blynk library
Blynk.begin(auth, ssid, pass, "blynk.cloud", 80);
}
void loop() {
//Run the Blynk library
Blynk.run();
}