summaryrefslogtreecommitdiffstats
path: root/src/ADS1115_WE.h
diff options
context:
space:
mode:
authorWolfgang (Wolle) Ewald <wolfgang.ewald@wolles-elektronikkiste.de>2021-05-14 17:37:31 +0200
committerGitHub <noreply@github.com>2021-05-14 17:37:31 +0200
commit67fad4efcb3adc53a697d3d138b2981b1d1b1400 (patch)
treecfd30620201490cfb2fe27d457399106f9e9218c /src/ADS1115_WE.h
parentUpdate Auto_Range.ino (diff)
downloadADS1115_WE-67fad4efcb3adc53a697d3d138b2981b1d1b1400.tar
ADS1115_WE-67fad4efcb3adc53a697d3d138b2981b1d1b1400.tar.gz
ADS1115_WE-67fad4efcb3adc53a697d3d138b2981b1d1b1400.tar.bz2
ADS1115_WE-67fad4efcb3adc53a697d3d138b2981b1d1b1400.tar.lz
ADS1115_WE-67fad4efcb3adc53a697d3d138b2981b1d1b1400.tar.xz
ADS1115_WE-67fad4efcb3adc53a697d3d138b2981b1d1b1400.tar.zst
ADS1115_WE-67fad4efcb3adc53a697d3d138b2981b1d1b1400.zip
Diffstat (limited to 'src/ADS1115_WE.h')
-rw-r--r--src/ADS1115_WE.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ADS1115_WE.h b/src/ADS1115_WE.h
index 3af248b..2a81342 100644
--- a/src/ADS1115_WE.h
+++ b/src/ADS1115_WE.h
@@ -108,6 +108,8 @@ class ADS1115_WE
public:
ADS1115_WE(int addr);
ADS1115_WE(); // uses default I2C Address 0x48
+ ADS1115_WE(TwoWire *w, int addr);
+ ADS1115_WE(TwoWire *w);
void reset();
bool init();
@@ -266,6 +268,7 @@ public:
private:
+ TwoWire *_wire;
uint16_t voltageRange;
ADS1115_MEASURE_MODE deviceMeasureMode;
int i2cAddress;