Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Ruff

CircuitPython driver for 74HC595 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 adafruit-circuitpython-74hc595

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

sudo pip3 install adafruit-circuitpython-74hc595

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 adafruit-circuitpython-74hc595

Usage Example

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.

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 adafruit-circuitpython-74hc595 1.5.2

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

Source distribution (sdist)

Source distribution for adafruit-circuitpython-74hc595 1.5.2
File Size Uploaded
adafruit_circuitpython_74hc595-1.5.2.tar.gz 2.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-74hc595 1.5.2
File Interpreter ABI Platform
adafruit_circuitpython_74hc595-1.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 2.1 MB

Release files / adafruit_circuitpython_74hc595-1.5.2.tar.gz

Download URL adafruit_circuitpython_74hc595-1.5.2.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
15b5547586b27978603ec926a2b32a68f285fa8e244f8013f1d5c2b8f902c68c
BLAKE2b-256 checksum
How to use checksums
5b6eeadca5ffd3b6111e66dac858bdab9382a96d1f64d4175873f672ea37b15c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / adafruit_circuitpython_74hc595-1.5.2-py3-none-any.whl

Download URL adafruit_circuitpython_74hc595-1.5.2-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c5270651335244eb899f5d9218286f08514c95bef446d74b92a7e53132a2294
BLAKE2b-256 checksum
How to use checksums
0064aa53ce74a27de0cf4e9eaba560ac2f7adcc09de0c6dbf821fb62c0b08aa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

1.5.2 This release

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.9

2 release files

1.4.8

2 release files

1.4.7

2 release files

1.4.6

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.10

2 release files

1.3.9

2 release files

1.3.8

2 release files

1.3.7

1 release file

1.3.6

1 release file

1.3.5

1 release file

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.4

1 release file

1.2.3

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

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