Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define BLYNK_PRINT Serial
- #include <ESP8266WiFi.h>
- #include <BlynkSimpleEsp8266.h>
- #include <SimpleTimer.h>
- #include <SimpleSuperTimer.h>
- SimpleTimer timer;
- SimpleSuperTimer stimer;
- // Jakub Vyhnalek, 2016
- // TEST --- codding playground
- char auth[] = "08c93a0c521e403d970a08f18bd2ef15";
- //char auth[] = "ee2ef29f08ed43d2b6ec31aef35513e4";
- char ssid[] = "Dafi";
- char pass[] = "Libeznice";
- char server[] = "dawon.cz";
- int SliderValue;
- bool BoolValue[8];
- WidgetLED testLED(V0);
- BLYNK_WRITE(1)
- {
- int i=param.asInt();
- if (i==1)
- {
- testLED.on();
- }
- else
- {
- testLED.off();
- }
- }
- void setup()
- {
- Serial.begin(9600);
- Blynk.begin(auth, ssid, pass, server);
- stimer.setInterval(750L, CoreValue, 24);
- pinMode(5, OUTPUT);
- timer.setInterval(500L, knedlik);
- }
- void CoreValue(int par)
- {
- Serial.println(par);
- }
- void knedlik()
- {
- Serial.println("test");
- }
- void loop()
- {
- Blynk.run();
- timer.run();
- stimer.run();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement