Lawmate / BQ4050

Library for basic interfacing with BQ4050 battery fuel gauge from TI
Other
14 stars 6 forks source link

BQ4050 library with other i2c devices #9

Open sbajsiced opened 2 years ago

sbajsiced commented 2 years ago

Hi,

I'm trying to use library and it works fine if I'm not using i2C for any other device reading. If I do anything with other I2C device, readings from BQ4050 are all with value zero after that.

Scenario 1: (works fine)

  1. Read values from BQ4050 in loop
  2. Display values in serial monitor

Scenario 2: (all values from BQ4050 are zero)

  1. Initialize other I2C devices (sensors, display)
  2. Read values from BQ4050 in loop
  3. Display values in serial monitor