From 8d9ec16771f1a83404c26aba79662705a78b2812 Mon Sep 17 00:00:00 2001 From: caternuson Date: Fri, 2 Feb 2024 11:50:03 -0800 Subject: [PATCH] just make volts --- examples/continuous/continuous.ino | 2 +- examples/nonblocking/nonblocking.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/continuous/continuous.ino b/examples/continuous/continuous.ino index 1d8007d..5592615 100644 --- a/examples/continuous/continuous.ino +++ b/examples/continuous/continuous.ino @@ -61,7 +61,7 @@ void loop(void) int16_t results = ads.getLastConversionResults(); - Serial.print("Differential: "); Serial.print(results); Serial.print("("); Serial.print(ads.computeVolts(results)/1000); Serial.println("mV)"); + Serial.print("Differential: "); Serial.print(results); Serial.print("("); Serial.print(ads.computeVolts(results)); Serial.println("V)"); new_data = false; diff --git a/examples/nonblocking/nonblocking.ino b/examples/nonblocking/nonblocking.ino index fb3d4dc..6d076b0 100644 --- a/examples/nonblocking/nonblocking.ino +++ b/examples/nonblocking/nonblocking.ino @@ -42,7 +42,7 @@ void loop(void) int16_t results = ads.getLastConversionResults(); - Serial.print("Differential: "); Serial.print(results); Serial.print("("); Serial.print(ads.computeVolts(results)/1000); Serial.println("mV)"); + Serial.print("Differential: "); Serial.print(results); Serial.print("("); Serial.print(ads.computeVolts(results)); Serial.println("V)"); // Start another conversion. ads.startADCReading(ADS1X15_REG_CONFIG_MUX_DIFF_0_1, /*continuous=*/false);