WebUSB

WebUSB is a recent and developing web standard that allows you to access micro:bit directly from a web page. It allows for a one-click download without installing any additional app or software! It also lets you receive data into the web page from the micro:bit.

Support

  • Chrome (version 79 and newer) browser for Android, Chrome OS, Linux, macOS and Windows 10.
  • Microsoft Edge (version 79 and newer) browser for Android, Chrome OS, Linux, macOS and Windows 10.

Prepare your micro:bit

Make sure that your micro:bit is running version 0249 or above of the firmware. Upgrading is as easy as dragging a file and it takes a few seconds to get it done.

Pair your micro:bit

Here are the steps on the supported browsers:

  • Connect your micro:bit to your computer with the Micro USB cable
  • Open a project
  • Click the triple dot icon on the Download button and then click Connect device.

Download button and menu

  • In the connection message window, click Next.

Connect device dialog

  • Another message window will display telling you which device you should pair with. Click Next to go to the device list.

Device name dialog

  • Select BBC micro:bit CMSIS-DAP or DAPLink CMSIS-DAP from the list and click Connect.

Device list for WebUSB pairing

If you don’t see any devices in the list and micro:bit has the right firmware (0249 or above), you can create a support ticket to notify the Micro:bit Foundation of the problem. Skip the rest of these steps.

Device list for WebUSB pairing

  • When your micro:bit is connected, you’ll see the Connected to micro:bit message window. Click on Done and you’re ready to go!

Connected message window

  • If the connection to your micro:bit was unsuccessful, you’ll see the Connect failed message. You can press Try Again to attempt the connection again or cancel the window and troubleshoot your connection.

Connect failed message window

Unpair your micro:bit

You will need to unpair your device from the editor to disable WebUSB.

  • Click on the lock icon in the address bar
  • Uncheck each BBC micro:bit CMSIS-DAP or DAPLink CMSIS-DAP device
  • Reload the page

Unpairing from the browser

One-click Download

Once your micro:bit is paired, MakeCode will use WebUSB to transfer the code without having to drag and drop. Happy coding!

Console output

MakeCode will be able to “listen” to your micro:bit and display the console output.