Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
numpad0
on Sept 18, 2023
|
parent
|
context
|
favorite
| on:
How Jeff Geerling almost broke MrBeast's 1-100 vid...
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.
rowanG077
on Sept 18, 2023
[–]
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.
numpad0
on Sept 18, 2023
|
parent
[–]
Really? A button just coming from GPIO into a 10k to ground? Is CPU not going to randomly lock up?
rowanG077
on Sept 19, 2023
|
root
|
parent
[–]
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:
onClick event handlers in most GUI triggers on mouse button releases, for example.