RobTillaart / INA228

Arduino library for INA228 current and power sensor
MIT License
1 stars 2 forks source link

Charge and Energy should be double #9

Closed RobTillaart closed 1 week ago

RobTillaart commented 2 weeks ago

As the float can only hold 23 of 40 bit, making these double would give 56(?) bit which can hold the 40 bit values perfectly if supported.

Alternative getEnergy64(). ? Charge idem?

Internally reading the 40 bit register could be implemented with less float operations.