1 unstable release
Uses old Rust 2015
0.2.1 | Dec 8, 2022 |
---|
#16 in #led-display
4KB
56 lines
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...");
}
Dependencies
~1.5MB
~36K SLoC