Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Black

CircuitPython driver for 74HC165 shift register.

Dependencies

This driver depends on:

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:

pip3 install woolseyworkshop-circuitpython-74hc165

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

sudo pip3 install woolseyworkshop-circuitpython-74hc165

To install in a virtual environment in your current project:

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

Usage Example

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.

Metadata

Release files for woolseyworkshop-circuitpython-74hc165 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for woolseyworkshop-circuitpython-74hc165 1.0.0
File Size Uploaded
woolseyworkshop-circuitpython-74hc165-1.0.0.tar.gz 28.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for woolseyworkshop-circuitpython-74hc165 1.0.0
File Interpreter ABI Platform
woolseyworkshop_circuitpython_74hc165-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.1 kB

Release files / woolseyworkshop-circuitpython-74hc165-1.0.0.tar.gz

Download URL woolseyworkshop-circuitpython-74hc165-1.0.0.tar.gz
Size 28.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9c5f84028998d25d17e2cc8c62912b13a57960ccaabbefab1b7204b39c0b3f3f
BLAKE2b-256 checksum
How to use checksums
77014ca3d595368c834c037c94fd12edd514daba40172683ce0680d088637c5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / woolseyworkshop_circuitpython_74hc165-1.0.0-py3-none-any.whl

Download URL woolseyworkshop_circuitpython_74hc165-1.0.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dffda0f7a83d05ea77e0b8ae612b00934e698c823ce39915880572ef3204ce16
BLAKE2b-256 checksum
How to use checksums
cce541fac432cd10ba635559c0b2ebd2f6dd025066e79bf6a35574d631ccfb79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.8.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page