RobTillaart / INA226

Arduino library for INA226 power sensor
MIT License
54 stars 14 forks source link

[Question] Which lib is most suitable for a given project? #25

Closed N0ury closed 1 year ago

N0ury commented 1 year ago

Hi, it's me again... I'm currently using (for an other project) jarzebski's INA226 lib. Is it possible to know what are the main differences between this one and jarzebski's? I can already say I have met some problems with the later on an ESP32-S2 in readRegister16 method A Wire.beginTransmission and Wire.endTransmission were used for a Wire.requestFrom. This is unnecessary and the Soc was hanging. There was also an unnecessary delay(1) which caused a delay making me loose current variations.

Apart from these two points, what would be the main differences? Can one be replaced easily by the other?

RobTillaart commented 1 year ago

Sorry, i am not familiar with jarzebski's lib, have seen it long ago. I would need time to investigate/ compare it, So I can't answer those questions.

RobTillaart commented 1 year ago

Had a very quick look and noticed four things:

RobTillaart commented 1 year ago

@N0ury Is there a question about / problem with this library? If not please close the issue.