https://github.com/jasonpeacock/led-bargraph
LED Bargraph driver (Rust)
https://github.com/jasonpeacock/led-bargraph
bargraph command-line-tool led led-controller leds rust rust-library
Last synced: 3 months ago
JSON representation
LED Bargraph driver (Rust)
- Host: GitHub
- URL: https://github.com/jasonpeacock/led-bargraph
- Owner: jasonpeacock
- License: apache-2.0
- Created: 2017-06-11T15:21:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-06T03:45:48.000Z (over 6 years ago)
- Last Synced: 2025-02-28T06:20:05.644Z (3 months ago)
- Topics: bargraph, command-line-tool, led, led-controller, leds, rust, rust-library
- Language: Rust
- Size: 59.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# LED Bargraph
[](https://crates.io/crates/led-bargraph)
[](https://docs.rs/led_bargraph)
[](https://travis-ci.org/jasonpeacock/led-bargraph)
[](http://isitmaintained.com/project/jasonpeacock/led-bargraph "Average time to resolve an issue")
[](http://isitmaintained.com/project/jasonpeacock/led-bargraph "Percentage of issues still open")A Rust library & application for the [Adafruit Bi-Color (Red/Green) 24-Bar Bargraph w/I2C Backpack Kit](https://www.adafruit.com/product/1721).
# User Guide
```text
LED Bargraph.Usage:
led-bargraph [options] clear
led-bargraph [options] set
led-bargraph [options] showCommands:
clear Clear the display.
set Display the value against the range.
show Show on-screen the current bargraph display.Arguments:
value The value to display.
range The range of the bar graph to display.Options:
--no-init Do not initialize the device.
--trace Enable verbose debug logging.
-d, --debug Enable debug logging.
-v, --verbose Enable verbose logging.
-s, --show Show on-screen the current bargraph display.
--i2c-mock Mock the I2C interface, useful when no device is available.
--i2c-address= Address of the I2C device, in decimal [default: 112].
--i2c-path= Path to the I2C device [default: /dev/i2c-1].
-h, --help Print this help.
```## Supported Platforms
* Linux
* 32 & 64bit
* OSX
* 64bit# License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you,
as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.