summaryrefslogtreecommitdiffstats
path: root/src/ADS1115_WE.h
diff options
context:
space:
mode:
authordavidcliddell <david@liddell.com>2021-04-15 12:01:48 +0200
committerdavidcliddell <david@liddell.com>2021-04-15 12:01:48 +0200
commit3ef38d91b0474ea0fa6e92b3e179911816277fc4 (patch)
treedd78c75944a2a3b8b9522a9292e68e785626da45 /src/ADS1115_WE.h
parentUpdate library.properties (diff)
downloadADS1115_WE-3ef38d91b0474ea0fa6e92b3e179911816277fc4.tar
ADS1115_WE-3ef38d91b0474ea0fa6e92b3e179911816277fc4.tar.gz
ADS1115_WE-3ef38d91b0474ea0fa6e92b3e179911816277fc4.tar.bz2
ADS1115_WE-3ef38d91b0474ea0fa6e92b3e179911816277fc4.tar.lz
ADS1115_WE-3ef38d91b0474ea0fa6e92b3e179911816277fc4.tar.xz
ADS1115_WE-3ef38d91b0474ea0fa6e92b3e179911816277fc4.tar.zst
ADS1115_WE-3ef38d91b0474ea0fa6e92b3e179911816277fc4.zip
Diffstat (limited to 'src/ADS1115_WE.h')
-rw-r--r--src/ADS1115_WE.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ADS1115_WE.h b/src/ADS1115_WE.h
index 6d68123..395d4d0 100644
--- a/src/ADS1115_WE.h
+++ b/src/ADS1115_WE.h
@@ -95,6 +95,7 @@ typedef enum ADS1115_MUX{
ADS1115_COMP_2_GND = 0x6000,
ADS1115_COMP_3_GND = 0x7000
} mux;
+#define ADS1115_COMP_INC 0x1000 // increment to next channel
typedef enum ADS1115_STATUS_OR_START{
ADS1115_BUSY = 0x0000,
@@ -213,6 +214,10 @@ public:
*/
void setCompareChannels(ADS1115_MUX mux);
+ /* Set to channel (0-3) in single ended mode
+ */
+ void setSingleChannel(size_t channel);
+
bool isBusy();
void startSingleMeasurement();
float getResult_V();