adafruit / Adafruit_INA228

Arduino library for INA228 I2C Power Monitor
Other
8 stars 9 forks source link

Charge Result Register not accessible by library Post #5

Open marcobergman opened 11 months ago

marcobergman commented 11 months ago

The library does not seem to include a function like readCharge, that would read the chip's Charge Result Register. For building an SOC application, I would need this to count my coulombs. Could this function be added? Thx!

marcobergman commented 10 months ago

Forked the library and made the change myself: https://github.com/marcobergman/Adafruit_INA228

UpAllNate commented 4 months ago

Adafruit bumped this repo to v1.1.0 three weeks ago. Their library now includes a resetAccumulators function that is identical in substance as the function in @marcobergman fork. I made a fork of the 1.1.0 repo and made the following changes:

Here is my fork: https://github.com/UpAllNate/Adafruit_INA228