I have tried several examples and while some work well but have terrible predictability for single press vs double press while others that have great button use but no double click if you will. I need something that I can piggyback an existing momentary switch with that when it’s pressed once it does nothing and when pressed twice within 500ms, it will latch an output and when pressed twice again in quick succession, will unlatch the output. I’ve tried some of the multi switch examples without success. I thought about counting presses but I’m not having any success with it resetting after a second and then if it does work, the other part of it doesn’t.
Thanks in advance.