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.

  1. direct
  2. Stripe
  3. Checkered
  4. Spiral
  5. ZStripe
  6. ZnMirrorZStripe
  7. coreman
  8. Kaler2Scan
  9. ZStripeUneven
  10. P10-128x4-Z
  11. QiangLiQ8
  12. InversedZStripe
  13. P10Outdoor1R1G1-1
  14. P10Outdoor1R1G1-2
  15. P10Outdoor1R1G1-3
  16. P10CoremanMapper
  17. P8Outdoor1R1G1

Sets the type of row addressing to be used.

  1. default
  2. AB-addressed panels
  3. direct row select
  4. ABC-addressed panels
  5. 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’

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.