{"id":13774305,"url":"https://github.com/adafruit/adafruit_circuitpython_tca9548a","last_synced_at":"2025-04-06T06:12:21.849Z","repository":{"id":33082563,"uuid":"144749843","full_name":"adafruit/Adafruit_CircuitPython_TCA9548A","owner":"adafruit","description":"CircuitPython driver for the TCA9548A I2C Multiplexer.","archived":false,"fork":false,"pushed_at":"2025-01-22T20:48:40.000Z","size":110,"stargazers_count":26,"open_issues_count":4,"forks_count":17,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-04-06T06:12:10.083Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adafruit.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-14T17:08:37.000Z","updated_at":"2025-01-22T20:48:18.000Z","dependencies_parsed_at":"2023-12-24T00:25:53.672Z","dependency_job_id":"d232cdb7-f33f-46db-a018-0742af137b7c","html_url":"https://github.com/adafruit/Adafruit_CircuitPython_TCA9548A","commit_stats":{"total_commits":92,"total_committers":19,"mean_commits":4.842105263157895,"dds":0.782608695652174,"last_synced_commit":"46e2b596225053b3081fa6da586e61d6c2433a4b"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adafruit%2FAdafruit_CircuitPython_TCA9548A","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adafruit%2FAdafruit_CircuitPython_TCA9548A/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adafruit%2FAdafruit_CircuitPython_TCA9548A/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adafruit%2FAdafruit_CircuitPython_TCA9548A/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adafruit","download_url":"https://codeload.github.com/adafruit/Adafruit_CircuitPython_TCA9548A/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247441059,"owners_count":20939239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest"],"created_at":"2024-08-03T17:01:25.521Z","updated_at":"2025-04-06T06:12:21.827Z","avatar_url":"https://github.com/adafruit.png","language":"Python","funding_links":[],"categories":["\u003ca id=\"dd2b52e59921ad730fceac252d99dd77\"\u003e\u003c/a\u003eMultiplexer"],"sub_categories":[],"readme":"Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-tca9548a/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/tca9548a/en/latest/\n    :alt: Documentation Status\n\n.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg\n    :target: https://adafru.it/discord\n    :alt: Discord\n\n.. image:: https://github.com/adafruit/Adafruit_CircuitPython_TCA9548A/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_TCA9548A/actions/\n    :alt: Build Status\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n    :alt: Code Style: Black\n\n\nCircuitPython driver for the TCA9548A I2C Multiplexer.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython \u003chttps://github.com/adafruit/circuitpython\u003e`_\n* `Bus Device \u003chttps://github.com/adafruit/Adafruit_CircuitPython_BusDevice\u003e`_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle \u003chttps://github.com/adafruit/Adafruit_CircuitPython_Bundle\u003e`_.\n\nInstalling from PyPI\n====================\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI \u003chttps://pypi.org/project/adafruit-circuitpython-tca9548a/\u003e`_. To install for current user:\n\n.. code-block:: shell\n\n    pip3 install adafruit-circuitpython-tca9548a\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n    sudo pip3 install adafruit-circuitpython-tca9548a\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n    mkdir project-name \u0026\u0026 cd project-name\n    python3 -m venv .venv\n    source .venv/bin/activate\n    pip3 install adafruit-circuitpython-tca9548a\n\nUsage Example\n=============\n\n.. code-block :: python\n\n    # This example shows using TCA9548A to perform a simple scan for connected devices\n    import board\n    import adafruit_tca9548a\n\n    # Create I2C bus as normal\n    i2c = board.I2C()  # uses board.SCL and board.SDA\n\n    # Create the TCA9548A object and give it the I2C bus\n    tca = adafruit_tca9548a.TCA9548A(i2c)\n\n    for channel in range(8):\n        if tca[channel].try_lock():\n            print(\"Channel {}:\".format(channel), end=\"\")\n            addresses = tca[channel].scan()\n            print([hex(address) for address in addresses if address != 0x70])\n            tca[channel].unlock()\n\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs \u003chttps://docs.circuitpython.org/projects/tca9548a/en/latest/\u003e`_.\n\nFor information on building library documentation, please check out `this guide \u003chttps://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1\u003e`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n\u003chttps://github.com/adafruit/Adafruit_CircuitPython_TCA9548A/blob/main/CODE_OF_CONDUCT.md\u003e`_\nbefore contributing to help this project stay welcoming.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadafruit%2Fadafruit_circuitpython_tca9548a","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadafruit%2Fadafruit_circuitpython_tca9548a","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadafruit%2Fadafruit_circuitpython_tca9548a/lists"}