Last active
November 5, 2019 10:17
-
-
Save microbit-mark/19d43491690dcf7f72b89e68b90a9379 to your computer and use it in GitHub Desktop.
main.py that calls the emoji.py module from https://gist.github.com/microbit-mark/e4c4718a70d3403c193afe7179549155
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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