adafruit-circuitpython-74hc595


Nameadafruit-circuitpython-74hc595 JSON
Version 1.4.5 PyPI version JSON
download
home_pageNone
SummaryCircuitPython driver for 74HC595 shift register.
upload_time2024-10-07 21:28:35
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords adafruit shift register 74hc595 hardware micropython circuitpython
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Introduction
============

.. image:: https://readthedocs.org/projects/adafruit-circuitpython-74hc595/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/74hc595/en/latest/
    :alt: Documentation Status

.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
    :target: https://adafru.it/discord
    :alt: Discord

.. image:: https://github.com/adafruit/Adafruit_CircuitPython_74HC595/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_74HC595/actions
    :alt: Build Status

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black
    :alt: Code Style: Black

CircuitPython driver for 74HC595 shift register.

Dependencies
=============
This driver depends on:

* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_

Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.

Installing from PyPI
====================

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
PyPI <https://pypi.org/project/adafruit-circuitpython-74hc595/>`_. To install for current user:

.. code-block:: shell

    pip3 install adafruit-circuitpython-74hc595

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

.. code-block:: shell

    sudo pip3 install adafruit-circuitpython-74hc595

To install in a virtual environment in your current project:

.. code-block:: shell

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

Usage Example
=============

.. code-block:: python

    import board
    import adafruit_74hc595
    import busio
    import digitalio
    import time

    spi = busio.SPI(board.SCK, MOSI=board.MOSI)

    latch_pin = digitalio.DigitalInOut(board.D5)
    sr = adafruit_74hc595.ShiftRegister74HC595(spi, latch_pin)

    pin1 = sr.get_pin(1)

    while True:
        pin1.value = True
        time.sleep(1)
        pin1.value = False
        time.sleep(1)

Documentation
=============

API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/74hc595/en/latest/>`_.

For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

Contributing
============

Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_CircuitPython_74HC595/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "adafruit-circuitpython-74hc595",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "adafruit, shift, register, 74hc595, hardware, micropython, circuitpython",
    "author": null,
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/7e/b6/b2cf6ea6719dd3a2d3ca0cb3f41ba49f073329e48aca57f92ee5bc7fb266/adafruit_circuitpython_74hc595-1.4.5.tar.gz",
    "platform": null,
    "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-74hc595/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/74hc595/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_74HC595/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_74HC595/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\nCircuitPython driver for 74HC595 shift register.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_\n* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.\n\nInstalling from PyPI\n====================\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI <https://pypi.org/project/adafruit-circuitpython-74hc595/>`_. 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 .venv\n    source .venv/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\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/74hc595/en/latest/>`_.\n\nFor information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n<https://github.com/adafruit/Adafruit_CircuitPython_74HC595/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "CircuitPython driver for 74HC595 shift register.",
    "version": "1.4.5",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_74HC595"
    },
    "split_keywords": [
        "adafruit",
        " shift",
        " register",
        " 74hc595",
        " hardware",
        " micropython",
        " circuitpython"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "515fcc91d846aff9cab3b343e8207aff0327d9aaea597d7abdb0dac35e82d56e",
                "md5": "2c4558c95cf86563e1e9a5db7b421a30",
                "sha256": "56ff273ee7cdea071acae1e3f3fabb259890e5ca22c2cf4a7851deb635953f7e"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_74hc595-1.4.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2c4558c95cf86563e1e9a5db7b421a30",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5477,
            "upload_time": "2024-10-07T21:28:33",
            "upload_time_iso_8601": "2024-10-07T21:28:33.336249Z",
            "url": "https://files.pythonhosted.org/packages/51/5f/cc91d846aff9cab3b343e8207aff0327d9aaea597d7abdb0dac35e82d56e/adafruit_circuitpython_74hc595-1.4.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7eb6b2cf6ea6719dd3a2d3ca0cb3f41ba49f073329e48aca57f92ee5bc7fb266",
                "md5": "a845e8f8c03f16f65b61ebc5fdd2d79c",
                "sha256": "5ca8c8500e9092b9c4572eed7bdb7882c9d53f7c6c4af8dca20406fee3a2f469"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_74hc595-1.4.5.tar.gz",
            "has_sig": false,
            "md5_digest": "a845e8f8c03f16f65b61ebc5fdd2d79c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2142142,
            "upload_time": "2024-10-07T21:28:35",
            "upload_time_iso_8601": "2024-10-07T21:28:35.336092Z",
            "url": "https://files.pythonhosted.org/packages/7e/b6/b2cf6ea6719dd3a2d3ca0cb3f41ba49f073329e48aca57f92ee5bc7fb266/adafruit_circuitpython_74hc595-1.4.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-07 21:28:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adafruit",
    "github_project": "Adafruit_CircuitPython_74HC595",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "adafruit-circuitpython-74hc595"
}
        
Elapsed time: 1.14177s