#define BLYNK_TEMPLATE_ID "TMPL6NrJxxkRQ"
#define BLYNK_TEMPLATE_NAME "pom lug lung tuu"
#define BLYNK_AUTH_TOKEN "BU8xMseldj4jn-bLogXXKI6Og4l3IuG2"
#include <WiFi.h>
#include <BlynkSimpleEsp32.h>
BLYNK_WRITE(V1){
if(param.asInt() ==0){
digitalWrite(2,0);
delay(500);
digitalWrite(2,1);
delay(500);
digitalWrite(26,0);
delay(500);
digitalWrite(26,1);
delay(500);
digitalWrite(26,0);
}
if(param.asInt() ==1){
digitalWrite(2,1);
delay(500);
digitalWrite(2,0);
delay(500);
digitalWrite(26,1);
delay(500);
digitalWrite(26,0);
delay(500);
digitalWrite(26,1);
}
}
void setup() {
Blynk.begin(BLYNK_AUTH_TOKEN,"Wokwi-GUEST","");
pinMode(2, OUTPUT);
pinMode(26, OUTPUT);
}
void loop() {
Blynk.run();
}