diff options
author | Wolfgang (Wolle) Ewald <wolfgang.ewald@wolles-elektronikkiste.de> | 2020-08-12 18:46:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-12 18:46:52 +0200 |
commit | 51c284c142e383c46fe56ebba8444a2a5107fcfe (patch) | |
tree | f0ef2a2a118e3bbcc1d3b32aec74d7ae4c780017 /src | |
parent | Merge pull request #8 from thijstriemstra/patch-2 (diff) | |
parent | fix typos (diff) | |
download | ADS1115_WE-51c284c142e383c46fe56ebba8444a2a5107fcfe.tar ADS1115_WE-51c284c142e383c46fe56ebba8444a2a5107fcfe.tar.gz ADS1115_WE-51c284c142e383c46fe56ebba8444a2a5107fcfe.tar.bz2 ADS1115_WE-51c284c142e383c46fe56ebba8444a2a5107fcfe.tar.lz ADS1115_WE-51c284c142e383c46fe56ebba8444a2a5107fcfe.tar.xz ADS1115_WE-51c284c142e383c46fe56ebba8444a2a5107fcfe.tar.zst ADS1115_WE-51c284c142e383c46fe56ebba8444a2a5107fcfe.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/ADS1115_WE.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ADS1115_WE.h b/src/ADS1115_WE.h index 3fc920b..af5a53b 100644 --- a/src/ADS1115_WE.h +++ b/src/ADS1115_WE.h @@ -27,10 +27,10 @@ #include <Wire.h> /* registers */ -#define ADS1115_CONV_REG 0x00 //Conversion Register -#define ADS1115_CONFIG_REG 0x01 //Configuration Register -#define ADS1115_LO_THRESH_REG 0x02 //Low Threshold Register -#define ADS1115_HI_THRESH_REG 0x03 //High Threshold Register +#define ADS1115_CONV_REG 0x00 // Conversion Register +#define ADS1115_CONFIG_REG 0x01 // Configuration Register +#define ADS1115_LO_THRESH_REG 0x02 // Low Threshold Register +#define ADS1115_HI_THRESH_REG 0x03 // High Threshold Register /* other */ #define ADS1115_REG_FACTOR 32768 @@ -210,7 +210,7 @@ public: */ int16_t getRawResult(); - /* Skaling of the result to a different range: + /* Scaling of the result to a different range: * The results in the conversion register are in a range of -32767 to +32767 * You might want to receive the result in a different scale, e.g. -1023 to 1023. * For -1023 to 1023, and if you have chosen e.g. ADS1115_RANGE_4096, 0 Volt would @@ -224,8 +224,7 @@ public: * would choose getResultWithRange(-1023, 1023, 5000). A difference to the Arduino * UNO is that you can measure negative voltages. * You have to ensure that the voltage range you scale to is smaller than the - * measuring voltage range. For this example only ADS1115_RANGE_6144 would cover the - * scale up to 5000 mV. + * measuring voltage range. */ int16_t getResultWithRange(int16_t min, int16_t max, int16_t maxVoltage); |