- Author: Nima Askari
- Version: 2.0.0
- License: See the
LICENSE
file in the root folder.
© 2025 Nima Askari - NimaLTD. All rights reserved.
Display Segment | TM1637 Pin |
---|---|
A | SEG1 |
B | SEG2 |
C | SEG3 |
D | SEG4 |
E | SEG5 |
F | SEG6 |
G | SEG7 |
. (Dot) | SEG8 |
To install the package, add the following address to your STM32 package manager:
https://github.com/nimaltd/STM32-PACK/raw/main/NimaLTD.pidx
Set CLK (Clock) and DIO (Data I/O) pins as:
- Mode: Output Open Drain
- Select: High-level initialization
Create an instance for each display:
tm1637_t seg =
{
.seg_cnt = 4,
.gpio_clk = GPIOA,
.gpio_dat = GPIOA,
.pin_clk = GPIO_PIN_1,
.pin_data = GPIO_PIN_2,
};
.
.
.
tm1637_init(&seg);
tm1637_disp_str(&seg, "1234");