#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID “TMPLW_w7Lnyl”
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[] = “1KZ9Nk4m802dcSrI1pkDQzi6_gnzA7R6”;
char ssid[] = “Wokwi-GUEST”;
char pass[] = “”;
BLYNK_WRITE(V12)
{
digitalWrite(12,param.asInt());
}
BLYNK_WRITE(V14)
{
digitalWrite(14,param.asInt());
}
BLYNK_WRITE(V27)
{
digitalWrite(27,param.asInt());
}
BlynkTimer timer;
void myTimerEvent()
{
Blynk.virtualWrite(V35,analogRead(35));
}
void setup() {
pinMode(12, OUTPUT);
pinMode(14, OUTPUT);
pinMode(27, OUTPUT);
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
timer.setInterval(1000L, myTimerEvent);
}
void loop() {
Blynk.run();
timer.run();
}