Hello People!
I am currently working on a project in which I am using Blynk to controle an LED.
Now I got everything working great, however, I want to take it one step further by adding a Virtual Status LED on my Phone.
I’ve been trying to use the virtualWrite function but I just didn’t seem to get it right.
void loop()
{
Blynk.run();
int input=Blynk.digitalRead(0);
if (input=HIGH){
Blynk.virtualWrite(1,HIGH);
}
if (input=LOW){
Blynk.virtualWrite(1,LOW);
}
}
Please bare with me, I am relatively new to this.
Any help would be highly appreciated.
Thank you in advance.
Jocobes