pub struct Lp55231<I, P> { /* private fields */ }
Expand description
The LP55231 device
Implementations§
source§impl<E, I, P> Lp55231<I, P>where
E: Debug,
I: Write<Error = E> + WriteRead<Error = E>,
P: OutputPin,
impl<E, I, P> Lp55231<I, P>where
E: Debug,
I: Write<Error = E> + WriteRead<Error = E>,
P: OutputPin,
sourcepub fn new(i2c: I, en_pin: Option<P>, addr: Addr) -> Self
pub fn new(i2c: I, en_pin: Option<P>, addr: Addr) -> Self
Create a new instance of an LP55231 that exclusively owns its I2C bus. Optionally takes a power control pin.