Skip to content

Commit a67e10d

Browse files
committed
drivers: led: Add TM1637 7-segment display driver
Add support for TM1637 4-digit 7-segment LED displays with clock and data pin interface. The driver supports: - Display decimal numbers with leading zero control - Dot/colon control for time displays - Adjustable brightness - Partial display updates The driver implements the standard LED API and provides TM1637-specific extensions. Signed-off-by: Siratul Islam <[email protected]>
1 parent dddd738 commit a67e10d

File tree

13 files changed

+758
-0
lines changed

13 files changed

+758
-0
lines changed

drivers/led/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ zephyr_library_sources_ifdef(CONFIG_LED_DAC led_dac.c)
1515
zephyr_library_sources_ifdef(CONFIG_LED_GPIO led_gpio.c)
1616
zephyr_library_sources_ifdef(CONFIG_LED_NPM13XX led_npm13xx.c)
1717
zephyr_library_sources_ifdef(CONFIG_LED_PWM led_pwm.c)
18+
zephyr_library_sources_ifdef(CONFIG_LED_TM1637 tm1637.c)
1819
zephyr_library_sources_ifdef(CONFIG_LED_XEC led_mchp_xec.c)
1920
zephyr_library_sources_ifdef(CONFIG_LP3943 lp3943.c)
2021
zephyr_library_sources_ifdef(CONFIG_LP50XX lp50xx.c)

drivers/led/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ source "drivers/led/Kconfig.pca9533"
4646
source "drivers/led/Kconfig.pca9633"
4747
source "drivers/led/Kconfig.pwm"
4848
source "drivers/led/Kconfig.tlc59108"
49+
source "drivers/led/Kconfig.tm1637"
4950
source "drivers/led/Kconfig.xec"
5051
# zephyr-keep-sorted-stop
5152

drivers/led/Kconfig.tm1637

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# Copyright (c) 2025 Siratul Islam
3+
4+
config LED_TM1637
5+
bool "Titan Micro TM1637 LED driver"
6+
depends on GPIO
7+
help
8+
Enable driver for TM(Shenzhen Titan Micro Elec) TM1637 7-segment LED display.
9+
This driver supports 4-digit 7-segment displays commonly
10+
found in clock modules and simple numeric displays.
11+
12+
The TM1637 uses a two-wire serial interface (CLK and DIO)
13+
and can control up to 4 digits with brightness control.

0 commit comments

Comments
 (0)