Using our website means you agree to using cookies which help us improve microbit.org.Learn more
Skip to content

User guide

WebUSB

If you have a modern web browser you can send your programs straight to the micro:bit from the MakeCode and Python editors without having to download, drag and drop HEX files.

WebUSB flashing saves time and makes it simpler to update the code on your micro:bit each time you update the code in your editor.

It uses a process called WebUSB, which makes a connection between the browser or app and the micro:bit via the USB cable.

Requirements

To use WebUSB, you need to have:

  • Windows 8+, Mac or Linux as your operating system.
  • A Chrome-based browser like Google Chrome at version 65 or above. You can check this in Google Chrome in the settings page.
  • micro:bit firmware0243 or above - see our firmware guide if you're not sure what firmware your micro:bit has and learn how to update it if necessary.

MakeCode

screen recording showing how to connect micro:bit to MakeCode editor for webUSB
  1. From the MakeCode editor settings menu, choose Pair Device. You will see a pop-up in the browser that lists any micro:bits you have connected with a USB cable.
  2. Select the device named BBC micro:bit CMSIS-DAP and then Connect. You will see a message telling you that a connection has been made.
  3. Try downloading your program, you should find that it is now flashed directly to the micro:bit each time you press DOWNLOAD.

Don’t see a device listed? Check our WebUSB troubleshooting guide for help.

Python

Screen recording showing how to connect micro:bit Python editor using webUSB
  1. From the Python editor menu choose Connect. You will see a pop-up in the browser that lists any micro:bits you have connected with a USB cable.
  2. Select the device named BBC micro:bit CMSIS-DAP and then Connect. You will see the menu update to show you a connection has been made. Flash and Disconnect appear as buttons in the menu
  3. Try flashing your program, you should find that it is now flashed directly to the micro:bit each time you press Flash.

Don’t see a device listed? Check our WebUSB troubleshooting guide for help.