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:
uBitConnectDevice(callback): Prompt user to connect to device and provide callback function for device events- See
uBitEventCallbackfor callback format and argument descriptions.
- See
uBitSend(device): Send data (astring) to a micro:bituBitDisconnect(device): Disconnect from the designatedmicro:bit