https://github.com/igelbox/tm1637-rs
A platform agnostic driver to a LED-display powered by the TM1637 chip
https://github.com/igelbox/tm1637-rs
embedded-hal-driver hardware-support no-std rust
Last synced: about 1 year ago
JSON representation
A platform agnostic driver to a LED-display powered by the TM1637 chip
- Host: GitHub
- URL: https://github.com/igelbox/tm1637-rs
- Owner: igelbox
- License: mit
- Created: 2019-01-05T02:40:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-23T10:40:04.000Z (over 2 years ago)
- Last Synced: 2025-03-28T10:54:22.588Z (about 1 year ago)
- Topics: embedded-hal-driver, hardware-support, no-std, rust
- Language: Rust
- Homepage:
- Size: 9.77 KB
- Stars: 5
- Watchers: 1
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `TM1637`
> A lightweight platform-agnostic driver to a LED-display powered by the TM1637 chip
[](https://crates.io/crates/tm1637)
[](https://docs.rs/tm1637)
## Features
- Formatting number as HEX-digits
- Controlling each particular segment using a bitmask
- Brightness control
- Low ROM usage, e.g. the working example features using the following config take **488**\* additional bytes:
```toml
[profile.release]
codegen-units = 1
debug = true
lto = true
opt-level = 'z'
```
_\* 580 bytes in case if the real HAL delay is used._
## Working Example
A simple example using a 4-digit LED-display is located [here](examples/main.rs).
BTW, it could be built and flashed into STM32C8T6 (Blue-Pill) using Visual Studio Code.
All required extensions are listed [here](.vscode/extensions.json).
## License
Licensed under MIT license ([LICENSE](LICENSE) or http://opensource.org/licenses/MIT)