pub fn new(i2c: I2c, address: u8) -> Result<INA219, String> {
        let ina = INA219 {
            address,
            i2c: Mutex::new(RefCell::new(i2c)),
        };
        ina.init()?;

        Ok(ina)
    }
/// Create a new INA219 driver.
Create a new INA219 driver.
Create a new INA219 driver .
pub fn new(i2c: I2c, address: u8) -> Result<INA219, String> {
        let ina = INA219 {
            address,
            i2c: Mutex::new(RefCell::new(i2c)),
        };
        ina.init()?;
        Ok(ina)
    }
pub fn new ( i2c : I2c , address : u8 ) -> Result < INA219 , String > { let ina = INA219 { address , i2c : Mutex :: new ( RefCell :: new ( i2c ) ) , } ; ina . init ( ) ? ; Ok ( ina ) }
Create a new INA219 driver.
Create a new INA219 driver .
i2c
I2c
address
u8
i2c
I2c
address
u8