Reads and writes: the INA219
A first complete driver: the INA219 current monitor, with 16-bit big-endian registers, signed shunt counts, a bus register with status bits in it, and a calibration register that has to be written before the current reads anything.
Open it in the simulator