Arduino Playground is read-only starting December 31st, 2018. For more info please look at this Forum Post

Description

TM1637 is a chip for driving 7-segment displays. There are several modules using this chip to form a 4 digit numerical display module (sometimes called "Digital Tube"). These modules are available, for example, from DX and SeeedStudio.

Key Features

  • Use either raw segment values or decimal numbers (with and without leading zero)
  • Set either the whole display or any digit independently
  • Control the brightness
  • Pure software implementation

Note: the TM1637 has also keyboard input capability, which is not implemented in this library.

Hardware Connection

The display module has 4 pins:

  • VCC & GND - Self explanatory
  • CLK - Clock; connect to any digital pin on the Arduino
  • DIO - Data I/O; connect to any digital pin on the Arduino

When a TM1637Display object is created, the clock and data pin numbers are passed as arguments and get bound.

Download

Browse the code in GitHub, or grab the latest release directly.