pub enum NamedPixelMapperType {
Mirror(bool),
Rotate(usize),
UMapper,
}
Expand description
Enum representing different pixel mapping options for mapping the logical layout of your boards to your physical arrangement. These options allow you to customize the mapping to match your unique setup.
These options can be used with the --pixelmapper
flag to choose between different mappings.
You can apply multiple mappers in your configuration, and they will be applied in the order you specify.
For example, to first mirror the panels horizontally and then rotate the resulting screen,
You can use --pixelmapper Mirror:H --pixelmapper Rotate:90
Variants§
Mirror(bool)
The “Mirror” mapper allows you to mirror the output either horizontally or vertically.
Specify ‘H’ for horizontal mirroring or ‘V’ for vertical mirroring as a parameter after a colon.
Example: --pixelmapper Mirror:H
Rotate(usize)
The “Rotate” mapper allows you to rotate your screen by a specified angle in degrees.
Specify the desired angle as a parameter after a colon.
Example: --pixelmapper Rotate:90
for a 90-degree rotation.
UMapper
The UMapper
represents a pixel mapping strategy where a long chain of display panels
is arranged in a U-shape configuration. This arrangement allows for a single chain display
with panels of double height but still utilizing only one data chain.
In this U-shape configuration, the panels are bent around after half of them to continue below, creating a visually unified display. This arrangement is ideal for scenarios where you want to maximize the display area without increasing the number of data chains.
UMapper
takes no parameters.
--pixelmapping U-mapper
For example, a single chain display with four 32x32 panels like this: [<][<][<][<] }- Raspberry Pi connector
can be arranged in this 64x64 U-shaped display: [<][<] }—– Raspberry Pi connector [>][>]
This U-shape configuration can also be applied to displays with multiple chains. For instance, an arrangement with two chains, each consisting of 8 panels, can be represented as follows: [<][<][<][<] }— Pi connector #1 [>][>][>][>] [<][<][<][<] }— Pi connector #2 [>][>][>][>]
Trait Implementations§
Source§impl Clone for NamedPixelMapperType
impl Clone for NamedPixelMapperType
Source§fn clone(&self) -> NamedPixelMapperType
fn clone(&self) -> NamedPixelMapperType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more