summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang (Wolle) Ewald <wolfgang.ewald@wolles-elektronikkiste.de>2020-08-15 12:06:58 +0200
committerGitHub <noreply@github.com>2020-08-15 12:06:58 +0200
commit899fca6e0d9a59a2f20c2618231ec0197b080699 (patch)
treec0dc74dbceaea1326f742757777846af9ad8d31a
parentAdd files via upload (diff)
downloadADS1115_WE-899fca6e0d9a59a2f20c2618231ec0197b080699.tar
ADS1115_WE-899fca6e0d9a59a2f20c2618231ec0197b080699.tar.gz
ADS1115_WE-899fca6e0d9a59a2f20c2618231ec0197b080699.tar.bz2
ADS1115_WE-899fca6e0d9a59a2f20c2618231ec0197b080699.tar.lz
ADS1115_WE-899fca6e0d9a59a2f20c2618231ec0197b080699.tar.xz
ADS1115_WE-899fca6e0d9a59a2f20c2618231ec0197b080699.tar.zst
ADS1115_WE-899fca6e0d9a59a2f20c2618231ec0197b080699.zip
Diffstat (limited to '')
-rw-r--r--examples/Result_Format_Options/Result_Format_Options.ino12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/Result_Format_Options/Result_Format_Options.ino b/examples/Result_Format_Options/Result_Format_Options.ino
index fd66fdf..18c3db3 100644
--- a/examples/Result_Format_Options/Result_Format_Options.ino
+++ b/examples/Result_Format_Options/Result_Format_Options.ino
@@ -58,9 +58,9 @@ void loop() {
* For -1023 to 1023, and if you have chosen e.g. ADS1115_RANGE_4096, 0 Volt would
* give 0 as result and 4.096 mV would give 1023. -4.096 mV would give -1023.
*/
- int skaledResult = adc.getResultWithRange(-1023, 1023);
- Serial.print("Skaled result : ");
- Serial.println(skaledResult);
+ int scaledResult = adc.getResultWithRange(-1023, 1023);
+ Serial.print("Scaled result : ");
+ Serial.println(scaledResult);
/* Scaling of the result to a different range plus scaling to a voltage range:
* You can use this variant if you also want to scale to a voltage range. E.g. in
@@ -71,9 +71,9 @@ void loop() {
* measuring voltage range. For this example only ADS1115_RANGE_6144 would cover the
* scale up to 5000 mV.
*/
- int skaledResultWithMaxVoltage = adc.getResultWithRange(-1023, 1023, 5000);
- Serial.print("Skaled result with voltage skale : ");
- Serial.println(skaledResultWithMaxVoltage);
+ int scaledResultWithMaxVoltage = adc.getResultWithRange(-1023, 1023, 5000);
+ Serial.print("Scaled result with voltage scale : ");
+ Serial.println(scaledResultWithMaxVoltage);
/* This function returns the voltage range ADS1115_RANGE_XXXX in Millivolt */
unsigned int voltRange = adc.getVoltageRange_mV();