Datasheet
8
int8_t ListDisp[4];
unsigned char i = 0;
unsigned char count = 0;
delay(150);
while(1)
{
i = count;
count ++;
if(count == sizeof(NumTab)) count = 0;
for(unsigned char BitSelect = 0;BitSelect < 4;BitSelect ++)
{
ListDisp[BitSelect] = NumTab[i];
i ++;
if(i == sizeof(NumTab)) i = 0;
}
tm1637.display(0,ListDisp[0]);
tm1637.display(1,ListDisp[1]);
tm1637.display(2,ListDisp[2]);
tm1637.display(3,ListDisp[3]);
delay(300);
}
}
6.2 With Arduino
The module uses an LED drive chip - TM1637 to control the contents and change the luminance. Here we
drive it to display time.
1. Connect the Grove socket marked "IN" on the LED Strip Driver and digital port 2 of the Grove - Base
Shield with a Grove cable. You can change to the digital port as you like. But don't forget to change the
port number in the definition of the demo code at the same time.
2. Plug onto Arduino/Seeeduino or plug Grove - Mega Shield onto Arduino Mega.
Seeeduino and Grove - 4-digit display: