Home

uBitWebUSB

JavaScript functions for interacting with micro:bit microcontrollers over WebUSB (Only works in Chrome browsers; Pages must be either HTTPS or local to have permission to access USB)

Main functions are:

  1. uBitConnectDevice(callback): Prompt user to connect to device and provide callback function for device events
  2. uBitSend(device): Send data (a string) to a micro:bit
  3. uBitDisconnect(device): Disconnect from the designated micro:bit