Utforsk alle funksjonene til micro:bit!

micro:bit har alle funksjonene du trenger for å kode fantastiske ting!

A diagram of the BBC micro:bit


Din micro:bit har følgende fysiske egenskaper:

La oss ta en titt på hva disse komponentene og se hvordan du kan programmere de!


The micro:bit LEDs

What is it? LED stands for Light Emitting Diode. The micro:bit has 25 individually-programmable LEDs, allowing you to display text, numbers, and images.

How do I code it? Learn more about coding the LEDs, or use the code references below.

Python MakeCode

Examples - check out this Animated Flashing Heart in JavaScript or learn how to make animations with Python!


The micro:bit buttons

Hva er det? Det er to knapper på forsiden av micro:bit'en (merket A og B). Du kan oppdage når disse knappene trykkes ned slik at du kan utløse kode på enheten.

How do I code it? See the code references below.

Python MakeCode

Examples - take a look at this Smiley Button project, or this more advanced Voting Machine project, both controlled using the buttons in JavaScript.


The micro:bit pins

What is it? There are 25 external connectors on the edge connector of the micro:bit, which we refer to as 'pins'. Program motors, LEDs, or other electrical components with the pins, or connect extra sensors to control your code!

How do I code it? Learn more about the hardware of the pins, or use the code references below.

Python MakeCode

Examples - code a Banana Keyboard, hack your headphones, and create a Milk-Carton Robot with JavaScript! Or, take a look at this ticklish micro:bit project in Python!


The micro:bit LED screen, acting as a light sensor.

What is it? By reversing the LEDs of the screen to become an input, the LED screen works as a basic light sensor, allowing you to detect ambient light.

How do I code it? See the code references below.

Python MakeCode

Examples - learn how to chart the light level on the screen with JavaScript


The micro:bit temperature sensor

What is it? This sensor allows the micro:bit to detect the current temperature of the device, in degrees and Celsius.

How do I code it? See the code references below.

Python MakeCode

Examples - discover how the temperature sensor works.


The micro:bit accelerometer

What is it? An accelerometer measures the acceleration of your micro:bit; this component senses when the micro:bit is moved. It can also detect other actions, e.g. shake, tilt, and free-fall.

How do I code it? See the code references below.

Python MakeCode

Examples - code a Rock, Paper, Scissors game with JavaScript, triggered when the micro:bit is shaken! Or, create musical mayhem with Python!


The micro:bit compass

What is it? The compass detects the earth's magnetic field, allowing you to detect which direction the micro:bit is facing. The compass has to be calibrated before it can be used.

'Calibrating' the compass ensures the compass results are accurate. For the MakeCode editor, use the 'calibrate compass' block. To calibrate the compass in Python use compass.calibrate().

When the calibration begins, the micro:bit will scroll the instruction "Tilt to fill screen". To calibrate the compass, tilt the micro:bit to move the dot in the centre of the screen around until you have filled up the whole screen.

How do I code it? Use the code references below.

Python MakeCode

Examples - create a working compass to find North in JavaScript or Python!


The micro:bit radio antenna

What is it? The radio feature allows you to communicate wirelessly between micro:bits. Use the radio to send messages to other micro:bits, build multiplayer games, and much more!

How do I code it? Discover how to code the radio:

Python MakeCode

Examples - create a Multiplayer Rock, Paper, Scissors game (JavaScript), or create cool digital fireflies in JavaScript and Python!


The micro:bit bluetooth antenna

What is it? BLE (Bluetooth Low Energy) allows the micro:bit to control phones and tablets over Bluetooth. This communication works both ways, so you can also send code to your micro:bit wirelessly from your phone using one of our apps. Other apps, such as Swift Playgrounds and Scratch, use Bluetooth to talk to the micro:bit.

Before using the Bluetooth feature you will need to pair your micro:bit with another device. Once paired, you can send programs wirelessly to your micro:bit. When you're using Radio, Bluetooth can still be used to update the code on your micro:bit, if you enter pairing mode - learn about the differences between radio and bluetooth in this support article.


The Python Editor doesn't currently support bluetooth.

Hva kan jeg gjøre med det? Sende koden din til micro:bit trådløst.


What is it? The USB interface allows you to connect the micro:bit to your computer via a micro-USB cable, which will power the device and allow you to download programs onto the micro:bit.

Teknisk informasjon

Please refer to the hardware page to discover more about the micro:bit's technical and compliance info.


Take a look at the apps page to learn more about coding the micro:bit from a mobile device.

Selecting this opens external content from our support system, which adheres to their privacy policy.