Struct rpi_led_matrix::LedMatrixOptions [−][src]
pub struct LedMatrixOptions(_);
Expand description
Options related to the LED matrix, like rows/cols/HW mapping
Implementations
Creates a new LedMatrixOptions
struct with the default parameters.
use rpi_led_matrix::{LedMatrix,LedMatrixOptions};
let mut options = LedMatrixOptions::new();
options.set_hardware_mapping("adafruit-hat-pwm");
let matrix = LedMatrix::new(Some(options), None).unwrap();
Sets the type of GPIO mapping used (e.g., “adafruit-hat-pwm”).
Sets the number of rows on the panels being used. Typically 8, 16, 32 or 64.
Sets the number of columns on the panels being used. Typically 32 or 64.
Sets the number of panels daisy-chained together.
Sets the number of parallel chains. Valid range: [1,3].
Sets the number of PWM bits to use. Valid range: [1,11].
Sets the number of nanoseconds of delay for our LSB
Sets the pannel brightness in percent.
Sets the scan mode. 0: progressive, 1: interlaced.
Sets the ordering of the LEDs on your panel.
Semicolon-separated list of pixel-mappers to arrange pixels (e.g. “U-mapper;Rotate:90”).
Valid mapping options
- Mirror
- Rotate:
- U-mapper
- V-mapper
Sets if hardware pin-pulse generation should be used.
Configures if the current refresh rate should be printed by the C++ library.
If set, invert the color displayed.
Sets the type of multiplexing used.
- direct
- Stripe
- Checkered
- Spiral
- ZStripe
- ZnMirrorZStripe
- coreman
- Kaler2Scan
- ZStripeUneven
- P10-128x4-Z
- QiangLiQ8
- InversedZStripe
- P10Outdoor1R1G1-1
- P10Outdoor1R1G1-2
- P10Outdoor1R1G1-3
- P10CoremanMapper
- P8Outdoor1R1G1
Sets the type of row addressing to be used.
- default
- AB-addressed panels
- direct row select
- ABC-addressed panels
- ABC Shift + DE direct
Limit refresh rate to this frequency in Hz. (0 = no limit)
Useful to keep a constant refresh rate on loaded system.
Configures how many bits to use for time-based dithering.
Needed to initialize special panels. Supported: ‘FM6126A’, ‘FM6127’