Skip to main content



The Official BBC micro:bit User Guide

Gareth Halfacree

ISBN: 978-1-119-38673-5 December 2017 312 Pages


The go-to guide to getting started with the BBC micro:bit and exploring all of its amazing capabilities.

The BBC micro:bit is a pocket-sized electronic development platform built with education in mind. It was developed by the BBC in partnership with major tech companies, communities, and educational organizations to provide kids with a fun, easy, inexpensive way to develop their digital skills. With it, kids (and grownups) can learn basic programming and coding while having fun making virtual pets, developing games, and a whole lot more.

Written by internationally bestselling tech author Gareth Halfacree and endorsed by the Micro:bit Foundation, The Official BBC micro:bit User Guide contains what you need to know to get up and running fast with the BBC micro:bit. Learn everything from taking your first steps with the BBC micro:bit to writing your own programs. You'll also learn how to expand its capabilities with add-ons through easy-to-follow, step-by-step instructions.

  • Set up your BBC micro:bit and develop your digital skills
  • Write code in JavaScript Blocks, JavaScript, and Python
  • Discover the BBC micro:bit’s built-in sensors
  • Connect the BBC micro:bit to a Raspberry Pi to extend its capabilities
  • Build your own circuits and create hardware

The Official BBC micro:bit User Guide is your go-to source for learning all the secrets of the BBC micro:bit. Whether you're just beginning or have some experience, this book allows you to dive right in and experience everything the BBC micro:bit has to offer.

Full Code Download
Chapter 5 and 6
Chapter 7
Chapter 7, Figure 7-17, Page 149, replacement (a corrected version of the figure in both originally-submitted uncropped and as-published cropped flavours) provided for figure 7-17 by the Author.

Lines 3, 4, and 5 should begin "display.scroll('", with only one bracket rather than the two brackets. The text of the section is correct; this erratum applies only to the Figure.
Chapter 8
Chapter 9
Chapter 10
Chapter 12
ChapterPageDetailsDatePrint Run
583Errata in text
Paragraph 3 - Third line:
Please strike through the following sentence:
...on the word item and change it to the delay variable. After that, click...

P83, Paragraph 3:
Ignore the first reference to "Click on the word item and change it to the delay variable" in the third sentence; this should not be changed until the last step.

Chapter 585Errata in text
Paragraph 1:
change it into a ≥ (greater than or equal to) symbol
should read
change it into a > (greater than) symbol

691Errata in text
Paragraph 3:
click on the [basic.showString("Hello, World!")] block
should read
click on the [basic.showString("Hello!")] block

6121Errata in text
Page 121, Paragraph 3:
"greater than or equal to 0"
should read
"greater than 0"

Page 121, Paragraph 4:
"greater than or equal to 0"
should read
"greater than 0"

Page 121, Paragraph 9:
On Line 28 change "< 0 to > 4" to "> 0 to < 4"

7137Errata in text
Paragraph 5:
Opening sentence should read
As an experiment, try adding this third if statement to the start
of your program directly below while True:, picking a different
image to display, and changing the other two if statements to read
elif (else-if).

7138Errata in text
Paragraph 5:
The let instruction
should read
This second line

7144Errata in text
Paragraph 2:
The line from microbit import *
should not be indented as printed,
but should line up with the while True:
line beneath it

10201Errata in text
Paragraph 1:
The following two sections describe the SPI and IU+00B2C buses
should read
The following three sections describe the SPI, IU+00B2C, and UART buses