Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Switches usually open after closing, so your latch arrangement has to figure out how to unlatch.

At which point you are doing debouncing: distinguishing an intentional switch opening from the bounce that continued after you latched. You need some hold-off time or something.

Also, switches contacts bounce when opening!

A latch could be great for some kind of panic button which indicates a state change that continues to be asserted when the switch opens (and is reset in some other way).





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: