Sometimes you just want to add a quick numeric display to your projects. This 4-digit 7 segment LED display connects to your arduino using only 2 pins!
This module uses a TM1637 LED controller to control the segments.
Features
4 digit red alpha-numeric display with ":"
8 adjustable luminance levels
3 to 5VDC
Pinout: GND, Vcc, CLK, Data
LED Size: 13x32mm
Arduino IDE: Library Manager --> Grove 4-Digit Display
Test Code:
#include "TM1637.h"
#define CLK 2//pins definitions for TM1637 can be changed to other ports
#define DIO 3
TM1637 tm1637(CLK, DIO);
void setup()
{
tm1637.init();
tm1637.set(2);// 0-7 to set brightness
}
void loop()
{
tm1637.point(true); // display the ":"
tm1637.display(0, 1); // display in column "0" the number "1"
tm1637.display(1, 2); // values can be from 0 - 15 for hexadecimal digits
tm1637.display(2, 0);
tm1637.display(3, 0);
delay(500);
tm1637.point(false);
tm1637.clearDisplay(); // clear the display
delay(500);
}