Micro:bit pinout¶
Pin No. |
Main Function |
Additional Function |
Notes |
0 |
GPIO Pin 0 |
Analogue Input |
Large pin, Weak Pull-Up Resistor |
1 |
GPIO Pin 1 |
Analogue Input |
Large pin, Weak Pull-Up Resistor |
2 |
GPIO Pin 2 |
Analogue Input |
Large Pin, Weak Pull-Up Resistor |
3V |
3V Power Supply |
Large Pin | |
GND |
Ground Connection |
Large Pin | |
3 |
LED Column 1 |
GPIO Pin 3, Analogue Input |
Small Pin |
4 |
LED Column 2 |
GPIO Pin 4, Analogue Input |
Small Pin |
5 |
Button A Input |
GPIO Pin 5 |
Small Pin, Pull-Up Resistor |
6 |
LED Column 9 |
GPIO Pin 6 |
Small Pin |
7 |
LED Column 8 |
GPIO Pin 7 |
Small Pin |
8 |
GPIO Pin 8 |
Small Pin | |
9 |
LED Column 7 |
GPIO Pin 9 |
Small Pin |
10 |
LED Column 3 |
GPIO Pin 10, Analogue Input |
Small Pin |
11 |
Button B Input |
GPIO Pin 11 |
Small Pin, Pull-Up Resistor |
12 |
Reserved for Accessibility |
Small Pin | |
13 |
GPIO Pin 13 |
SPI1 SCK |
Small Pin |
14 |
GPIO Pin 14 |
SPI1 MISO |
Small Pin |
15 |
GPIO Pin 15 |
SPI1 MOSI |
Small Pin |
16 |
GPIO Pin 16 |
Small Pin | |
17 |
3V Power Supply |
Small Pin, Linked to 3V | |
18 |
3V Power Supply |
Small Pin, Linked to 3V | |
19 |
I2C1 SCL |
GPIO Pin 19 |
Small Pin, Linked to Accelerometer and Compass |
20 |
I2C1 SDA |
GPIO Pin 20 |
Small Pin, Linked to Accelerometer and Compass |
21 |
Ground Connection |
Small Pin, Linked to GND | |
22 |
Ground Connection |
Small Pin, Linked to GND |