Timer control led using esp32

Circuit Diagram

pin connection 
  1. Negative of led -- Gnd
  2. Positive of led -- gp23 

blynk app 

To download the click here 


NOTE:
"enter your wifi-name and password and your blynk auth in the code"

code


#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
SimpleTimer timer;

char auth[] = "BLYNK AUTH";

char ssid[] = "wifi-name";
char pass[] = "password";
void setup()
{
  Serial.begin(115200);
  Blynk.begin(auth, ssid, pass);
}
void loop()
{
  Blynk.run();
  timer.run();
}

youtube tutorial:



No comments:

Post a Comment

Timer control led using esp32

...