WebUSB
WebUSB is a recent and developing web feature that allows you to access a micro:bit directly from a web page. With MakeCode it allows for one-click downloads to your micro:bit without installing an additional app or other software! It also lets you directly receive data into the MakeCode editor from the micro:bit.
Pair your micro:bit
The first time you pair your micro:bit with your computer you’ll need to go through a few easy steps to get setup. Here’s how to get paired with WebUSB:
Download your project
Once you’ve created or opened a project, and you’re ready to download it to the micro:bit, click the Download button at the bottom of the editor window.

Connect the USB cable
If you haven’t connected it already, connect your micro:bit to your computer with a micro-USB cable. Then, click Next in the message window.

Pair the micro:bit with your computer
Another message window will display telling you to pair with the micro:bit device. Click Pair to see to the device list.

The micro:bit will appear as either BBC micro:bit CMSIS-DAP or DAPLink CMSIS-DAP in the list. Select the device and click Connect.

You’re connected!
When your micro:bit is connected, you’ll see the Connected to micro:bit message window. Click on Download and you’re project will transfer directly to the micro:bit!

One-click downloads
Once your micro:bit is paired, MakeCode will use WebUSB to transfer the code directly and you won’t have to drag and drop .hex files from a folder. Just click the Download button in the editor and your project code will just transfer to the micro:bit.
Console output
Another feature of having a WebUSB connection is that MakeCode will be able to detect console output from your micro:bit and display the console output in the editor.
Unpair your micro:bit
If you don’t want to use WebUSB any longer, you will need to unpair your device from the editor to disable the WebUSB connection.
- Click on the lock icon in the address bar of the browser.
- Uncheck each BBC micro:bit CMSIS-DAP or DAPLink CMSIS-DAP device displayed in the device list.
- Reload the MakeCode editor page.

Hex file download tool
Use The Hex Download Tool from the Micro:bit Foundation to download hex files to one or more micro:bits directly with WebUSB (without going through MakeCode).

