Struct lp55231::Lp55231

source ·
pub struct Lp55231<I, P> { /* private fields */ }
Expand description

The LP55231 device

Implementations§

Create a new instance of an LP55231 that exclusively owns its I2C bus. Optionally takes a power control pin.

Enable the device for use

Sets the enable line high, then sends an enable command, waits 500us, and then configures to device to use its internal clock, enable the charge pump at 1.5x boost, and auto-increment on writes.

Soft-reset the device NOW

Turn off the device NOW

Set the D line to the provided PWM value

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.