Crate rpi_led_matrix[][src]

Expand description

Rust bindings for the C++ library rpi-rgb-led-matrix.

Example Usage

use rpi_led_matrix::{LedMatrix, LedColor};
let matrix = LedMatrix::new(None, None).unwrap();
let mut canvas = matrix.offscreen_canvas();
for red in 0..255 {
    for green in 0..255 {
        for blue in 0..255 {
            canvas.fill(&LedColor { red, green, blue });
            canvas = matrix.swap(canvas);
        }
    }
}

Modules

Provides functions to add arguments to control various parameters of your RGB LED matrix.

Structs

The Rust handle for the matrix canvas to draw on.

The Rust handle representing a color you’d like to display.

The Rust handle for LedFont.

The Rust handle for the RGB matrix.

Options related to the LED matrix, like rows/cols/HW mapping

Options related to how the runtime operates, like GPIO slowdown or daemon/sudo privileges