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 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 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_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 colon separator
example_blink.py Blink integers, floats, 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-0.1.0.tar.gz.

File metadata

File hashes

Hashes for diyables_micropython_4digit7segment_tm1637-0.1.0.tar.gz
Algorithm Hash digest
SHA256 10fea50266e89814ffcc7917cb8379ba0a3954bf1a380261f004f3515b9f3b84
MD5 fc2604fbe04d0441a929bc320627cd8f
BLAKE2b-256 4ddf0998ad30648d606195dd0ab0dcca2ba3c8a3f807f40d2a8d0a4339611827

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for diyables_micropython_4digit7segment_tm1637-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5362b32ff0e7622ea3c976b246440169aefa1c7da1e8d3c906bce622829db23c
MD5 82d03e15b8fc911e461bded2dc06f998
BLAKE2b-256 43ad5ba02ae946aea45cd35706413480605ff8117b7742e53086555260e41e2e

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