Skip to content

Commit 8bb9dc4

Browse files
committed
drivers: auxdisplay: Add TM1637 7-segment display driver
Add a new auxdisplay driver for TM1637 7-segment LED displays. The driver supports: - 4-digit 7-segment display output - Decimal point positioning - Brightness control (0-7 levels) - Display on/off control - Alphabet character support (A-Z, a-z) and digits (0-9) - Basic cursor positioning The driver implements the standard AUXDISPLAY API Signed-off-by: Siratul Islam <[email protected]>
1 parent dddd738 commit 8bb9dc4

File tree

6 files changed

+431
-0
lines changed

6 files changed

+431
-0
lines changed

drivers/auxdisplay/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ zephyr_library_sources_ifdef(CONFIG_AUXDISPLAY_ITRON auxdisplay_itron.c)
1010
zephyr_library_sources_ifdef(CONFIG_AUXDISPLAY_JHD1313 auxdisplay_jhd1313.c)
1111
zephyr_library_sources_ifdef(CONFIG_AUXDISPLAY_PT6314 auxdisplay_pt6314.c)
1212
zephyr_library_sources_ifdef(CONFIG_AUXDISPLAY_SERLCD auxdisplay_serlcd.c)
13+
zephyr_library_sources_ifdef(CONFIG_AUXDISPLAY_TM1637 auxdisplay_tm1637.c)

drivers/auxdisplay/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ source "drivers/auxdisplay/Kconfig.itron"
2626
source "drivers/auxdisplay/Kconfig.jhd1313"
2727
source "drivers/auxdisplay/Kconfig.pt6314"
2828
source "drivers/auxdisplay/Kconfig.serlcd"
29+
source "drivers/auxdisplay/Kconfig.tm1637"
2930

3031
endif # AUXDISPLAY

drivers/auxdisplay/Kconfig.tm1637

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright (c) 2025 Siratul Islam
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config AUXDISPLAY_TM1637
5+
bool "Titan Micro TM1637 7-segment display support"
6+
depends on DT_HAS_TITANMICRO_TM1637_ENABLED
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 found in clock modules
10+
and simple numeric displays.
11+
12+
The TM1637 uses a two-wire serial interface (CLK and DIO) and can control up to
13+
4 digits with brightness control.
14+
15+
This driver implements the auxdisplay API, allowing generic display usage.
16+
Helper APIs for direct number display are also available.

0 commit comments

Comments
 (0)