TM1637 6 Digit LED Display

Most TM1637 libraries support displays with 4 digits. I picked up several 6 digit displays that use the TM1637 chip and wanted to get it to work (made by diymore). The TM1637 drives up to six 7-segment LEDs so I expected it to be straight forward. However, the way the 6-digit display modules are built, the two blocks of 3-digits were in reverse order (would display 321654 using standard TM1637 libraries to drive it).

I updated the TM1637TinyDisplay library to now also support 6 digit displays. I added the map and reversed the serial upload sequence to get it to work (now showing 123456). I would like to know if anyone discovers any 6-digit displays based on the TM1637 that do not work with the following code.

Install TM1637TinyDisplay via Arduino IDE.

// Includes
#include <Arduino.h>
#include <TM1637TinyDisplay6.h>       // Include 6-Digit Display Class Header

// Define Digital Pins
#define CLK 1
#define DIO 2

TM1637TinyDisplay6 display(CLK, DIO); // 6-Digit Display Class

void setup()
{
  display.setBrightness(BRIGHT_HIGH);
  display.clear();
  display.showString("digits");
  delay(1000);
  display.showNumber(123456);
  delay(1000);
  display.showNumber(123.456);
  delay(1000);
}

Why are you using pin 1 for the clock line? :astonished:

My Robotdyn module works great. Thanks for the update!

This topic was automatically closed after 85 days. New replies are no longer allowed.