{ "info": { "author": "Adafruit Industries", "author_email": "circuitpython@adafruit.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries", "Topic :: System :: Hardware" ], "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-tca9548a/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/tca9548a/en/latest/\n :alt: Documentation Status\n\n.. image:: https://img.shields.io/discord/327254708534116352.svg\n :target: https://discord.gg/nBQh6qu\n :alt: Discord\n\n.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_TCA9548A.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_TCA9548A\n :alt: Build Status\n\nCircuitPython driver for the TCA9548A I2C Multiplexer.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\n* `Bus Device `_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle `_.\n\nUsage Example\n=============\n\n.. code-block :: python\n\n # This example shows using two TSL2491 light sensors attached to TCA9548A channels 0 and 1.\n # Use with other I2C sensors would be similar.\n import time\n import board\n import busio\n import adafruit_tsl2591\n import adafruit_tca9548a\n\n # Create I2C bus as normal\n i2c = busio.I2C(board.SCL, board.SDA)\n\n # Create the TCA9548A object and give it the I2C bus\n tca = adafruit_tca9548a.TCA9548A(i2c)\n\n # For each sensor, create it using the TCA9548A channel instead of the I2C object\n tsl1 = adafruit_tsl2591.TSL2591(tca[0])\n tsl2 = adafruit_tsl2591.TSL2591(tca[1])\n\n # Loop and profit!\n while True:\n print(tsl1.lux, tsl2.lux)\n time.sleep(0.1)\n\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n`_\nbefore contributing to help this project stay welcoming.\n\nBuilding locally\n================\n\nZip release files\n-----------------\n\nTo build this library locally you'll need to install the\n`circuitpython-build-tools `_ package.\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install circuitpython-build-tools\n\nOnce installed, make sure you are in the virtual environment:\n\n.. code-block:: shell\n\n source .env/bin/activate\n\nThen run the build:\n\n.. code-block:: shell\n\n circuitpython-build-bundles --filename_prefix adafruit-circuitpython-tca9548a --library_location .\n\nSphinx documentation\n-----------------------\n\nSphinx is used to build the documentation based on rST files and comments in the code. First,\ninstall dependencies (feel free to reuse the virtual environment from above):\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install Sphinx sphinx-rtd-theme\n\nNow, once you have the virtual environment activated:\n\n.. code-block:: shell\n\n cd docs\n sphinx-build -E -W -b html . _build/html\n\nThis will output the documentation to ``docs/_build/html``. Open the index.html in your browser to\nview them. It will also (due to -W) error out on any warning like Travis will. This is a good way to\nlocally verify it will pass.", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adafruit/Adafruit_CircuitPython_TCA9548A", "keywords": "adafruit tca9548a i2c multiplexer hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-tca9548a", "package_url": "https://pypi.org/project/adafruit-circuitpython-tca9548a/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-tca9548a/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_TCA9548A" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-tca9548a/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython driver for the TCA9548A I2C Multiplexer.", "version": "0.2.1" }, "last_serial": 5642173, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "803b41333a249bfd4a527585cb5ca605", "sha256": "41f3ff8eef00e6ae39ef2694f15a61795f0847163dc0328689d9b6e9e5c2bb70" }, "downloads": -1, "filename": "adafruit-circuitpython-tca9548a-0.1.1.tar.gz", "has_sig": false, "md5_digest": "803b41333a249bfd4a527585cb5ca605", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19683, "upload_time": "2018-10-02T19:50:40", "url": "https://files.pythonhosted.org/packages/d0/6c/eaaf137ae0d0daa12136534ca0767469d3a02cb89142136b760b92726a73/adafruit-circuitpython-tca9548a-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "2d8b3fda5cd441913df9340599e49840", "sha256": "c0b76ccf7a2dc1fe8cbb534ee6e4274359714e9c55d93fd5adbfb464d13e4736" }, "downloads": -1, "filename": "adafruit-circuitpython-tca9548a-0.1.2.tar.gz", "has_sig": false, "md5_digest": "2d8b3fda5cd441913df9340599e49840", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18866, "upload_time": "2019-01-15T03:21:27", "url": "https://files.pythonhosted.org/packages/40/b9/5199fde6d62a61bec2e0d9373ac8eb6c32fd6461c9033cd31854249da2e3/adafruit-circuitpython-tca9548a-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "4463564548b8b19081f837e435d3da5d", "sha256": "34a6d0d4a4ad676191ea6c37030e337a98603f872d56ff3edd7c882312862af8" }, "downloads": -1, "filename": "adafruit-circuitpython-tca9548a-0.2.0.tar.gz", "has_sig": false, "md5_digest": "4463564548b8b19081f837e435d3da5d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18925, "upload_time": "2019-04-03T18:57:44", "url": "https://files.pythonhosted.org/packages/9c/74/033a82c642e92d50af07c8fb1cc81d615a54e5d1ac8037e7b7cac903cde7/adafruit-circuitpython-tca9548a-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "6b8df855894aab460c0b2b4bcc82ebbe", "sha256": "527769c7dd3c9f6e752e1b2e0bfa9d39e8b6dce1eac8946ffa5401cc4e43012f" }, "downloads": -1, "filename": "adafruit-circuitpython-tca9548a-0.2.1.tar.gz", "has_sig": false, "md5_digest": "6b8df855894aab460c0b2b4bcc82ebbe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19029, "upload_time": "2019-08-06T23:10:53", "url": "https://files.pythonhosted.org/packages/13/b2/93e5ce6e93f01a316d657be8055dbb4516d1c349514528e4672ca31f99f1/adafruit-circuitpython-tca9548a-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6b8df855894aab460c0b2b4bcc82ebbe", "sha256": "527769c7dd3c9f6e752e1b2e0bfa9d39e8b6dce1eac8946ffa5401cc4e43012f" }, "downloads": -1, "filename": "adafruit-circuitpython-tca9548a-0.2.1.tar.gz", "has_sig": false, "md5_digest": "6b8df855894aab460c0b2b4bcc82ebbe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19029, "upload_time": "2019-08-06T23:10:53", "url": "https://files.pythonhosted.org/packages/13/b2/93e5ce6e93f01a316d657be8055dbb4516d1c349514528e4672ca31f99f1/adafruit-circuitpython-tca9548a-0.2.1.tar.gz" } ] }