Before I go off and roll my own, I thought I’d ask if anyone had already created a toggle button. Basically, what I am looking for is a button that has 2 states.
The first is the normal, press and the button goes down and then release and the button pops back up again. I get both down and up state clicks events.
The second state is you press the button and it goes down, release and it stays down. Click again and it returns to the up state.
This effectively generates a momentary and latching buttons.
The button should have a setting to select either mode so is all done with the same button. Each button is programmed by the user to be latching or momentary.
The reason for this is I need to use these with a solenoid valve pack and relay switching were some of the valves or relays need to remain on (latching) when I release the finger and some need to only be on when I hold my finger on the button (momentary).
I, therefore, need a CLICK for each state for down and release. Buttons at present do this but don’t latch.
If no one has done this before, I can create my own buttons to do this but it would save some time if this has already been done.