summaryrefslogtreecommitdiffstats
path: root/examples/Conv_Ready_Alert_Pin_Controlled
diff options
context:
space:
mode:
authorWolfgang (Wolle) Ewald <wolfgang.ewald@wolles-elektronikkiste.de>2021-05-14 17:33:52 +0200
committerGitHub <noreply@github.com>2021-05-14 17:33:52 +0200
commitbc4fd1e37864b238433269da6de404d2d1dfe1d4 (patch)
tree0748c464baf4120782f39357261291dc82eb2f34 /examples/Conv_Ready_Alert_Pin_Controlled
parentUpdate Continuous.ino (diff)
downloadADS1115_WE-bc4fd1e37864b238433269da6de404d2d1dfe1d4.tar
ADS1115_WE-bc4fd1e37864b238433269da6de404d2d1dfe1d4.tar.gz
ADS1115_WE-bc4fd1e37864b238433269da6de404d2d1dfe1d4.tar.bz2
ADS1115_WE-bc4fd1e37864b238433269da6de404d2d1dfe1d4.tar.lz
ADS1115_WE-bc4fd1e37864b238433269da6de404d2d1dfe1d4.tar.xz
ADS1115_WE-bc4fd1e37864b238433269da6de404d2d1dfe1d4.tar.zst
ADS1115_WE-bc4fd1e37864b238433269da6de404d2d1dfe1d4.zip
Diffstat (limited to 'examples/Conv_Ready_Alert_Pin_Controlled')
-rw-r--r--examples/Conv_Ready_Alert_Pin_Controlled/Conv_Ready_Alert_Pin_Controlled.ino10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/Conv_Ready_Alert_Pin_Controlled/Conv_Ready_Alert_Pin_Controlled.ino b/examples/Conv_Ready_Alert_Pin_Controlled/Conv_Ready_Alert_Pin_Controlled.ino
index 282d7cb..ab900d8 100644
--- a/examples/Conv_Ready_Alert_Pin_Controlled/Conv_Ready_Alert_Pin_Controlled.ino
+++ b/examples/Conv_Ready_Alert_Pin_Controlled/Conv_Ready_Alert_Pin_Controlled.ino
@@ -18,8 +18,14 @@
int interruptPin = 2;
volatile bool convReady = false;
-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();