devbit_99bugs_led_display_driver

Crates.iodevbit_99bugs_led_display_driver
lib.rsdevbit_99bugs_led_display_driver
version0.2.1
sourcesrc
created_at2022-12-08 14:32:31.994202
updated_at2022-12-08 14:32:31.994202
descriptionSPI driver for the 99bug LED Display
homepage
repository
max_upload_size
id732628
size4,786
Nico De Witte (BioBoost)

documentation

README

Rust Driver 99 Bugs Display

Driver for the 99 Bugs LED Display (Meme TV). It communicates via SPI with the Mojo FPGA on the 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...");
}
Commit count: 0

cargo fmt