Navigate your web browser to the following location:
and you should get a window that looks like this:
We'll go over more details of this editor and all its features in a separate guide. Here we'll just run through a quick example to show the basics of creating and uploading a program.
There are three main areas as shown below:
These three areas are:
- The Simulator
- The Pallet
- The Coding Area
To write programs, you drag blocks from the pallet (2) on to the coding area (3) and snap them together. The simulator (1) will update on the fly to show the resulting program running on a virtual BBC micro:bit.
Let's show a very short example.
Click on the item in the pallet named Basic. This will bring up a variety of block items you can choose from as shown below.
Now click and drag the item named show leds on to the coding area.
Now drag the show leds block so that it "clicks" in to the on start block. To do this, you line up the little tab and notch as shown below. Kind of like putting Legos together.
And now it should look like this (I moved the forever block down just to get it out of the way):
Now you can click the individual little squares in the show leds block to create a pattern. What you are doing is setting which LEDs in the 5x5 matrix are either on or off. They just toggle on and off, so you can just keep clicking until you come up with something you like. I did a heart:
OK, done coding! Now let's download this program to the BBC micro:bit. Press the big button down at the bottom that says Download:
You will likely be prompted to save the file somewhere as shown below.
Go ahead and save it and make note of the location where it was saved. I put mine in my Documents folder.
Now imagine that hex file you saved is a JPG image file and that the BBC micro:bit is a USB thumb drive. The process for uploading the program (the hex file) to the BBC micro:bit is the same process you would use for copying the JPG image file onto a USB thumb drive.
Connect the BBC micro:bit to a USB port on your computer. A folder name MICROBIT should appear. Next, open the folder where you saved the hex file from above. Now simply drag the hex file into the MICROBIT folder.
The little yellow status LED on the BBC micro:bit will blink as the file is uploaded. Once complete, the status LED should stop blinking and you should see your pattern on the 5x5 LED matrix.