TM1638 driver for Zephyr RTOS
  • C 98.5%
  • CMake 1.5%
Find a file
2026-02-22 22:49:17 +00:00
assets Initial commit 2026-02-22 22:49:17 +00:00
drivers Initial commit 2026-02-22 22:49:17 +00:00
dts/bindings Initial commit 2026-02-22 22:49:17 +00:00
include/drivers Initial commit 2026-02-22 22:49:17 +00:00
samples Initial commit 2026-02-22 22:49:17 +00:00
zephyr Initial commit 2026-02-22 22:49:17 +00:00
.clang-format Initial commit 2026-02-22 22:49:17 +00:00
.gitignore Initial commit 2026-02-22 22:49:17 +00:00
CMakeLists.txt Initial commit 2026-02-22 22:49:17 +00:00
Kconfig Initial commit 2026-02-22 22:49:17 +00:00
LICENSE Initial commit 2026-02-22 22:49:17 +00:00
README.md Initial commit 2026-02-22 22:49:17 +00:00
west.yml Initial commit 2026-02-22 22:49:17 +00:00

TM1638 Zephyr Module

Zephyr RTOS driver for the Titan Microelectronics TM1638 LED driver.

Getting started

Board overlay configuration

To use the module, you must define it in your board's .overlay file. Update the pins to match your hardware:

/ {
	tm1638_0: tm1638 {
        compatible = "titanmicro,tm1638";
        stb-gpios = <&gpiof 0 GPIO_ACTIVE_HIGH>;
        clk-gpios = <&gpiof 1 GPIO_ACTIVE_HIGH>;
        dio-gpios = <&gpiof 2 GPIO_ACTIVE_HIGH>; 
    };
};

Standalone application

The repository provides two samples:

  • basic: static text and LED animation
  • input: button polling with LED feedback

Module

To use this driver in an external Zephyr application, add this repository to your west.yml manifest:

manifest:
  remotes:
    - name: TM1638-driver-zephyr
      url-base: https://github.com/pkoscik/
  projects:
    - name: TM1638-driver-zephyr
      remote: TM1638-driver-zephyr
      revision: main
      path: modules/drivers/tm1638

Run west update, and enable the driver in the prj.conf

CONFIG_GPIO=y
CONFIG_TM1638=y