pub trait LedPixelShape {
    fn size() -> Size;
    fn pixel_index(point: Point) -> Option<usize>;

    fn pixel_len() -> usize { ... }
}
Available on crate features embedded-graphics-core and unstable only.
Expand description

LED pixel shape

Required Methods

Physical size of the LED pixel equipment.

Convert from point to the index. Returns None if it is out of the bounds.

Provided Methods

Returns the number of pixels

Implementors