from microbit import * if button_a.was_pressed(): display.scroll('A')
from microbit import * if button_a.is_pressed(): display.scroll('A')