Hi guys my hardware is Robotdyn ATMEGA2650+ESP8266, i have follow all guide and i arrived to see these result of monitor serial:
Connected to Wifi
Connecting to blynk-cloud.com:80
Ready ping 30ms
So, i think that all is work, in my phone i see my device online. But now i don’t know what i to do. If i connect a led in pin 13 or 12 don’t happened nothing. Please write me any tips.
Hey friend, I recommend using the sketch builder for your sketch. As long as you use the
Blynk.run(); command in your loop, you will be able to use the app to control any pin on your board.
In the app you need to add buttons and switches to control the board.
For more information please reffer to the docs page.
Hi sahar thank you for you answer, I have already use sketch builder as a guide. I see that my button work only with Digital Pin 1, i try with led or relè but nothing
When you tap on a button at app (having properly configured the virtual pin of that button) Blynk sends the information of the tap to your hardware and it will be processed at
BLYNK_WRITE(VX) //VX equals the virtual pin configured at app interface
int pinValue = param.asInt(); // assigning incoming value from pin VX to a variable
// process received value
So if you make a sketch with a led (connected at pin 2 in an arduino uno for example) ON/OFF and a button connected to V1 at Blynk app… in BLYNK_WRITE function you can do something like this:
#define PinLed 2
Of course you can use some line codes to sync button and led state at hardware init/reset