Skip to main content
PartAndStock
Blog

What Is the TM1638? LED&KEY Driver (Display + Buttons) and Uses

November 14, 2026 4 min read
Quick answer

The TM1638 is a driver IC that both drives many LEDs/7-segment displays and scans keys. It is the chip of the popular 'LED&KEY' modules: an 8-digit display + 8 LEDs + 8 buttons on one module. One chip drives the display and reads keys (saving pins). It is like the MAX7219 but also scans buttons. Its interface is a custom 3-wire serial; a library is usually used.

The TM1638 is an LED driver and key-scan IC that both drives many LEDs/7-segment displays and scans keys (buttons). It is the chip of the popular "LED&KEY" modules: one module has an 8-digit display + 8 LEDs + 8 buttons. For the concept, see what is an LED driver.

What is the TM1638 used for?

Control panels needing 7-segment counters/clocks/displays, button input and status LEDs. Since one chip drives the display and reads keys, it saves the microcontroller's pins; it is like the MAX7219 but also scans buttons.

Specifications

ParameterValue
TypeLED/7-seg driver + key scanner
Interface3-wire serial (clock/data/strobe)
Supply~3.3 – 5 V
Module8 digits + 8 LEDs + 8 buttons (LED&KEY)

Watch out

Its interface is not standard SPI (a custom 3-wire serial); a TM1638 library is usually used. Brightness is set by command. Different module types (QYF/JY-LKM1638) differ in button mapping; verify the key mapping in code against your module.

Equivalents

  • MAX7219: 7-seg/matrix driver (no key scan).
  • TM1637: a simpler 4-digit display driver.
  • HT16K33: I²C LED matrix + key scan.

Find it in our catalog

Use the TM1638 search.

Frequently Asked Questions

What is the TM1638?+
The TM1638 is a driver IC that both drives many LEDs/7-segment displays and scans keys. It is the chip of the popular 'LED&KEY' modules: an 8-digit display + 8 LEDs + 8 buttons on one module.
What is the difference between the TM1638 and the MAX7219?+
Both drive 7-segment/LEDs. The TM1638 also scans buttons (keys); the MAX7219 is a driver only and does not read buttons. If you need a panel + input, the TM1638 is practical.
Does the TM1638 work over SPI?+
Not standard SPI; it uses a custom 3-wire serial (clock/data/strobe) interface. It is usually driven with a TM1638 library.
What is an equivalent to the TM1638?+
The MAX7219 without key scan; the TM1637 for a simpler 4 digits; the HT16K33 for an I²C matrix + keys.