Well, you could of course scan for button presses anywhere in the code, or you could avoid the use of blocking functions to avoid the need to do so in multiple places
Suppose that you do use an interrupt. What is it going to do when the ISR runs ?
Well, you could of course scan for button presses anywhere in the code, or you could avoid the use of blocking functions to avoid the need to do so in multiple places
Suppose that you do use an interrupt. What is it going to do when the ISR runs ?