Hacker News new | past | comments | ask | show | jobs | submit login

In reality you implement both. Basic noise filtering in hardware, plus rate limiting or something in software.

onClick event handlers in most GUI triggers on mouse button releases, for example.




I have almost never seen hardware debouncing. It's just way better done in software. Unless you have extremely specialized switched which require HW debouncing(???), please just do it in software.


Really? A button just coming from GPIO into a 10k to ground? Is CPU not going to randomly lock up?


There is no reason the CPU is going to lock up. Bounce is not random spurious triggers.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: