micro:bit connection library
    Preparing search index...

    Interface MicrobitUSBConnectionOptions

    interface MicrobitUSBConnectionOptions {
        deviceSelectionMode?: DeviceSelectionMode;
        logging?: Logging;
        pauseOnHidden?: boolean;
    }
    Index
    deviceSelectionMode?: DeviceSelectionMode

    Determines how a device should be selected.

    logging?: Logging

    Determines logging behaviour for events, errors, and logs.

    pauseOnHidden?: boolean

    Whether to automatically pause the USB connection when the browser tab becomes hidden and reconnect when it becomes visible again.

    When enabled, the connection transitions to PAUSED instead of staying connected while the tab is hidden. This frees the USB interface for other tabs or processes.

    true