Skip to content

Instantly share code, notes, and snippets.

@microbit-mark
Created November 5, 2019 09:32
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/e4c4718a70d3403c193afe7179549155 to your computer and use it in GitHub Desktop.
Save microbit-mark/e4c4718a70d3403c193afe7179549155 to your computer and use it in GitHub Desktop.
Emoji module example
# microbit-module: emoji@0.1.0
# First we add a comment that this is a microbit-module and
# give it a name and version number in the format major.minor.patch eg. emoji@0.1.0
from microbit import Image
# We import the image class from the microbit module
😃 = Image.HAPPY
😡 = Image.ANGRY
💖 = Image.HEART
💎 = Image.DIAMOND
🏠 = Image.HOUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment