API Reference

qwiic_tca9548a

Python module for the [Qwiic Mux Breakout](https://www.sparkfun.com/products/14685) This package can be used in conjunction with the overall [SparkFun qwiic Python Package](https://github.com/sparkfun/Qwiic_Py) New to qwiic? Take a look at the entire [SparkFun qwiic ecosystem](https://www.sparkfun.com/qwiic).

class qwiic_tca9548a.QwiicTCA9548A(address=None, debug=None, i2c_driver=None)[source]

Initialise the TCA9548A chip at address with i2c_driver. :param address: The I2C address to use for the device.

If not provided, the default address is used.
Parameters:i2c_driver – An existing i2c driver object. If not provided a driver object is created.
Returns:Constructor Initialization True- Successful False- Issue loading I2C driver
Return type:Bool
connected

Determine if the device is conntected to the system. :return: True if the device is connected, otherwise False. :rtype: bool

disable_all()[source]

This method disables the connection of all channels on the Qwiic Mux.

disable_channels(disable)[source]

This method disables the connection of specific channels on the Qwiic Mux. :param enable: Channel(s) to disable on the Qwiic Mux.

Input must be either an individual integer or list. The method will automatically convert an individual integer into a list. Range- 0 to 7
enable_all()[source]

This method enables the connection of specific channels on the Qwiic Mux.

enable_channels(enable)[source]

This method enables the connection of specific channels on the Qwiic Mux. :param enable: Channel(s) to enable on the Qwiic Mux. Input

must be either an individual integer or list. The method will automatically convert an individual integer into a list. Range- 0 to 7
is_connected()[source]

Determine if the device is conntected to the system. :return: True if the device is connected, otherwise False. :rtype: bool

list_channels()[source]

This method lists all the available channels and their current configuration (enabled or disabled) on the Qwiic Mux.