1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Rust bindings for the C++ library [rpi-rgb-led-matrix](https://github.com/hzeller/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);
//!         }
//!     }
//! }
//! ```
extern crate libc;

#[cfg(feature = "args")]
#[deny(missing_docs)]
pub mod args;
mod c;
#[deny(missing_docs)]
mod canvas;
#[deny(missing_docs)]
mod font;
#[deny(missing_docs)]
mod led_color;
#[deny(missing_docs)]
mod matrix;
#[deny(missing_docs)]
mod options;

// re-export objects to the root
#[doc(inline)]
pub use c::{LedMatrixOptions, LedRuntimeOptions};
#[doc(inline)]
pub use canvas::LedCanvas;
#[doc(inline)]
pub use font::LedFont;
#[doc(inline)]
pub use led_color::LedColor;
#[doc(inline)]
pub use matrix::LedMatrix;