Skip to main content

Library for running 7-segments displays with TPIC6C596 drivers

Project description

Software to control 7-segment displays.

Software:

Based on code found in the comments section of the SparkFun Hookup Guide. Thanks to Member #910971 and Member #642108.

This code is further improved to easily support multiple displays, as well as text/numbers, with scrolling.

Hardware:

Tested with the following hardware:

It is likely to work with other variants, home made displays and/or drivers based on TPIC6C596, as well as other voltage converters for signal, for example the SparkFun Logic Level Converter.

12v power to the displays are provided externally.

Build instructions:

https://learn.sparkfun.com/tutorials/large-digit-driver-hookup-guide/all

In our case, we swapped the Arduino with a RaspberryPi 4. As the Pi operates with 3.3v signals on the GPIO compared to the 5v of the Arduino, the signal lines (clk, latch, data) needs to be adjusted via a logic level converter.

Defaults:

Segments class parameters, based on the Raspberry BCM pinout:

  • bcm_gpio_clock=11 (CLK)
  • bcm_gpio_latch=13 (Signals when to switch to the next display)
  • bcm_gpio_data=14 (TXD - used to turn each segment on/off)
  • num_displays=7 (The number of displays you've chained)
  • debug=False (Turns on debug output to console)
  • offline=False (Deactivates the actual GPIO-parts, used mainly for dev/tests)

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

rpi_7segment-0.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

rpi_7segment-0.0.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file rpi_7segment-0.0.1.tar.gz.

File metadata

  • Download URL: rpi_7segment-0.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.3

File hashes

Hashes for rpi_7segment-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9fda16fc6b289cb75d872ce1d293daf981ea47dc8a72fdec77146696a4aec9e3
MD5 6a8c72fa85b84f2ba742c04e372857e2
BLAKE2b-256 0857c1207407f9f0c8e69ef8d3acd9e2d1a9e985ddb78b462c3664da2303ffc1

See more details on using hashes here.

File details

Details for the file rpi_7segment-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: rpi_7segment-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.3

File hashes

Hashes for rpi_7segment-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e336b6d3389ef1940deff5698b4cc9ceaed752c7d24343dc2545e60469ce9fd3
MD5 29d64a9dbeb83bb391d50c2517b9d90f
BLAKE2b-256 f19eda2f7aca20cbc174e6277d8f746a8e0a9a6a7a9179d9df777af6685678d4

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