A Rust driver for the Texas Instruments INA233 power monitor. Currently incomplete, with support for basic (continuous) readings only.
For usage details and explanatory notes, see the documentation.
Overview
let i2c: Bus = todo!;
// Setup a device:
const ADDRESS: u8 = 0x40;
let shunt_resistance = ;
let maximum_current = ;
let mut device = new?;
// Get latest readings:
device.voltage?;
device.current?;