Skip to content

Instantly share code, notes, and snippets.

@glassus
Created November 16, 2020 16:47
Show Gist options
  • Save glassus/0474710375a897a7d92d8478ec6a6ba1 to your computer and use it in GitHub Desktop.
Save glassus/0474710375a897a7d92d8478ec6a6ba1 to your computer and use it in GitHub Desktop.
from microbit import *
display.clear()
while True:
if button_a.was_pressed():
display.show(Image.SAD)
if button_b.was_pressed():
display.show(Image.HAPPY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment