Skip to main content

DIYables_MicroPython_4Digit7Segment_TM1637

MicroPython library for 4-digit 7-segment LED display driven by TM1637 driver IC. Supports colon separator for clock display.

TM1637 4-Digit 7-Segment Display Module

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

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()

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)

Source distribution for DIYables-MicroPython-4Digit7Segment-TM1637 1.0.1
File Size Uploaded
diyables_micropython_4digit7segment_tm1637-1.0.1.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for DIYables-MicroPython-4Digit7Segment-TM1637 1.0.1
File Interpreter ABI Platform
diyables_micropython_4digit7segment_tm1637-1.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page