Getting Started
What you need¶
- A BBC micro:bit β every project is tested on V2; most also run on V1 (each page says which).
- A micro-USB cable that carries data, not just power.
- A computer with a modern browser β no installs needed for most projects.
Flash your first program¶
- Open the micro:bit Python Editor.
-
Replace the starter code with this:
-
Plug in the micro:bit and click Send to micro:bit (or Save and drag the
.hexfile onto theMICROBITdrive). - Watch the LEDs scroll your message.
Prefer a desktop editor?
Thonny and Mu both support the micro:bit and give you a REPL to try code line by line.
Copying helper libraries¶
Many Sensors & Modules projects import a helper file such as servo.py or ultrasonic.py.
That file must be on the micro:bit before you run the example:
micro:bit V1 vs V2¶
| Feature | V1 | V2 |
|---|---|---|
| Speaker & microphone | β | |
Data logging (log module) |
β | |
| Touch-sensitive logo | β | |
| More memory for larger programs | β |
Every example page shows a Board field so you know what will run on your micro:bit.
Next steps¶
Start with Display Text on the LED Matrix, then work your way through the micro:bit Built-ins before wiring up Sensors & Modules.