{ "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": "Adafruit CircuitPython BusDevice\n================================\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-busdevice/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/bus_device/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_BusDevice.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_BusDevice\n :alt: Build Status\n\nThe ``I2CDevice`` and ``SPIDevice`` helper classes make managing transaction state\non a bus easy. For example, they manage locking the bus to prevent other\nconcurrent access. For SPI devices, it manages the chip select and protocol\nchanges such as mode. For I2C, it manages the device address.\n\n.. _bus_device_installation:\n\nInstallation\n-------------\n\nThis library is **NOT** built into CircuitPython to make it easy to update. To\ninstall it either follow the directions below or `install the library\nbundle `_.\n\nTo install:\n\n#. Download and unzip the `latest release zip `_.\n#. Copy the unzipped ``adafruit_bus_device`` to the ``lib`` directory on the ``CIRCUITPY`` drive.\n\nUsage Example\n=============\n\nSee examples/read_register_i2c.py and examples/read_register_spi.py for examples of the module's usage.\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\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-busdevice --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_BusDevice", "keywords": "adafruit spi i2c bus device micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-busdevice", "package_url": "https://pypi.org/project/adafruit-circuitpython-busdevice/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-busdevice/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_BusDevice" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-busdevice/4.0.0/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython bus device classes to manage bus sharing.", "version": "4.0.0" }, "last_serial": 5717480, "releases": { "2.2.11": [ { "comment_text": "", "digests": { "md5": "3863f1841c72d25c389ad8856d60db39", "sha256": "6a91e341bf36e105f0a4f6556558314e4b333feceeefb8b67c58344f4fe2cdd1" }, "downloads": -1, "filename": "adafruit-circuitpython-busdevice-2.2.11.tar.gz", "has_sig": false, "md5_digest": "3863f1841c72d25c389ad8856d60db39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23368, "upload_time": "2019-05-11T15:17:55", "url": "https://files.pythonhosted.org/packages/39/46/82b0f595f7d9d94d197d26391db6b04addc389e7c66ee047117338204734/adafruit-circuitpython-busdevice-2.2.11.tar.gz" } ], "2.2.2": [ { "comment_text": "", "digests": { "md5": "1c102a9ad43ccbaa139eb3bfd97c1b47", "sha256": "5e9d14e5521d0fe77f0ebabee5246058ebbd8358fa1678251b2031ce37bb455f" }, "downloads": -1, "filename": "adafruit-circuitpython-busdevice-2.2.2.tar.gz", "has_sig": false, "md5_digest": "1c102a9ad43ccbaa139eb3bfd97c1b47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22377, "upload_time": "2018-06-28T20:27:35", "url": "https://files.pythonhosted.org/packages/8e/67/2b36925135776d534ce0da80f5ffd879594e13b8aafa32e5a80e0d09f906/adafruit-circuitpython-busdevice-2.2.2.tar.gz" } ], "2.2.3": [ { "comment_text": "", "digests": { "md5": "5088b857a0047275191d943c164957c4", "sha256": "f6bc07b1fb07d4fe7b03eaef1a7280be210f218b557ba9d1f46d012b0bccf0ee" }, "downloads": -1, "filename": "adafruit-circuitpython-busdevice-2.2.3.tar.gz", "has_sig": false, "md5_digest": "5088b857a0047275191d943c164957c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23435, "upload_time": "2018-08-07T22:11:25", "url": "https://files.pythonhosted.org/packages/dc/aa/c5038067ee1dce3c0b10f3d6db9f5a556c6873db95054c56b96cace1acb4/adafruit-circuitpython-busdevice-2.2.3.tar.gz" } ], "2.2.4": [ { "comment_text": "", "digests": { "md5": "8ea4c32a84273553e0dfc96076534310", "sha256": "2f278e19ab1b1be7cdf27da2847e6a33a5aef72604aff1cc120485fbbe032c80" }, "downloads": -1, "filename": "adafruit-circuitpython-busdevice-2.2.4.tar.gz", "has_sig": false, "md5_digest": "8ea4c32a84273553e0dfc96076534310", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23839, "upload_time": "2018-08-17T18:26:36", "url": "https://files.pythonhosted.org/packages/58/a3/b7c711f314b3ffbaf2a02d242330ff093d6fa4fb85dd37e0a8d04cd6e709/adafruit-circuitpython-busdevice-2.2.4.tar.gz" } ], "2.2.5": [ { "comment_text": "", "digests": { "md5": "c900c57f38dc28c33a9cd128fadd4179", "sha256": "b7c29f20c1f24a6c302cecc2cee16c247e8be647a01e1934c92e2b507a14360f" }, "downloads": -1, "filename": "adafruit-circuitpython-busdevice-2.2.5.tar.gz", "has_sig": false, "md5_digest": "c900c57f38dc28c33a9cd128fadd4179", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23871, "upload_time": "2018-08-19T20:02:15", "url": "https://files.pythonhosted.org/packages/f0/f2/fd1558de4ea0ffde2e669f32c8ecba4b8d3f6507c54015e01cf39183153a/adafruit-circuitpython-busdevice-2.2.5.tar.gz" } ], "2.2.6": [ { "comment_text": "", "digests": { "md5": "2d942e50d88b9e61b848880b4a29b407", "sha256": "e9e87521974c3fbada505e8ec196bee2cb0e4e31cfd5a6a4ca5d1b820f728bd4" }, "downloads": -1, "filename": "adafruit-circuitpython-busdevice-2.2.6.tar.gz", "has_sig": false, "md5_digest": "2d942e50d88b9e61b848880b4a29b407", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23876, "upload_time": "2018-11-01T21:36:00", "url": "https://files.pythonhosted.org/packages/f4/cc/27ebd30b8c20da7aca48052b1b4f2509351af76a9141ac72d8bd51e057b2/adafruit-circuitpython-busdevice-2.2.6.tar.gz" } ], "2.2.7": [ { "comment_text": "", "digests": { "md5": "bf455fa45a23d49f8b43497cf9558652", "sha256": "72b04e13934a84058417da33cec7866eca428acb968d37dd6cee48fe163dc260" }, "downloads": -1, "filename": "adafruit-circuitpython-busdevice-2.2.7.tar.gz", "has_sig": false, "md5_digest": "bf455fa45a23d49f8b43497cf9558652", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23964, "upload_time": "2018-11-20T06:36:30", "url": "https://files.pythonhosted.org/packages/76/dd/f263949ebebfd1a39f097d55b9843d76f7fb3f9ffce24505d4f4a0135895/adafruit-circuitpython-busdevice-2.2.7.tar.gz" } ], "2.2.8": [ { "comment_text": "", "digests": { "md5": "155c846e7d35d5b455a3db08d412cf66", "sha256": "5fd43b184cce950fcff881cf8a8e685a199476fdde743244a4d6f1bdf4e9a8d4" }, "downloads": -1, "filename": "adafruit-circuitpython-busdevice-2.2.8.tar.gz", "has_sig": false, "md5_digest": "155c846e7d35d5b455a3db08d412cf66", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23262, "upload_time": "2019-01-16T02:14:43", "url": "https://files.pythonhosted.org/packages/f1/40/723020f21f72c55fb09d4a6b78618b44e25a57933318bcce50d050c6efe9/adafruit-circuitpython-busdevice-2.2.8.tar.gz" } ], "2.2.9": [ { "comment_text": "", "digests": { "md5": "eca25c114d65a7465e86aa1201f5732e", "sha256": "c02a649347cbe0bf6ba091fd2886be08cd3bdb22148ef2a820a771afd8b1acd3" }, "downloads": -1, "filename": "adafruit-circuitpython-busdevice-2.2.9.tar.gz", "has_sig": false, "md5_digest": "eca25c114d65a7465e86aa1201f5732e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23368, "upload_time": "2019-02-08T23:27:52", "url": "https://files.pythonhosted.org/packages/fd/d4/205debe6913271bc9749aca7eea69a4b50823d496b036c9a65a14385c84b/adafruit-circuitpython-busdevice-2.2.9.tar.gz" } ], "3.0.0": [ { "comment_text": "", "digests": { "md5": "c9f3f0f650962b36ab51f526c374631d", "sha256": "f1852212a9cab3f6735ed2b9e27b9620855a4ca43c95e13d6e59d7f2b02be26a" }, "downloads": -1, "filename": "adafruit-circuitpython-busdevice-3.0.0.tar.gz", "has_sig": false, "md5_digest": "c9f3f0f650962b36ab51f526c374631d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23262, "upload_time": "2019-06-12T21:24:21", "url": "https://files.pythonhosted.org/packages/43/6a/27d7ce2c0887ddac7aba5afde49daeeed9e56695df387093e91093467d52/adafruit-circuitpython-busdevice-3.0.0.tar.gz" } ], "4.0.0": [ { "comment_text": "", "digests": { "md5": "0ae508542cccbfe012cbb766377ff3a9", "sha256": "07a1430946b73925f98c6251b972bdf52c620d880150b1b4f5c7eff85b05fae7" }, "downloads": -1, "filename": "adafruit-circuitpython-busdevice-4.0.0.tar.gz", "has_sig": false, "md5_digest": "0ae508542cccbfe012cbb766377ff3a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23285, "upload_time": "2019-08-22T21:29:53", "url": "https://files.pythonhosted.org/packages/8a/c0/496db6fb0449383552e3e6d9024117ddb61c09bfab737eeef3462f0d7ce8/adafruit-circuitpython-busdevice-4.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0ae508542cccbfe012cbb766377ff3a9", "sha256": "07a1430946b73925f98c6251b972bdf52c620d880150b1b4f5c7eff85b05fae7" }, "downloads": -1, "filename": "adafruit-circuitpython-busdevice-4.0.0.tar.gz", "has_sig": false, "md5_digest": "0ae508542cccbfe012cbb766377ff3a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23285, "upload_time": "2019-08-22T21:29:53", "url": "https://files.pythonhosted.org/packages/8a/c0/496db6fb0449383552e3e6d9024117ddb61c09bfab737eeef3462f0d7ce8/adafruit-circuitpython-busdevice-4.0.0.tar.gz" } ] }