Because nothing needs to happen until a button is pressed so just sitting in the while loop.I'm curious...
In post 33...
The choice to use nested "for" loops in "while" loops to poll for the button states, instead of "if" statements for example?
Is that a critical decision or just a preference?
I might use if-statements if I had to check the buttons while still updating a multiplexed 7-seg display or similar intensive code was running.
Last edited: