summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorThijs Triemstra <info@collab.nl>2020-08-10 00:12:06 +0200
committerGitHub <noreply@github.com>2020-08-10 00:12:06 +0200
commitccc68c5d2572fb6e7ded3f6284f1ecb93157e12f (patch)
tree7e3986b3c20b7df58ef919199ce7ee5725c18491 /examples
parentAdd files via upload (diff)
downloadADS1115_WE-ccc68c5d2572fb6e7ded3f6284f1ecb93157e12f.tar
ADS1115_WE-ccc68c5d2572fb6e7ded3f6284f1ecb93157e12f.tar.gz
ADS1115_WE-ccc68c5d2572fb6e7ded3f6284f1ecb93157e12f.tar.bz2
ADS1115_WE-ccc68c5d2572fb6e7ded3f6284f1ecb93157e12f.tar.lz
ADS1115_WE-ccc68c5d2572fb6e7ded3f6284f1ecb93157e12f.tar.xz
ADS1115_WE-ccc68c5d2572fb6e7ded3f6284f1ecb93157e12f.tar.zst
ADS1115_WE-ccc68c5d2572fb6e7ded3f6284f1ecb93157e12f.zip
Diffstat (limited to 'examples')
-rw-r--r--examples/Result_Format_Options/Result_Format_Options.ino11
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..ff12a3b 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 in 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