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.
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
- ESP32 MicroPython - 4-Digit 7-Segment Display 74HC595
- Raspberry Pi Pico - 4-Digit 7-Segment Display 74HC595
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
- Library Reference - Full API documentation with examples
- Examples - Ready-to-run example scripts
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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file diyables_micropython_4digit7segment_74hc595-0.1.0.tar.gz.
File metadata
- Download URL: diyables_micropython_4digit7segment_74hc595-0.1.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5deb225143d49d48664971ec4a2acf77dc7616dbf854950f6218cab8fe839365
|
|
| MD5 |
9850f063769d4a07447e4bbe16fb2440
|
|
| BLAKE2b-256 |
f1dd69ce0d96c484ce1b7e8fea8f185d00c4b93229bfd0f490ddb709292e7b0d
|
File details
Details for the file diyables_micropython_4digit7segment_74hc595-0.1.0-py3-none-any.whl.
File metadata
- Download URL: diyables_micropython_4digit7segment_74hc595-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09604905b183dc1b27c64e73b6e1fa409fb3438f712803762235ce0a4dbe72a6
|
|
| MD5 |
656a97254bb42143e3f1ea5b93538c2a
|
|
| BLAKE2b-256 |
23738c47af8c371361b7335e359ead8a782d42cfd8a6b646d96be7ec2066c5fd
|