Hi Blynkers,
I have a little problem for use the LED widget. I want to use it like an indicator from a physical led but I don´t know how. I try with BLYNK_READ and Blynk.virtualWrite and the code is right but I don´t know how to connect it to the correspondent pin.
Thank you.
@Pedrinbeep
Hi Pedro, we have a separate example for LED - https://github.com/blynkkk/blynk-library/blob/master/examples/Widgets/LED/LED.ino .
For simple case do:
WidgetLED led1(1); //means you need to have LED on app configured on virtual pin 1.
led1.on();
That’s all! For more complex usage see above example.
Hope that helps.
1 Like
@Dmitriy
Hi Dmitriy, thanks for you answer.
I use the example code that you give me but it does´t work. I´m sure that I making something wrong, Could you be more explicit to how connect the arduino to the physical LED? I´m using a Arduino Nano. Thank you and sorry for my inexperience.
ursm
May 19, 2015, 5:09pm
4
tested the LED example (with updated library!):
LED.ino:28:25: fatal error: SimpleTimer.h: No such file or directory
compilation terminated.
@ursm
Hi, this example uses additional library http://playground.arduino.cc/Code/SimpleTimer . You have to add it aslo.
@Pedrinbeep
I thought you was talking about “LED Widget” not physical LED.
Anyway if you want just to Blink - you could try default Nano LED connected to digital pin 13. So in App just add widget Button and configure it to digital pin 13. You could use for that simplest example - https://github.com/blynkkk/blynk-library/blob/master/examples/GettingStarted/BlynkBlink/BlynkBlink.ino
Put in scetch your token and press “run” in your dashboard, than press on button. That’s it.
ursm
May 19, 2015, 5:39pm
7
thanks
library “created” and LED compiled successfully.
run with that message Trouble detected: http://docs.blynk.cc/#troubleshooting-flood-error
yes, I’ve read what it means
probably you should remark “external” libraries?
not everybody kows all different libs.
@ursm
Agree, we missed that. Fixed. Thanks for reporting!
1 Like
mac
January 6, 2017, 1:34pm
9
sir , the above link for example sketch is not working?
Costas
January 6, 2017, 1:46pm
10
@mac did you know that GitHub has a search facility?
Costas
January 6, 2017, 1:48pm
12
Ask Google how to search GitHub.
1 Like
Gunner
Split this topic
April 29, 2018, 7:09pm
13