Struct p9813::P9813

source · []
pub struct P9813<S> { /* private fields */ }
Expand description

Struct representing a P9813 controller.

Implementations

Maximum frequency supported by the P9813.

Create a new P9813 instance with spi as the underlying SPI interface.

Set color for a single P9813.

let mut p9813 = P9813::new(spi);
p9813.set_color(0, 255, 200)?;

Set colors for multiple P9813s chained together.

let mut p9813 = P9813::new(spi);
p9813.set_colors([(0, 255, 200), (255, 50, 20)])?;

Trait Implementations

Formats the value using the given formatter. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.