Page 62 - Robo_Genius_V1.0_flipbook_C4
P. 62
2. Emoji Display
They will discover how to select and display different emoji patterns on the
micro:bit’s LED screen, which uses small lights to form the images.
Observations
During the Displaying Emojis activity, students will notice:
When the program is executed, the micro:bit lights up and shows the emoji
on its LED screen.
They can modify their code to change the displayed emoji, such as switching
between a heart or a happy face.
Students will see how coding and computers can be used to create fun visuals
and designs.
Application
The ability to display emojis on the micro:bit can
be used to create interactive badges or wearable
devices that show different emotions or symbols.
Making a Counter Program
Variable: In programming, a variable is like a special storage box that holds
different types of information, such as numbers, words, or data. Imagine it as
a labelled container where you keep something you may need to use later. In
coding, variables can store values that may change while the program runs.
This program uses a variable called ‘count’
to keep track of the number you’re counting.
It sets the variable to 0 at the start.
Every time you press button B, it increases
the count variable by 1 and shows it on the
LED display.
Numbers over 9 won’t stay on the display, so
pressing button A shows the number.
You can reset the counter by pressing buttons A and B together.
60 RoboGenius (V1.0)-IV

