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

I'm curious, why the first sleep? Why not go into the while loop right away?


The while condition is reading the pin. The first delay lets the pin stabilize before waiting for the pin to go false.




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

Search: