4 ms·
I'm curious, why the first sleep? Why not go into the while loop right away?
by dahfizz 4y ago
I'm curious, why the first sleep? Why not go into the while loop right away?
- __david__ 4y agoThe while condition is reading the pin. The first delay lets the pin stabilize before waiting for the pin to go false.