Skip to content

Display shield programming in MakeCode

Below are three ways you can program a BBC micro:bit v2 to control a display shield. Starting with the simplest, you can do:

All of the above techniques have MakeCode simulator support, allowing you to test your micro:bit and display-shield code before flashing your code onto the micro:bit.

Block-based MakeCode Setup

2. Start editing

The link above will open a preview, click ‘Edit’ or ‘Edit Code’ getting-started

3. MakeCode & simulator startup

You should now see the MakeCode editor, with a micro:bit and display-shield simulator. getting-started

4. Use the Drawing toolbox to write to the display

getting-started

5. Use the Controller toolbox for the display-shield buttons

getting-started

Get coding with MakeCode!