https://github.com/woolseyworkshop/woolseyworkshop_circuitpython_74hc165
CircuitPython driver for 74HC165 shift register.
https://github.com/woolseyworkshop/woolseyworkshop_circuitpython_74hc165
74hc165 circuitpython-library
Last synced: 10 months ago
JSON representation
CircuitPython driver for 74HC165 shift register.
- Host: GitHub
- URL: https://github.com/woolseyworkshop/woolseyworkshop_circuitpython_74hc165
- Owner: WoolseyWorkshop
- License: mit
- Created: 2021-06-08T15:03:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-19T19:57:47.000Z (about 2 years ago)
- Last Synced: 2025-02-02T16:25:00.563Z (12 months ago)
- Topics: 74hc165, circuitpython-library
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Introduction
============
.. image:: https://readthedocs.org/projects/woolseyworkshop-circuitpython-74hc165/badge/?version=latest
:target: https://woolseyworkshop-circuitpython-74hc165.readthedocs.io/
: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/WoolseyWorkshop/WoolseyWorkshop_CircuitPython_74HC165/workflows/Build%20CI/badge.svg
:target: https://github.com/WoolseyWorkshop/WoolseyWorkshop_CircuitPython_74HC165/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 74HC165 shift register.
Dependencies
============
This driver depends on:
* `Adafruit CircuitPython `_
* `Bus Device `_
Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle `_.
Installing from PyPI
====================
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
PyPI `_. To install for current user:
.. code-block:: shell
pip3 install woolseyworkshop-circuitpython-74hc165
To install system-wide (this may be required in some cases):
.. code-block:: shell
sudo pip3 install woolseyworkshop-circuitpython-74hc165
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 woolseyworkshop-circuitpython-74hc165
Usage Example
=============
.. code-block:: python
import time
import board
import digitalio
import wws_74hc165
latch_pin = digitalio.DigitalInOut(board.D5)
sr = wws_74hc165.ShiftRegister74HC165(board.SPI(), latch_pin)
pin1 = sr.get_pin(1)
while True:
print(f"pin 1 = {pin1.value}")
time.sleep(1)
Also see the `Adding Digital I/O To Your CircuitPython Compatible Board: Part 2 - The 74HC165 `_ tutorial on `WoolseyWorkshop.com `_ for additional usage information.
Documentation
=============
API documentation for this library can be found on `Read the Docs `_.
For information on building library documentation, please check out `this guide `_.
Contributing
============
Contributions are welcome! Please read our `Code of Conduct
`_
before contributing to help this project stay welcoming.