summaryrefslogtreecommitdiffstats
path: root/examples/Continuous/Continuous.ino
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/Continuous/Continuous.ino10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/Continuous/Continuous.ino b/examples/Continuous/Continuous.ino
index ce41808..ec16f9b 100644
--- a/examples/Continuous/Continuous.ino
+++ b/examples/Continuous/Continuous.ino
@@ -13,8 +13,14 @@
#include<Wire.h>
#define I2C_ADDRESS 0x48
-ADS1115_WE adc(I2C_ADDRESS);
-// ADS1115_WE adc = ADS1115_WE(); // Alternative: uses default 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(I2C_ADDRESS);
void setup() {
Wire.begin();