1 unstable release

Uses old Rust 2015

0.1.0 Feb 18, 2019

#18 in #led-display

MIT license

4KB

99bugs-led-display-driver

Driver for the 99bugs led display

Example

mod display;
use display::Display;
use display::LINE_BUFFER_SIZE;



fn main() {
    let mut display = Display::new("/dev/spidev0.0");
    let data: [u8; LINE_BUFFER_SIZE] = [0x00; LINE_BUFFER_SIZE];
    
    display.write_line(0,0,&data);
    display.flush();
    println!("Done...");
}

Dependencies

~1.5MB
~37K SLoC