DIYables_MicroPython_4Digit7Segment_TM1637
MicroPython library for 4-digit 7-segment LED display driven by TM1637 driver IC. Supports colon separator for clock display.
Product Link: DIYables 4-Digit 7-Segment Display LED TM1637 Driver with Colon Separator
Features
- Display integers (-999 to 9999)
- 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 colon separator
- Colon separator control
- String display with inline dots
- 8-level brightness control (0-7)
- No Timer or refresh loop needed (TM1637 has built-in display memory)
- 2-wire interface (CLK + DIO)
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 TM1637
- Raspberry Pi Pico - 4-Digit 7-Segment Display TM1637
References
Installation
You can install this library from PyPI using mpremote:
mpremote mip install DIYables-MicroPython-4Digit7Segment-TM1637
Or install via pip and copy to your board:
pip install DIYables-MicroPython-4Digit7Segment-TM1637
Documentation
See DIYables_MicroPython_4Digit7Segment_TM1637 Library Reference for the complete API documentation including all constructors, methods, and constants.
Examples
| Example | Description |
|---|---|
| example_integer.py | Display integers with optional zero-padding |
| example_text_and_degree.py | Display text, degree symbol, and temperature |
| example_time.py | Display time with blinking colon separator |
| example_individual_digits.py | Set individual digits, characters, and colon |
| example_blink.py | Blink integers and text using off()/on() |
Metadata
Release files for DIYables-MicroPython-4Digit7Segment-TM1637 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| diyables_micropython_4digit7segment_tm1637-1.0.1.tar.gz | 8.6 kB | Without provenance | Details for diyables_micropython_4digit7segment_tm1637-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| diyables_micropython_4digit7segment_tm1637-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for diyables_micropython_4digit7segment_tm1637-1.0.1-py3-none-any.whl |
Total release size: 16.4 kB
Release files / diyables_micropython_4digit7segment_tm1637-1.0.1.tar.gz
| Download URL | diyables_micropython_4digit7segment_tm1637-1.0.1.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d402c2056d782b55febbc746094739bbed3b7b2f7405d90215f46f69fbacedac
|
|
BLAKE2b-256 checksum How to use checksums |
49f02c17451dd1520ec43a5db3c285a396d2bdd04242cc782dfef8cc89bdf14e
|
| 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_tm1637-1.0.1-py3-none-any.whl
| Download URL | diyables_micropython_4digit7segment_tm1637-1.0.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59a878cd84a715745950bbfd0c27025a553b8ed75503df5daa479c0d85ba98e0
|
|
BLAKE2b-256 checksum How to use checksums |
8a5152140c77fecdc743b4b02efde8d15c0a6fd32d038ff3d951fe59854f1b29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for DIYables-MicroPython-4Digit7Segment-TM1637 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.