Hacker News new | ask | show | jobs
by dahfizz 1280 days ago
I'm curious, why the first sleep? Why not go into the while loop right away?
1 comments

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