BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Segmented Switch Settings


#1

Hi

Simple question. Is there a way I can set/change what OPTION is active in a Segmented Switch from the hardware side and see that reflected on the App. I tried : (in the case where Segmented Switch is V1 and I want to select OPTION 2

Blynk.virtualWrite(V1, 2);


#2

Yes, the same way as a button, slider, etc… just as you show above, using a Blynk.virtualWrite(vPin, value) command, works for me on Android.

You will have to follow that up with a Blynk.syncVirtual(vPin) to "process " the command as if it was pressed on the App in order to trigger whatever Blynk function it controls. Again same as sketch controlled buttons, sliders and so on.


#3

thanks @Gunner yep got it working…was a silly bug on my end; need to sleep more :anguished: