I have two NodeMCU boards controlling 2 led strips in 2 different rooms. In order to save some space ajd to make it look cleaner in the Blynk app, instead of using 2 sets of sliders for controlling the colors, I used one set and the segmented switch widget, to control both led strips eith the sane sliders. One of them controls pins d1,d2,d3 while the other cintrols d5,d6,d7. In the segmented switch function, case 1, room=0 and case 2, room=1(0 for living room, 1 for bedroom). I’m using virtual pins for the sliders. What would be the easiest way to remember the sliders positions so when I change between rooms on the segmented switch widget, the sliders would go to the previous position?
As you can see, I choose one value for the living room an another fir the bedroom, the calue stays the same when I change back to living room, even tough the changes take effect only after touching the sliders