micro:bit Quick Reference

micro:bit Quick Reference

Flashing, editors, pin layout, and power options.

Flashing a Program
Drag .hex to MICROBIT drive Easiest method ߀” board auto-flashes and reboots
WebUSB Flash (Chrome/Edge) Connect in python.microbit.org and flash directly ߀” no file download needed
Yellow LED flashes during flash Normal ߀” wait until it stops before unplugging
main.py saved in hex MicroPython hex embeds your script ߀” the drive always shows the same files
Editors
python.microbit.org Official online MicroPython editor ߀” no install needed
makecode.microbit.org Official MakeCode Blocks + JavaScript editor
Mu Editor Offline Python editor with built-in REPL and plotter
Thonny Works with micro:bit via MicroPython interpreter setting
Edge Connector Pins
pin0, pin1, pin2 Large ring pads ߀” GPIO / analog input / touch sensing
3V and GND Large ring pads for power (do not short these)
pin3߀“pin22 Small pads ߀” need an edge connector breakout board
pin19 (SCL) / pin20 (SDA) Default I2C pins on the micro:bit
Power & Imports
from microbit import * Import all micro:bit objects (display, button_a/b, pins, etc.)
sleep(ms) Pause for given milliseconds (imported from microbit)
Battery: 2G— AAA via JST Use battery pack for portable projects without USB
3.3 V max on all pins Never apply 5 V ߀” the micro:bit is not 5 V tolerant