I expect this might not be a common interest, but I have a few buttons or sliders that I don’t really want to bump by accident.
This is easily done at the moment just by sliding to scroll the remote.
If it had a confirmation as an option for certain sliders or buttons that would be good. Otherwise I need to create two buttons to be high to have safe triggering.
I wish there was a button with a confirmation too. I have one button that would be really bad if it were accidentally pushed, and it would be nice to have a “Are you sure?” message accompany it. Pete, did you eventually settle on a solution?
Yeh I made it so I had to double press the button within 1 second. Works fine for me.
Originally I had a latch (switch) switch and a push switch, so you had to click the latch (switch) switch then push the push switch which made it happen. Then had the code unlatch the latch switch.
Funny part is (well I found it funny for some reason) is that I thought my code was hung and the device wasn’t working… until I remembered about the double push derrr. So it obviously worked as I had to think about pushing the button the right way… No jokes about the wife please
You could probably change the button text by using your code to indicate to push again. My application has a display box that I push “press again” too. Not really needed but it looks good.
I think you can already. If you have the switch as push type, then when you hold the button a value of 1 will be sent to the virtual pin. Then on release the value of 0 gets sent.
If you have your code check to see if the value of the virtual pin is 1 for longer than 1000 milli seconds then do something.
And as example, you can make a reset button with a slider.
To reset the hardware you can put the slider’s values as 0 and an high number… and if you slide the control without go to the last value, that is the expected value for reset’s trigger… the slider can be set to 0 after some seconds…