Gunner
August 25, 2020, 12:26am
12
@PeteKnight was referring to Virtual Pins (Vx), instead of using the GPx option in the App, this allows much more control over what your project can do… including “blinking real LEDs”… by using Blynk to send/recieve the GUI commands and your code to do all the logic and control of the hardware, based on those GUI commands
http://help.blynk.cc/en/articles/512061-what-is-virtual-pins
See here for more reference to coding non-blocking timer options…
#12 - Timers simplified… perhaps…
Some have a difficult time understanding timers… and since this is a fundamental building block of Blynk… I buried this reference in the middle of this entire topic Well anyhow…
This is a “real world” timer example where i am using two timers to alternately turn ON and OFF an LED… yes, there are many ways to do this, but this example is all about timers.
The first timer will run it’s assigned function 500ms (1/2 second) after boo…
#25 - Das Timed Blinkin’ LED… Without any delay() - AKA Timerception
This is simply just two nested Lambda functions using BlynkTimer and two different timer types to flash a Virtual LED ON for 1 second and Off for 1 second… If this is placed in the void setup() it just repeats in the background… marquee style.
Here it is integrated into a bare bones Blynk Blink Sketch… There should be enough commenting to figure it out from here. LED Widget set to V0
#include <ESP82…
1 Like