Built-In Images#
TODO
The BBC micro:bit has 64 built-in images that can be displayed using Python on the 5x5 LED matrix display.
Displaying Built-In Image#
To display a built-in image, the following line of code is used:
display.show(Image.ENTER_IMAGE)#
Note
The image name is always in uppercase.
# Imports go at the top
from microbit import *
# Display the heart image
display.show(Image.HEART)

Built-In Image Inventory#
The built-in images can separated into the following categories:
Affirmations
Arrows
Animals
Clocks
Faces
Music
Miscellaneous
These categories and images are presented below:
Affirmations#
Affirmation |
Code |
|---|---|
|
|
|
|
Arrows#
Arrow |
Code |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Animals#
Animal |
Code |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Clocks#
Clock |
Code |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Faces#
Face |
Code |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Music Notes#
Music Note |
|
|---|---|
|
|
|
|
|
|
Shapes#
Shape |
Code |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Miscellaneous#
Miscellaneous Image |
Code |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Debugging#
The following image is intended to be displayed on the micro:bit, but there is an error in the code.

Which line of code is correct for displaying the image above?
A: display.scroll(Image.HOUSE)
B: display(Image.HOUSE)
C: display.show(Image.house)
D: display.show(Image.HOUSE)
Click here to reveal the solutions.
Solutions:
D: display.show(Image.HOUSE)
Explanation:
A: This uses the display.scroll() method. This is only used with strings.
B: The method is incomplete.
C: The attribute of Image is not capitalized.






























































