// Template ID, Device Name and Auth Token are provided by the Blynk.Cloud
// See the Device Info tab, or Template settings
#define BLYNK_TEMPLATE_ID "TMPL325DQ0y6d"
#define BLYNK_TEMPLATE_NAME "test1"
#define BLYNK_AUTH_TOKEN "g4OXJk4DfG-6evbsxt7favgM0JTC8PPY"
// Comment this out to disable prints and save space
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[] = BLYNK_AUTH_TOKEN;
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Router";
char pass[] = "123456789";
BlynkTimer timer;
int pot=26;
BLYNK_WRITE(V0)
{
int pinValue=param.asInt();
digitalWrite(26,pinValue);
}
void setup()
{
//pinMode(pot,INPUT);
Serial.begin(9600);
pinMode(26,OUTPUT);
// Debug console
Serial.print("Connecting to WiFi");
WiFi.begin("Wokwi-GUEST", "", 6);
while (WiFi.status() != WL_CONNECTED) {
delay(100);
Serial.print(".");
}
Serial.println(" Connected!");
//Blynk.begin(auth);
Blynk.begin(auth, "", "");
}
void loop()
{
Blynk.run();
// int potvalue=analogRead(36);
//Blynk.virtualWrite(V1,potvalue);
}