What about this:
You don't need delay(), if you check the interval to read the buttons with millis(). As alto777 already stated: 10ms can be far too long in many circumstances.
What about this:
You don't need delay(), if you check the interval to read the buttons with millis(). As alto777 already stated: 10ms can be far too long in many circumstances.