Home 2018 Forums Crumble Support Interrupt? Reply To: Interrupt?


OK, see revised attached code
If you use this instead of the Wait in the Else part of your code then it will allow the button to be read even during the Wait.

It counts to a 100 and waits 20ms each time. Totaling 2000ms or 2 seconds.
Revised accordingly for the 1s Wait.