Crate rpi_led_matrix_sys

Crate rpi_led_matrix_sys 

Source
Expand description

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

§Features

§c-stubs

Instead of linking to the C++ library, we make stub C functions ourselves with the same signature to enable limited testing on non-raspberry pi computers.

By default, we link dynamically to libstdc++ as the underlying C++ library requires access to the C++ standard library. However, sometimes people want to statically link so everything is bundled in a single binary. Enabling this feature changes our build behavior to statically link to libstdc++.

libstdc++.a must be “visible” to rustc when compiling. This means it is in the global linker search path, or you’ve passed it in manually, like:

RUSTFLAGS="-L /PATH/TO/LIBSTDC++/DIR/" cargo build --features="stdcpp-static-link"

Modules§

c_stubs
rust implemented stubs of the C++ library for testing on non rpi hosts

Structs§

CLedMatrixOptions
The Rust representation of CLedMatrixOptions, which contains parameters to specify your hardware setup.
CLedRuntimeOptions
The Rust representation of CLedRuntimeOptions, which contains parameters to specify how the library behaves at runtime.

Enums§

CLedCanvas
The C handle for LedCanvas.
CLedFont
The C handle for LedFont.
CLedMatrix
The C handle for LedMatrix.

Functions§

delete_font
draw_circle
draw_line
draw_text
led_canvas_clear
led_canvas_fill
led_canvas_get_size
led_canvas_set_pixel
led_matrix_create_from_options_and_rt_options
led_matrix_create_offscreen_canvas
led_matrix_delete
led_matrix_get_canvas
led_matrix_swap_on_vsync
load_font
vertical_draw_text