In the first instance we are going to look at the in-built user inputs and outputs. There are three:

bbcmicrobit Go Back

An Introduction - Buttons and LEDs.


Button A

Button B

LED Array

The buttons are of course the inputs, the array of  25 LEDs the output. A small sample file is available by clicking the link on the left. Save it somewhere you know where it is, I put mine on the desktop:

microbit-Demo-1A desktop

Plug in your Microbit to a USB port on the computer. You need a USB A to mini B and that's the same sort that comes with most Android phones, particularly if it's Samsung or Sony. Then the computer will see the microbit as another drive. Open the drivepaths and drag-and-drop the file into the Microbit:


It will transfer, and as it does so you'll see this:


Once it's finished transferring your Microbit will do absolutely nothing except sit there and look at you blankly. It's waiting for an input from you. What input is it  waiting for? For you to push one of the buttons. Go on. Do it. You know you want to. If all has gone well, this will happen: whichever one of the buttons you pressed, an arrow will come up pointing to it. Press the other and the arrow will follow. If you press both at the same time, the arrow will flip back and forth. The program is in fact a hex code and looks a bit like this:








That's just the first five lines, there's dozens more. Don't worry though because that isn't how we create it. We are using Microsoft Block Editor and you'll find it here:


This is what the interface looks like with the block code for the previous example in it:

www.microbit.co.uk/create-code interface

It's divided into 4 parts. Here they are shaded:


The green part is the file and other options, where you do everything to do with running, saving, converting etc.

The red is the toolbox from where you drag and drop command blocks.

The yellow is the workspace, into which you drop the command blocks from the toolbox.

The blue is the simulator. You can run your code in this environment without transferring it to the Microbit first, which is very handy for eliminating bugs.


If the above made no sense to you don't worry. Over the page we will go through this step by step.