diff options
author | Wolfgang (Wolle) Ewald <wolfgang.ewald@wolles-elektronikkiste.de> | 2020-08-10 00:33:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-10 00:33:34 +0200 |
commit | 6842b23240551b229e808d0da158c7c1baa2d299 (patch) | |
tree | d9d33b5b793e3456717cda205dfa5c13a3fb7d0f /examples | |
parent | Add files via upload (diff) | |
parent | rephrase (diff) | |
download | ADS1115_WE-6842b23240551b229e808d0da158c7c1baa2d299.tar ADS1115_WE-6842b23240551b229e808d0da158c7c1baa2d299.tar.gz ADS1115_WE-6842b23240551b229e808d0da158c7c1baa2d299.tar.bz2 ADS1115_WE-6842b23240551b229e808d0da158c7c1baa2d299.tar.lz ADS1115_WE-6842b23240551b229e808d0da158c7c1baa2d299.tar.xz ADS1115_WE-6842b23240551b229e808d0da158c7c1baa2d299.tar.zst ADS1115_WE-6842b23240551b229e808d0da158c7c1baa2d299.zip |
Diffstat (limited to '')
-rw-r--r-- | examples/Result_Format_Options/Result_Format_Options.ino | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/Result_Format_Options/Result_Format_Options.ino b/examples/Result_Format_Options/Result_Format_Options.ino index 2044f2e..fd66fdf 100644 --- a/examples/Result_Format_Options/Result_Format_Options.ino +++ b/examples/Result_Format_Options/Result_Format_Options.ino @@ -1,16 +1,15 @@ /***************************************************************************
* Example sketch for the ADS1115_WE library
*
-* This sketch shall show the different options to obtain results in different
-* skales / formats.
+* This sketch shows how to obtain results using different scales / formats.
*
* Further information can be found on:
* https://wolles-elektronikkiste.de/ads1115
*
***************************************************************************/
-#include<ADS1115_WE.h>
-#include<Wire.h>
+#include <ADS1115_WE.h>
+#include <Wire.h>
#define I2C_ADDRESS 0x48
ADS1115_WE adc(I2C_ADDRESS);
@@ -33,7 +32,7 @@ void setup() { void loop() {
- /* Output in Volt or in Millivolt is self-explaining */
+ /* Output in Volt or in Millivolt */
float voltageInMillivolt = adc.getResult_mV();
Serial.print("Result in Millivolt [mV]: ");
@@ -53,7 +52,7 @@ void loop() { Serial.print("Raw Result : ");
Serial.println(rawResult);
- /* 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
|