Device Discovery with Python

Detecting and creating devices

The API provides functions for detecting and creating USB, Bluetooth, and/or Ethernet devices within the Universal Library without running InstaCal.

Retrieving and setting device configuration options

The UL API provides functions for retrieving and setting board-level configuration options. If the default configuration is not adequate for your application, and you aren't using InstaCal for board configuration, then you'll need to use these features to change the configuration.

Call get_config()/get_config_string() to retrieve configuration options. Call set_config()/set_config_string() to set configuration options.

Example programs

The following example programs demonstrate how to detect USB, Bluetooth or Ethernet devices:

Note that Instacal is required to detect other device types.

Example programs for the UL Python API are available for download from the mcculw GitHub repository.