From b9cb230ed2d7e163ae2e0a6a3a4768a293d1b9d7 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Wolle) Ewald" Date: Mon, 24 Oct 2022 20:22:10 +0200 Subject: Update Auto_Range.ino --- examples/Auto_Range/Auto_Range.ino | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/Auto_Range/Auto_Range.ino b/examples/Auto_Range/Auto_Range.ino index 7813658..204f05d 100644 --- a/examples/Auto_Range/Auto_Range.ino +++ b/examples/Auto_Range/Auto_Range.ino @@ -14,11 +14,10 @@ #define I2C_ADDRESS 0x48 /* There are several ways to create your ADS1115_WE object: - * ADS1115_WE adc = ADS1115_WE() -> uses Wire / I2C Address = 0x48 - * ADS1115_WE adc = ADS1115_WE(I2C_ADDRESS) -> uses Wire / I2C_ADDRESS - * ADS1115_WE adc = ADS1115_WE(&wire2) -> uses the TwoWire object wire2 / I2C_ADDRESS - * ADS1115_WE adc = ADS1115_WE(&wire2, I2C_ADDRESS) -> all together - * Successfully tested with two I2C busses on an ESP32 + * ADS1115_WE adc = ADS1115_WE(); -> uses Wire / I2C Address = 0x48 + * ADS1115_WE adc = ADS1115_WE(I2C_ADDRESS); -> uses Wire / I2C_ADDRESS + * ADS1115_WE adc = ADS1115_WE(&Wire); -> you can pass any TwoWire object / I2C Address = 0x48 + * ADS1115_WE adc = ADS1115_WE(&Wire, I2C_ADDRESS); -> all together */ ADS1115_WE adc = ADS1115_WE(I2C_ADDRESS); -- cgit v1.2.3