Home page

Home page

Editor

MicroCode provides an intuitive interface for programming your micro:bit with:
Programming takes place when the micro:bit is connected to a display shield. Your program is saved automatically after each edit and runs on the micro:bit, with or without the display shield.
The MicroCode home page (above) has three selectable tiles for editing the current program, selecting from a sample of programs (including the empty program), and recovering a program previously saved in one of three slots.
Selecting the edit tile with the A button on the display-shield
the very first time will open the sample emotion badge program
in the MicroCode editor. If you have already created
a program select the samples tile and find the emotion badge
program there (as well as the empty program).
As both the display shield and micro:bits have A and B buttons,
we will use d-A and d-B to refer to the shield’s buttons
and m-A and m-B to refer to the micro:bit’s buttons. Note
that the micro:bit buttons have triangular labels next to them:.
When running, the emotion badge program displays a happy animation and
sound when the m-A button is pressed and a sad animation and
sound when the m-B button is pressed.