[−][src]Crate rpi_led_matrix
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
args | Provides functions to add arguments to control various parameters of your RGB LED matrix. |
Structs
LedCanvas | The Rust handle for the matrix canvas to draw on. |
LedColor | The Rust handle representing a color you'd like to display. |
LedFont | The Rust handle for LedFont. |
LedMatrix | The Rust handle for the RGB matrix. |
LedMatrixOptions | The Rust representation of LedMatrixOptions, which contains parameters to specify your hardware setup. |
LedRuntimeOptions | The Rust representation of LedRuntimeOptions, which contains parameters to specify how the library behaves at runtime. |