{ "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-74hc595/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/74hc595/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_74HC595.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_74HC595\n :alt: Build Status\n\nCircuitPython driver for 74HC595 shift register.\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\nInstalling from PyPI\n--------------------\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI `_. To install for current user:\n\n.. code-block:: shell\n\n pip3 install adafruit-circuitpython-74hc595\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-74hc595\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n mkdir project-name && cd project-name\n python3 -m venv .env\n source .env/bin/activate\n pip3 install adafruit-circuitpython-74hc595\n\nUsage Example\n=============\n\n.. code-block:: python\n\n import board\n import adafruit_74hc595\n import busio\n import digitalio\n import time\n\n spi = busio.SPI(board.SCK, MOSI=board.MOSI)\n\n latch_pin = digitalio.DigitalInOut(board.D5)\n sr = adafruit_74hc595.ShiftRegister74HC595(spi, latch_pin)\n\n pin1 = sr.get_pin(1)\n\n while True:\n pin1.value = True\n time.sleep(1)\n pin1.value = False\n time.sleep(1)\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-74hc595 --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_74HC595", "keywords": "adafruit shift register 74hc595 hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-74hc595", "package_url": "https://pypi.org/project/adafruit-circuitpython-74hc595/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-74hc595/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_74HC595" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-74hc595/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython driver for 74HC595 shift register.", "version": "1.0.2" }, "last_serial": 4701214, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "6e0c1e2c1cf7b5dcbeba31fb874f788c", "sha256": "ca3dc5960832c99ef815e2803d6e3e65f6d3298cd8cbaaabe738245550c6a829" }, "downloads": -1, "filename": "adafruit-circuitpython-74hc595-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6e0c1e2c1cf7b5dcbeba31fb874f788c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20348, "upload_time": "2018-11-20T01:16:01", "url": "https://files.pythonhosted.org/packages/d9/66/d115c48c4aedf328a666776ff2a54543672bee8dd0c04b988192e7e34e76/adafruit-circuitpython-74hc595-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "fafcb30149992b6744e80fb01fb7bfd3", "sha256": "d0319cd23205fa0215caead107945bf73374c65d40d74500f8912b79b27149dd" }, "downloads": -1, "filename": "adafruit-circuitpython-74hc595-1.0.2.tar.gz", "has_sig": false, "md5_digest": "fafcb30149992b6744e80fb01fb7bfd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18970, "upload_time": "2019-01-16T02:17:01", "url": "https://files.pythonhosted.org/packages/aa/9c/32a0793d90303c83dfb7a2f6b159a3947727648ea160d822e602d478251b/adafruit-circuitpython-74hc595-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fafcb30149992b6744e80fb01fb7bfd3", "sha256": "d0319cd23205fa0215caead107945bf73374c65d40d74500f8912b79b27149dd" }, "downloads": -1, "filename": "adafruit-circuitpython-74hc595-1.0.2.tar.gz", "has_sig": false, "md5_digest": "fafcb30149992b6744e80fb01fb7bfd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18970, "upload_time": "2019-01-16T02:17:01", "url": "https://files.pythonhosted.org/packages/aa/9c/32a0793d90303c83dfb7a2f6b159a3947727648ea160d822e602d478251b/adafruit-circuitpython-74hc595-1.0.2.tar.gz" } ] }