Way to force only one selection at a time

Is there a way to force it so that only say one button out of multiple is on at a time?

Say I have 3 buttons named 1, 2, and 3. I want to make it so that if more than one is pressed that all others go to off. Currently I am doing this by inside the BLYNK_WRITE functions for each virtual pin i use && to check each button’s state and if it finds more than one is on, i use Blynk.virtualWrite( V?, ? ) where ? is the corresponding value.

This works but I see a noticeable delay in the app. When I push one button and then press another I can visibly see a delay between my press and the previous button going to off. This isn’t a big issue I was just wondering if there was a way to improve it?


I think you need to consider a Menu widget.

I’m aware for this example that that would work but for other uses I was wondering if there was a way to improve the described technique