Skip to content

markus-k/lp586x-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LP586x matrix LED driver

CI crates.io page docs.rs page no_std

LP586x matrix LED driver written in Rust (supports Texas Instruments LP5860, LP5861, LP5862, LP5864, LP5868).

This driver is still work-in-progress and it's API may not be stable. Pull requests welcome!

Examples

For examples, have a look at the examples/ directory.

A very simple example:

use lp586x::{ConfigBuilder, Lp586x, PwmAccess};

let config = ConfigBuilder::new_lp5864()
    .pwm_frequency(lp586x::PwmFrequency::Pwm62_5kHz)
    .maximum_current(lp586x::CurrentSetting::Max40mA)
    .data_mode_8bit(false); // disable vsync for simplicity

let mut led_driver = Lp586x::new_with_i2c(&config, i2c_bus, 0x00, &mut delay).unwrap();
let mut framebuffer = [0u8; 72];
framebuffer[0] = u8::MAX;

// display current framebuffer
led_driver.set_pwm(0, &framebuffer).unwrap();

License

Licensed under either of

at your option.

About

LP586x matrix LED driver written in Rust (supports LP5860, LP5861, LP5862, LP5864, LP5868)

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages