Buttons — UCL BBC micro:bit tutorial
2021-1-29u2002·u2002This means, if button A is pressed then display an A on the LED screen, otherwise, display Image.ASLEEP.. The problem with using is_pressed() is that unless you are pressing the button at that precise moment then you won't detect whether the button was ever pressed or not. It might be the case that the user pushes the button while the code is doing the something else, and the press is missed.
Get Price