We have built up an example in the next section where you can download the file and try it out on
your own micro:bit, or use the simulator. If you want to play around with the code and make some
changes, go ahead and click the Edit button in the widget, and it will open a MakeCode editor for you
to start hacking “Hello World.” Enjoy!
Download Your Program
Either copy and paste, or recreate the following code in your own MakeCode editor. You can also
just download this example by clicking the download button in the upper righthand corner of the code
window.
This will download your program file to your standard download location, probably the Downloads
folder on your computer, or whatever location you have set in your download preference.
You then simply click and drag your program file from its download location to your micro:bit drive,
which shows up as an external device.
That’s it!
Your micro:bit will flash for a few seconds, and then your program will start automatically. Yes! Win!
Note:
You may need to disable your ad/pop-up blocker to see the simulated circuit!
Experiment 1: Blinking an LED
Introduction
LEDs are small, powerful lights that are used in many different applications. To start off, we will work
on blinking an LED, the basic introduction of microcontrollers and building circuits. You already did a
“Hello World” for the micro:bit itself, this is the next step. That’s right — it’s as simple as turning a
light on and off. It might not seem like much, but establishing this important baseline will give you a
solid foundation as we work toward more complex experiments.