Segmented switch virtualWrite

Hello. Is there any way to use the Blynk.virtualWrite function to switch between the buttons of a “Segmented switch” widget? I’d like to make a timer for my air conditioning with the segmented switch widget, 4 cases: OFF,10min,20min,30min. I’d like the widget to automatically switch to “OFF” after the timer ends

Yes Blynk.virtualWrite(vPin,value) will switch between segmented switch buttons. Writing a value of 1 will select option 1, 2 will select option 2 etc.

Pete.

1 Like