diff options
author | Wolfgang (Wolle) Ewald <wolfgang.ewald@wolles-elektronikkiste.de> | 2020-07-30 15:10:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-30 15:10:52 +0200 |
commit | 9c33be6b3f7bc469220bee0d66694594c227eeb8 (patch) | |
tree | 8bffbfe631652f9f6f29eb019888a6c452655b51 /src | |
parent | Merge pull request #5 from martinbra/patch-1 (diff) | |
parent | updating keywords for missing enum types. (diff) | |
download | ADS1115_WE-9c33be6b3f7bc469220bee0d66694594c227eeb8.tar ADS1115_WE-9c33be6b3f7bc469220bee0d66694594c227eeb8.tar.gz ADS1115_WE-9c33be6b3f7bc469220bee0d66694594c227eeb8.tar.bz2 ADS1115_WE-9c33be6b3f7bc469220bee0d66694594c227eeb8.tar.lz ADS1115_WE-9c33be6b3f7bc469220bee0d66694594c227eeb8.tar.xz ADS1115_WE-9c33be6b3f7bc469220bee0d66694594c227eeb8.tar.zst ADS1115_WE-9c33be6b3f7bc469220bee0d66694594c227eeb8.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/ADS1115_WE.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ADS1115_WE.h b/src/ADS1115_WE.h index c5a269a..c531368 100644 --- a/src/ADS1115_WE.h +++ b/src/ADS1115_WE.h @@ -70,8 +70,9 @@ typedef enum ADS1115_CONV_RATE{ } convRate; typedef enum ADS1115_MEASURE_MODE{ - ADS1115_CONTINOUS = 0x0000, - ADS1115_SINGLE = 0x0100 + ADS1115_CONTINOUS = 0x0000, // keeping misspelled enum for backwards compatibility. + ADS1115_CONTINUOUS = 0x0000, + ADS1115_SINGLE = 0x0100 } measureMode; typedef enum ADS1115_RANGE{ @@ -139,7 +140,7 @@ public: */ void setAlertPol(ADS1115_ALERT_POL polarity); - /* Choose maximum limit or maxium and minimum alert limit (window)in Volt - alert pin will + /* Choose maximum limit or maximum and minimum alert limit (window)in Volt - alert pin will * be active when measured values are beyond the maximum limit or outside the window * Upper limit first: setAlertLimit_V(MODE, maximum, minimum) * In max limit mode the minimum value is the limit where the alert pin will be deactivated (if @@ -164,9 +165,9 @@ public: */ void setConvRate(ADS1115_CONV_RATE rate); - /* Set continous or single shot mode: + /* Set continuous or single shot mode: * - * ADS1115_CONTINOUS -> continous mode + * ADS1115_CONTINUOUS -> continuous mode * ADS1115_SINGLE -> single shot mode (default) */ void setMeasureMode(ADS1115_MEASURE_MODE mode); |