This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This is a simple(not very optimised) library to use Shift registers on a raspberry pi.

All pin numbers are based on the GPIO.BCM numbering scheme.

All Values are automatically reversed when using the write function.

You will also need the RPi.GPIO module available.

Basic Usage

Connect the Data pin to GPIO 18, the Clock pin to GPIO 23 and the Latch to GPIO 24.

import PiShiftPy as shift

shift.init()
shift.writeAll(0x00) # Will write 0000 0000
shift.write(0xFF) # Will write 1111 1111

Advanced Usage

Writing values

import PiShiftPy as shift
shift.init(17, 27, 22, 2)  # Initialize with DataPin = GPIO17, Clock=GPIO27, Latch=GPIO22 with 2 chained registers
shift.writeAll(0xFFFF) # Will write 0000 0000 0000 0000
shift.writeAll(0xFFFF) # Will write 1111 1111 1111 1111

Writing individual Pins

import PiShiftPy as shift
shift.init(17, 27, 22, 1)  # Initialize with DataPin = GPIO17, Clock=GPIO27, Latch=GPIO22 with 1 register
shift.push_bit(0)
shift.push_bit(1)
shift.push_bit(0)
shift.push_bit(1)
shift.push_bit(1)
shift.push_bit(1)
shift.push_bit(0)
shift.push_bit(1)
shift.write_latch()

Author

Shrikant Patnaik

Release History

Release History

0.1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
PiShiftPy-0.1.1-py2.py3-none-any.whl (4.0 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Jan 9, 2015
PiShiftPy-0.1.1.tar.gz (3.1 kB) Copy SHA256 Checksum SHA256 Source Jan 9, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting