Skip to content

Commit

Permalink
Merge pull request #90 from caternuson/fix_math
Browse files Browse the repository at this point in the history
Just make volts
  • Loading branch information
caternuson authored Feb 3, 2024
2 parents 68fc55c + 8d9ec16 commit 3a7f0bd
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 3a7f0bd

Please sign in to comment.