Skip to content

Instantly share code, notes, and snippets.

@jimmo
Created August 31, 2017 05:03
Show Gist options
  • Save jimmo/ab7642b660dfe51e2fa54bc94ecd1244 to your computer and use it in GitHub Desktop.
Save jimmo/ab7642b660dfe51e2fa54bc94ecd1244 to your computer and use it in GitHub Desktop.
from microbit import *
while True:
if button_a.was_pressed():
display.show(Image.SQUARE)
sleep(5000)
display.clear()
if button_b.was_pressed():
display.clear()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment