# Name badge: a free micro:bit lesson from Maze Education
# https://maze.education/microbit/lessons/name-badge
# MicroPython for the micro:bit Python Editor: https://python.microbit.org

# Name badge: change Sam to your own name.
from microbit import *

display.scroll("Hi!")
while True:
    if button_a.was_pressed():
        display.scroll("Sam")
    if button_b.was_pressed():
        display.show(Image.HAPPY)
    sleep(100)
