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

> While one could use a pin-change interrupt, the timescale is so large that busy-waiting is acceptable.

You should never use interrupts for this sort of input with lots of inherent switching noise. At best you could wait for one interrupt then disable it while polling in a debounce routine. Interrupts are a red flag that someone hasn't investigated what the switching is doing to their micro.




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

Search: