Skip to content

Coding for the Micro:bit

You can program the micro:bit in different programming languages, depending on what you already know, and how complex is your program.

Blocks Editor

This is the easiest way to program the micro:bit, using a visual block-based tool similar to Scratch.

See more in the Blocks Editor section.

Javascript Editor

Along with the functional blocks the editor also supports the Javascript langugae, a popular option for web development.

You can convert your blocks based code into Javascript and vice-versa, with some limitations.

The javascript code generated by the blocks editor can be used as a starting point for quick prototyping.

See more in the Javascript Editor section.

Micropython

Along with other languages, Python is one of the most popular and user friendly for beginners and advanced programmers.

Micropython is a small-size version of the standard Python language, with code specifically developed to work on the Micro:bit.

Uploading your code

All the different programming environments share the same instructions for uploading code to your micro:bit.

You usually “Download” an .hex file from the editor and copy it to the USB drive appearing on your computer when the micro:bit is plugged in the USB port.