Skip to content

Instantly share code, notes, and snippets.

@microbit-mark
Last active November 5, 2019 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save microbit-mark/19d43491690dcf7f72b89e68b90a9379 to your computer and use it in GitHub Desktop.
Save microbit-mark/19d43491690dcf7f72b89e68b90a9379 to your computer and use it in GitHub Desktop.
from microbit import *
from emoji import *
while True:
display.show(😃)
if accelerometer.was_gesture('shake'):
display.show(😡)
sleep(2000)
if button_a.was_pressed():
display.show(💖)
sleep(2000)
elif button_b.was_pressed():
display.show(🏠)
sleep(2000)
sleep(100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment