One virtual pin in different widgets

Hi,

I have a question about virtual pins.
Is it possible somehow to use the same virtual pin for several widgets?
For example, I want to use the same pin both for the button and timer widgets.

Hello. At the moment this is not supported.

You could probably accomplish your goal in the arduino code. What exactly are you trying to accomplish?

So the propper way is creating separate virtual pin for every widget? Like that

BLYNK_WRITE(V8)
{
if (param.asInt() == 0)
{
digitalWrite(4, LOW);
}
else
{
digitalWrite(4, HIGH);
}
}
BLYNK_WRITE(V9)
{
if (param.asInt() == 0)
{
digitalWrite(4, LOW);
}
else
{
digitalWrite(4, HIGH);
}
}

1 Like

Correct. As workaround.

But it costs in sketch space and ressources for small hardware as arduino.
It’s a pity not to make the job on the app side… nothing planned about it?

@Alx-I Please take note of the time/date stamps on post before replying… this one is a year old :wink:

Search around for more recent references to App based control… aside from things like Eventor and Device Selector, there have been many changes and more to come… but I think the Blynk team has even less resources than the lowly UNO :stuck_out_tongue: so be patient.

I have seen, but the subject is the same that my actual need, so I UP the post.
I think the team may be interested in knowing which improvements users should want. No problem about it :wink:
I use Eventor and device selector but they don’t match that need.

Cordially

It is already well known… no need to dig up old posts :wink:


No. This is general Blynk limitation. Only 1 widget per 1 pin. Someday we will fix it.


Custom code will always be required for enhanced functionality, and there is lots of room/processing power on the various hardware sides to handle it.