adafruit-circuitpython-74hc595


Nameadafruit-circuitpython-74hc595 JSON
Version 1.5.0 PyPI version JSON
download
home_pageNone
SummaryCircuitPython driver for 74HC595 shift register.
upload_time2025-10-22 18:41:42
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords adafruit shift register 74hc595 hardware micropython circuitpython
VCS
bugtrack_url
requirements Adafruit-Blinka adafruit-circuitpython-busdevice adafruit-circuitpython-typing
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/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
    :target: https://github.com/astral-sh/ruff
    :alt: Code Style: Ruff

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/ea/a0/88db0895fe71cd3ea3f7073a561ff4c390b5f5ec6f228791a83d38191573/adafruit_circuitpython_74hc595-1.5.0.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/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\n    :target: https://github.com/astral-sh/ruff\n    :alt: Code Style: Ruff\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.5.0",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_74HC595"
    },
    "split_keywords": [
        "adafruit",
        " shift",
        " register",
        " 74hc595",
        " hardware",
        " micropython",
        " circuitpython"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9a519b94583a0709be2c73e1b1b461b8a751ad7f2ccc05fd7efad2623d61f775",
                "md5": "c4df94ed55c1f79d8081055cb7d20aae",
                "sha256": "bc5bbf40a30b827f08b3e7517b561f58eca3368de4f1c9dc4bf58f15e46abd59"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_74hc595-1.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c4df94ed55c1f79d8081055cb7d20aae",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5803,
            "upload_time": "2025-10-22T18:41:41",
            "upload_time_iso_8601": "2025-10-22T18:41:41.509125Z",
            "url": "https://files.pythonhosted.org/packages/9a/51/9b94583a0709be2c73e1b1b461b8a751ad7f2ccc05fd7efad2623d61f775/adafruit_circuitpython_74hc595-1.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "eaa088db0895fe71cd3ea3f7073a561ff4c390b5f5ec6f228791a83d38191573",
                "md5": "8d5f28599b652564e548e07215763e7f",
                "sha256": "0ac2394a4edc5e1e6a17a280239325c04b53613bf01f76d418b3d008092c446a"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_74hc595-1.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "8d5f28599b652564e548e07215763e7f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2139630,
            "upload_time": "2025-10-22T18:41:42",
            "upload_time_iso_8601": "2025-10-22T18:41:42.796904Z",
            "url": "https://files.pythonhosted.org/packages/ea/a0/88db0895fe71cd3ea3f7073a561ff4c390b5f5ec6f228791a83d38191573/adafruit_circuitpython_74hc595-1.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-22 18:41:42",
    "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": [
        {
            "name": "Adafruit-Blinka",
            "specs": []
        },
        {
            "name": "adafruit-circuitpython-busdevice",
            "specs": []
        },
        {
            "name": "adafruit-circuitpython-typing",
            "specs": []
        }
    ],
    "lcname": "adafruit-circuitpython-74hc595"
}
        
Elapsed time: 2.70991s