Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Black

CircuitPython driver for the TCA9548A I2C Multiplexer.

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-tca9548a

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-tca9548a

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-tca9548a

Usage Example

# This example shows using TCA9548A to perform a simple scan for connected devices
import board
import adafruit_tca9548a

# Create I2C bus as normal
i2c = board.I2C()  # uses board.SCL and board.SDA

# Create the TCA9548A object and give it the I2C bus
tca = adafruit_tca9548a.TCA9548A(i2c)

for channel in range(8):
    if tca[channel].try_lock():
        print("Channel {}:".format(channel), end="")
        addresses = tca[channel].scan()
        print([hex(address) for address in addresses if address != 0x70])
        tca[channel].unlock()

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Release files for adafruit-circuitpython-tca9548a 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adafruit-circuitpython-tca9548a 0.6.1
File Size Uploaded
adafruit-circuitpython-tca9548a-0.6.1.tar.gz 27.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-tca9548a 0.6.1
File Interpreter ABI Platform
adafruit_circuitpython_tca9548a-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 32.5 kB

Release files / adafruit-circuitpython-tca9548a-0.6.1.tar.gz

Download URL adafruit-circuitpython-tca9548a-0.6.1.tar.gz
Size 27.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0ad9b2e5b111214ee7ad51001fab78aaca2e669795c02ee9e57a440834de9b7b
BLAKE2b-256 checksum
How to use checksums
8b5bc29f2da8fae44574dcf29597b79c10ab144ce297ab3acce1546d7074b282
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / adafruit_circuitpython_tca9548a-0.6.1-py3-none-any.whl

Download URL adafruit_circuitpython_tca9548a-0.6.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87d28652ad43463116b9c30babf85a6321cd68c290fcc04d373f94ec7f661f19
BLAKE2b-256 checksum
How to use checksums
a69ebb9ccd8f8bc3840c27c904bb8a283bc55f39e53ca97dc341edd3b4ce4836
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

0.8.6

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

This release

0.6.1 This release

2 release files

0.6.0

1 release file

0.5.4

1 release file

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page