Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
wollewald authored Oct 15, 2022
1 parent ac08ad6 commit 1f0be8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
12 changes: 0 additions & 12 deletions src/ADS1115_WE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
6 changes: 2 additions & 4 deletions src/ADS1115_WE.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1f0be8a

Please sign in to comment.