Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Easily use Multiple 7 segment displays connected to 74HC595 and Other Shift registers with your Raspberry Pi

Project Description

This is a simple library to use M 7 segment displays connected to N *595 Shift registers. All pin numbers are based on the GPIO.BCM numbering scheme. You will need the RPi.GPIO module available.

This module also requires my PiShiftPy library.

Basic Usage

Defaults

595 Data: 18
595 Clock: 23
595 Latch: 24
No of 595’s: 1
No of Displays on each 595: 1
Displays are Common Cathode: False

Code

import Pi7SegPy as Pi7Seg

Pi7Seg.init()
while True:
    Pi7Seg.show([1]) # Display 1 on a single 7 segment display connected to 1 Shift register

Advanced Usage

import Pi7SegPy as Pi7Seg

Pi7Seg.init(17,27,22,2,4) # Initialize with Data:GPIO17, Clock:GPIO27, Latch:GPIO22, with 2 shift registers and 4 7 segment displays on each register

while True:
    Pi7Seg.show([1,2,3,4,5,6,7,8], [1,2,5]) # Display 12345678 on 8 displays connected to 2 registers with dots enabled on the 1st, 2nd and 5th Digit

Available Characters

0,1,2,3,4,5,6,7,8,A,b,C,c,d,E,F,H,h,L,n,I,O,o,P,S, (space)

Release History

Release History

This version
History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Pi7SegPy-0.1.1-py2.py3-none-any.whl (4.4 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Jan 9, 2015
Pi7SegPy-0.1.1.tar.gz (3.4 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