Skip to content

Commit

Permalink
just make volts
Browse files Browse the repository at this point in the history
  • Loading branch information
caternuson committed Feb 2, 2024
1 parent 68fc55c commit 8d9ec16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/continuous/continuous.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion examples/nonblocking/nonblocking.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8d9ec16

Please sign in to comment.