diff options
author | Wolfgang (Wolle) Ewald <wolfgang.ewald@wolles-elektronikkiste.de> | 2021-05-14 17:34:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 17:34:40 +0200 |
commit | 840cb0e896d8e800adef8078178da906ec436031 (patch) | |
tree | 7c2a5ed1af26032cf98d1ac42a342b2a2b6ffaf7 | |
parent | Update Conv_Ready_Alert_Pin_Controlled.ino (diff) | |
download | ADS1115_WE-840cb0e896d8e800adef8078178da906ec436031.tar ADS1115_WE-840cb0e896d8e800adef8078178da906ec436031.tar.gz ADS1115_WE-840cb0e896d8e800adef8078178da906ec436031.tar.bz2 ADS1115_WE-840cb0e896d8e800adef8078178da906ec436031.tar.lz ADS1115_WE-840cb0e896d8e800adef8078178da906ec436031.tar.xz ADS1115_WE-840cb0e896d8e800adef8078178da906ec436031.tar.zst ADS1115_WE-840cb0e896d8e800adef8078178da906ec436031.zip |
Diffstat (limited to '')
-rw-r--r-- | examples/Result_Format_Options/Result_Format_Options.ino | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/Result_Format_Options/Result_Format_Options.ino b/examples/Result_Format_Options/Result_Format_Options.ino index cd032fe..2785c70 100644 --- a/examples/Result_Format_Options/Result_Format_Options.ino +++ b/examples/Result_Format_Options/Result_Format_Options.ino @@ -13,7 +13,14 @@ #include <Wire.h>
#define I2C_ADDRESS 0x48
-ADS1115_WE adc(I2C_ADDRESS);
+/* 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();
|