#define BLYNK_TEMPLATE_ID "TMPL6dpIw0C4d"
#define BLYNK_TEMPLATE_NAME "ESP32 project demo 2"
#define BLYNK_AUTH_TOKEN "-6ETnO-dE2qMmVS0Bmz6AcswbhbJz-Zl"
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Wokwi-GUEST";
char pass[] = "";
BLINK_WRITE (V0)
{
int pinValue = param.asInt();
digitalWrite(12,pinValue);
}
void setup()
{
// Debug console
Serial.begin(115200);
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
pinMode(12, OUTPUT);
}
void loop()
{
Blynk.run();
}