summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang (Wolle) Ewald <wolfgang.ewald@wolles-elektronikkiste.de>2022-10-15 12:43:08 +0200
committerGitHub <noreply@github.com>2022-10-15 12:43:08 +0200
commit1f0be8aad72257d38400061b2e5908e5749339ef (patch)
tree4b80e638428ab18abb7e2c0cdbe596ccb50c7f16
parentUpdate README.md (diff)
downloadADS1115_WE-1f0be8aad72257d38400061b2e5908e5749339ef.tar
ADS1115_WE-1f0be8aad72257d38400061b2e5908e5749339ef.tar.gz
ADS1115_WE-1f0be8aad72257d38400061b2e5908e5749339ef.tar.bz2
ADS1115_WE-1f0be8aad72257d38400061b2e5908e5749339ef.tar.lz
ADS1115_WE-1f0be8aad72257d38400061b2e5908e5749339ef.tar.xz
ADS1115_WE-1f0be8aad72257d38400061b2e5908e5749339ef.tar.zst
ADS1115_WE-1f0be8aad72257d38400061b2e5908e5749339ef.zip
-rw-r--r--src/ADS1115_WE.cpp12
-rw-r--r--src/ADS1115_WE.h6
2 files changed, 2 insertions, 16 deletions
diff --git a/src/ADS1115_WE.cpp b/src/ADS1115_WE.cpp
index a3e3214..5028bf9 100644
--- a/src/ADS1115_WE.cpp
+++ b/src/ADS1115_WE.cpp
@@ -23,23 +23,11 @@ ADS1115_WE::ADS1115_WE(int addr){
i2cAddress = addr;
}
-ADS1115_WE::ADS1115_WE(){
-#ifndef USE_TINY_WIRE_M_
- _wire = &Wire;
-#endif
- i2cAddress = 0x48;
-}
-
#ifndef USE_TINY_WIRE_M_
ADS1115_WE::ADS1115_WE(TwoWire *w, int addr){
_wire = w;
i2cAddress = addr;
}
-
-ADS1115_WE::ADS1115_WE(TwoWire *w){
- _wire = w;
- i2cAddress = 0x48;
-}
#endif
diff --git a/src/ADS1115_WE.h b/src/ADS1115_WE.h
index 19f7aff..488cf3e 100644
--- a/src/ADS1115_WE.h
+++ b/src/ADS1115_WE.h
@@ -112,11 +112,9 @@ typedef enum ADS1115_STATUS_OR_START{
class ADS1115_WE
{
public:
- ADS1115_WE(int addr);
- ADS1115_WE(); // uses default I2C Address 0x48
+ ADS1115_WE(int addr = 0x48);
#ifndef USE_TINY_WIRE_M_
- ADS1115_WE(TwoWire *w, int addr);
- ADS1115_WE(TwoWire *w);
+ ADS1115_WE(TwoWire *w, int addr = 0x48);
#endif
void reset();