#define BLYNK_TEMPLATE_ID "TMPL6qaLQ5gaF"
#define BLYNK_TEMPLATE_NAME "monitoring"
#define BLYNK_AUTH_TOKEN "V2UHJdfQH29aSt65SMu6aa9pBxWMUhYG"
#include <WiFi.h>
#include <BlynkSimpleEsp32.h>
char auth[] = BLYNK_AUTH_TOKEN; // Replace with your Blynk authentication token
char ssid[] = "Wokwi-GUEST";
char pass[] = ""; // Replace with your Wi-Fi network password
#define LED_PIN_1 12 // Define the GPIO pin connected to your first LED
#define LED_PIN_2 14 // Define the GPIO pin connected to your second LED
#define LED_PIN_3 27 // Define the GPIO pin connected to your third LED
void setup() {
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
pinMode(LED_PIN_1, OUTPUT);
pinMode(LED_PIN_2, OUTPUT);
pinMode(LED_PIN_3, OUTPUT);
}
void loop() {
Blynk.run();
}
BLYNK_WRITE(V0) {
int value = param.asInt();
digitalWrite(LED_PIN_1, value);
}
BLYNK_WRITE(V1) {
int value = param.asInt();
digitalWrite(LED_PIN_2, value);
}
BLYNK_WRITE(V2) {
int value = param.asInt();
digitalWrite(LED_PIN_3, value);
}