Skip to main content

MicroPython library for 4-digit 7-segment display with TM1637 driver IC. Supports colon separator. Supports ESP32, Raspberry Pi Pico, Arduino Nano ESP32, Arduino Nano R1 WiFi.

Project description

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

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_tm1637-1.0.1.tar.gz.

File metadata

File hashes

Hashes for diyables_micropython_4digit7segment_tm1637-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d402c2056d782b55febbc746094739bbed3b7b2f7405d90215f46f69fbacedac
MD5 d681baf3564e17b371fcd26f3728ad86
BLAKE2b-256 49f02c17451dd1520ec43a5db3c285a396d2bdd04242cc782dfef8cc89bdf14e

See more details on using hashes here.

File details

Details for the file diyables_micropython_4digit7segment_tm1637-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for diyables_micropython_4digit7segment_tm1637-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59a878cd84a715745950bbfd0c27025a553b8ed75503df5daa479c0d85ba98e0
MD5 a45a35b380be82319164451f9f1b7b64
BLAKE2b-256 8a5152140c77fecdc743b4b02efde8d15c0a6fd32d038ff3d951fe59854f1b29

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