adafruit / Adafruit_CircuitPython_ADS1x15

CircuitPython drivers for the ADS1x15 series of ADCs.
MIT License
133 stars 58 forks source link

ADS1115 Addressing #71

Closed rrsquez closed 2 years ago

rrsquez commented 2 years ago

Hello, this isn't a bug, but it looks like this driver doesn't support multiple addresses. The ADS1115 has 4 addresses, so we should be able to connect 4 of them to the same I2C bus, given they each have different addresses (ADR pin to: GND, VCC, SDA or SCL). Could you please add this feature to the next revision of this code?

Thank you, Richard Vasquez

caternuson commented 2 years ago

There's an address parameter you can use to specify a non-default address.

ads = ADS.ADS1115(i2c, address=0x49)