Skip to content

Instantly share code, notes, and snippets.

@yjsoon
Created January 31, 2018 14:00
Show Gist options
  • Save yjsoon/dea7c84d7bb46616c6d19eb197bd234a to your computer and use it in GitHub Desktop.
Save yjsoon/dea7c84d7bb46616c6d19eb197bd234a to your computer and use it in GitHub Desktop.
from microbit import *
while True:
if button_a.is_pressed():
display.show(Image.HAPPY)
elif button_b.is_pressed():
break
else:
display.show(Image.SAD)
display.clear()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment