Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nimaltd/tm1637
tm1637 display library for STM32
https://github.com/nimaltd/tm1637
7seg 7segment seven-segment seven-segments-display stm32 stm32-hal stm32hal tm1637 tm1637display
Last synced: about 2 months ago
JSON representation
tm1637 display library for STM32
- Host: GitHub
- URL: https://github.com/nimaltd/tm1637
- Owner: nimaltd
- License: gpl-3.0
- Created: 2021-07-05T08:14:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-24T13:17:33.000Z (over 1 year ago)
- Last Synced: 2024-08-02T15:26:41.435Z (5 months ago)
- Topics: 7seg, 7segment, seven-segment, seven-segments-display, stm32, stm32-hal, stm32hal, tm1637, tm1637display
- Language: C
- Homepage:
- Size: 36.1 KB
- Stars: 20
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# TM1637 Display driver for STM32
* WebSite: https://www.github.com/NimaLTD
* Instagram: https://www.instagram.com/github.NimaLTD
* LinkedIn: https://www.linkedin.com/in/NimaLTD
* Youtube: https://www.youtube.com/channel/UCUhY7qY1klJm1d2kulr9ckwHow to use this Library:
* Put all files into your project.
* Set your Configuration in `tm1637_config.h`.
* Select 2 pins on cubemx as gpio open drain.
* Create a strcuture `tm1637_t your_struct`.
* Call `tm1637_init()`.example:
```
#include "tm1637.h"
tm1637_t disp;const uint8_t seg_LOAD[4] = {0x38, 0x5c, 0x77, 0x5e}; // display LOAD
.
.
.
int main()
{
.
.
.
tm1637_init(&disp, CLK1_GPIO_Port, CLK1_Pin, DIO1_GPIO_Port, DIO1_Pin);
tm1637_write_segment(&disp, seg_LOAD, 4, 0);
HAL_Delay(1000);
tm1637_write_float(&disp, -1.23, 2, 0);
HAL_Delay(1000);
tm1637_write_int(&disp, 56, 0);
}```