Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // TEST ports pins ESP8266 ROW-01 ZAMEL
- #define BLYNK_PRINT Serial
- #include <ESP8266WiFi.h>
- #include <BlynkSimpleEsp8266.h>
- char auth[] = "fc151414655b4431bff63xxxxxxxxxxxxxxx";
- char ssid[] = "xxxxxxxx";
- char pass[] = "xxxxxxxxx";
- #include <Timers.h> // my favorite timer
- Timers <7> akcja; //
- WidgetLED led1(V0);
- void setup()
- {
- akcja.attach(0, 1000, vLED_timer); //
- Serial.begin(115200); delay(100);
- Blynk.begin(auth, ssid, pass);
- }
- void loop()
- {
- akcja.process(); // timer
- Blynk.run();
- }
- int wskrunAr = 0;
- void vLED_timer()//miganie vLED dla kontroli połączenia
- {
- wskrunAr = !wskrunAr ;
- if (wskrunAr == 0)led1.off(); else led1.on();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement