pub fn new(i2c: I, en_pin: Option<P>, addr: Addr) -> Self {
        Lp55231 {
            i2c,
            en_pin,
            addr: u8::from(addr) << 1,
            en: false,
        }
    }
/// Create a new instance of an LP55231 that exclusively owns its I2C bus. Optionally takes a
/// power control pin.
Create a new instance of an LP55231 that exclusively owns its I2C bus. Optionally takes a
power control pin.
Create a new instance of an LP55231 that exclusively owns its I2C bus . Optionally takes a power control pin .
pub fn new(i2c: I, en_pin: Option<P>, addr: Addr) -> Self {
        Lp55231 {
            i2c,
            en_pin,
            addr: u8::from(addr) << 1,
            en: false,
        }
    }
pub fn new ( i2c : I , en_pin : Option < P > , addr : Addr ) -> Self { Lp55231 { i2c , en_pin , addr : u8 :: from ( addr ) << 1 , en : false , } }
Create a new instance of an LP55231 that exclusively owns its I2C bus.
Create a new instance of an LP55231 that exclusively owns its I2C bus .
i2c
I
en_pin
Option<P>
addr
Addr
i2c
I
en_pin
Option<P>
addr
Addr