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() |
Release files for DIYables-MicroPython-4Digit7Segment-74HC595 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| diyables_micropython_4digit7segment_74hc595-0.1.0.tar.gz | 9.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| diyables_micropython_4digit7segment_74hc595-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.3 kB
Release files / diyables_micropython_4digit7segment_74hc595-0.1.0.tar.gz
| Download URL | diyables_micropython_4digit7segment_74hc595-0.1.0.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5deb225143d49d48664971ec4a2acf77dc7616dbf854950f6218cab8fe839365
|
|
BLAKE2b-256 checksum How to use checksums |
f1dd69ce0d96c484ce1b7e8fea8f185d00c4b93229bfd0f490ddb709292e7b0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / diyables_micropython_4digit7segment_74hc595-0.1.0-py3-none-any.whl
| Download URL | diyables_micropython_4digit7segment_74hc595-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
09604905b183dc1b27c64e73b6e1fa409fb3438f712803762235ce0a4dbe72a6
|
|
BLAKE2b-256 checksum How to use checksums |
23738c47af8c371361b7335e359ead8a782d42cfd8a6b646d96be7ec2066c5fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|