Wh1teRabbitHU / ADS1115-Driver

Driver for Texas Instrument's ADS1115 analog to digital converter IC. It's somewhat compatible with the ADS1113 and ADS1114 variants. More details in the official datasheet
GNU General Public License v3.0
3 stars 1 forks source link

Breaks I2C entirely #2

Open RenaKunisaki opened 9 months ago

RenaKunisaki commented 9 months ago

I don't know what exactly it's doing wrong, but when running this on my Pi Pico, merely instantiating an ADS1115 makes all I2C reads return all-ones.

Communication is still partially working: if I do:

Wire.beginTransmission(address);
byte error = Wire.endTransmission();

then error will be set for an address that doesn't correspond to any device, but zero for a valid address. However all responses from the ADS1115 or any other device is all 0xFF.

With the same hardware and my own code accessing the ADS1115 directly, there's no problem.

Wh1teRabbitHU commented 7 months ago

Hey there! Without the actual code, hard to say why it's not working for you. Also if you paste your own version, we can compare it with the lib's code