Skip to main content

CircuitPython driver for 74HC165 shift register.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

woolseyworkshop-circuitpython-74hc165-1.0.0.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file woolseyworkshop-circuitpython-74hc165-1.0.0.tar.gz.

File metadata

File hashes

Hashes for woolseyworkshop-circuitpython-74hc165-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9c5f84028998d25d17e2cc8c62912b13a57960ccaabbefab1b7204b39c0b3f3f
MD5 438377d33fbe5c14a93891c61c25c9a7
BLAKE2b-256 77014ca3d595368c834c037c94fd12edd514daba40172683ce0680d088637c5e

See more details on using hashes here.

File details

Details for the file woolseyworkshop_circuitpython_74hc165-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for woolseyworkshop_circuitpython_74hc165-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dffda0f7a83d05ea77e0b8ae612b00934e698c823ce39915880572ef3204ce16
MD5 d3978e5caede479aa4cbb034326dd086
BLAKE2b-256 cce541fac432cd10ba635559c0b2ebd2f6dd025066e79bf6a35574d631ccfb79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page