#led #driver #display #embedded-hal

bin+lib led_bargraph

A Rust library & application for the Adafruit Bi-Color (Red/Green) 24-Bar Bargraph w/I2C Backpack Kit

4 releases

0.2.1 Jan 6, 2019
0.2.0 Dec 26, 2018
0.1.1 Nov 24, 2018
0.1.0 Nov 21, 2018

#4 in #led

Download history 6/week @ 2018-11-21 15/week @ 2018-11-28 10/week @ 2018-12-05 7/week @ 2018-12-12 4/week @ 2018-12-19 17/week @ 2018-12-26 6/week @ 2019-01-02

24 downloads per month

MIT/Apache

28KB
440 lines

LED Bargraph

Version info Documentation Build Status Average time to resolve an issue Percentage of issues still open

A Rust library & application for the Adafruit Bi-Color (Red/Green) 24-Bar Bargraph w/I2C Backpack Kit.

User Guide

LED Bargraph.

Usage:
    led-bargraph [options] clear
    led-bargraph [options] set <value> <range>
    led-bargraph [options] show

Commands:
    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=<N>       Address of the I2C device, in decimal [default: 112].
    --i2c-path=<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

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.

Dependencies

~7MB
~120K SLoC