from microbit import *

while True:
    if pin_logo.is_touched():
        display.show(Image.HAPPY)
    elif button_a.is_pressed():
        display.show(Image.ANGRY)
    else:
        display.show(Image.SAD)