I can read and control pins using the application on the phone. For example, I can blink and LED. But I cannot create virtual pins in my C code on the Pi. That is, I want the LED display to show on the phone as a result of the data created in my C code that toggles a virtual pin on the Pi.
#include "wiringPi.h"
#include "Blynk/BlynkApi.h"
int x=0;
int main (void)
{
wiringPiSetup () ;
//pinMode (11, INPUT) ;
for (;
{
When I try to compile, I get an error that Blynk is not declared in this scope.
Please help, perhaps with a sample.
What I want to do is set a virtiual pin High on the Pi, and then have it display an LED on the Blynk Phone app. THANKS.
did you read my issue? *I can run Blynk on the Pi. as described in the instructions. However, what I want to do is write a c program that sets a virtual pin, and display it on my phone.
Cannot figure out simple code to have the pi set a value on a virtual pin, and have it display in the blynk app on the phone.
How long would it take you to point me to an example of that, or show a line of code that does that.
PS, Just a little help please. I have put two days into this and am an not a complete newbie
Just a question: My rpi is working with blynk but I don’t see how to control it. Do I have to make a new script or something? I can run the app on the phone and the server on the pi and it just sits there as if waiting for something.
We understand that coding in C++ for Raspberry pi may be not the best idea, so we a already thinking about providing a Python library… I’m personally very interested in this.
thanks for the steps, i followed them and it is working.
would you please explain how to use the examples written for arduino ? i want to use the lcd widget or i want to use LDR to show some value in the app?
Hi,
I’m using raspberry pi for my project. Is there a way where I can send data through I2C from virtual pin. I mean is there a particular file in blynk library for a particular virtual pin/ a file where I can edit all virtual pins ? So that I need not do anything apart from concentrating on my virtual pin.
If not, then how to call a virtual pin to do a particular task be it a internal software task or hardware one.