#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID "TMPLE_YYArCg"
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[] = "zCInNuNwJni2egNaUZhCN8U5h9lrXrfJ";
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());
}
BLYNK_WRITE(V26)
{
digitalWrite(26,param.asInt());
}
BLYNK_WRITE(V25)
{
digitalWrite(25,param.asInt());
}
BLYNK_WRITE(V33)
{
digitalWrite(33,param.asInt());
}
BLYNK_WRITE(V32)
{
digitalWrite(32,param.asInt());
}
BLYNK_WRITE(V23)
{
digitalWrite(23,param.asInt());
}
BLYNK_WRITE(V22)
{
digitalWrite(22,param.asInt());
}
BLYNK_WRITE(V21)
{
digitalWrite(21,param.asInt());
}
void setup() {
pinMode(12, OUTPUT);
pinMode(14, OUTPUT);
pinMode(27, OUTPUT);
pinMode(26, OUTPUT);
pinMode(25, OUTPUT);
pinMode(33, OUTPUT);
pinMode(32, OUTPUT);
pinMode(23, OUTPUT);
pinMode(22, OUTPUT);
pinMode(21, OUTPUT);
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
}
void loop() {
Blynk.run();
}
//#define BLYNK_TEMPLATE_ID "TMPLE_YYArCg"
//#define BLYNK_DEVICE_NAME "testled"
//#define BLYNK_AUTH_TOKEN "zCInNuNwJni2egNaUZhCN8U5h9lrXrfJ"