Skip to main content

MicroPython library for 4-digit 7-segment display with 74HC595 shift register. Supports ESP32, Raspberry Pi Pico, Arduino Nano ESP32, Arduino Nano R1 WiFi.

Project description

DIYables_MicroPython_4Digit7Segment_74HC595

MicroPython library for 4-digit 7-segment LED display driven by 74HC595 shift register. Supports 4 decimal point dots.

74HC595 4-Digit 7-Segment Display Module

Product Link: DIYables 4-Digit 7-Segment Display LED 74HC595 Driver with 4 Dots

Features

  • Display integers (-999 to 9999)
  • Display floats with automatic or manual decimal places
  • Display alphabetic characters (A-U, Y)
  • Display special characters (degree °, dash -, underscore _)
  • Zero-padding support
  • Temperature display with degree symbol (°C / °F)
  • Time display (HH.MM) with blinking dot separator
  • Individual dot/decimal point control for all 4 digits
  • String display with inline dots
  • Automatic display refresh using hardware Timer (no manual refresh needed)
  • Common anode and common cathode support

Tested Hardware

Board Tested
ESP32
Raspberry Pi Pico
DIYables ESP32 Development Board
DIYables ESP32 S3, Uno-form factor
Arduino Nano ESP32 Not yet, expected to work
Arduino Giga R1 WiFi Not yet, expected to work
Other MicroPython boards Not yet, expected to work

Tutorials

References

Installation

You can install this library from PyPI using mpremote:

mpremote mip install DIYables-MicroPython-4Digit7Segment-74HC595

Or install via pip and copy to your board:

pip install DIYables-MicroPython-4Digit7Segment-74HC595

Documentation

Examples

Example Description
example_integer.py Display integers with optional zero-padding
example_float.py Display floats with auto/manual decimal places
example_text_and_degree.py Display text, degree symbol, and temperature
example_time.py Display time with blinking dot separator
example_blink.py Blink integers, floats, and text using off()/on()

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

Built Distribution

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

File details

Details for the file diyables_micropython_4digit7segment_74hc595-0.1.0.tar.gz.

File metadata

File hashes

Hashes for diyables_micropython_4digit7segment_74hc595-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5deb225143d49d48664971ec4a2acf77dc7616dbf854950f6218cab8fe839365
MD5 9850f063769d4a07447e4bbe16fb2440
BLAKE2b-256 f1dd69ce0d96c484ce1b7e8fea8f185d00c4b93229bfd0f490ddb709292e7b0d

See more details on using hashes here.

File details

Details for the file diyables_micropython_4digit7segment_74hc595-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for diyables_micropython_4digit7segment_74hc595-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09604905b183dc1b27c64e73b6e1fa409fb3438f712803762235ce0a4dbe72a6
MD5 656a97254bb42143e3f1ea5b93538c2a
BLAKE2b-256 23738c47af8c371361b7335e359ead8a782d42cfd8a6b646d96be7ec2066c5fd

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