Skip to content

Commit

Permalink
Add checkConnect flag to getTempC()
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart committed Jun 27, 2024
1 parent 71f1a62 commit bfbcdfe
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/DS18B20_performance/DS18B20_performance.ino
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@ void setup()
Serial.println(stop - start);
delay(10);


start = micros();
temp = sensor.getTempC(false);
stop = micros();
Serial.print("\ngetTempC(false): \t");
Serial.println(temp);
Serial.print("Time: \t");
Serial.println(stop - start);
delay(10);

}


Expand Down

0 comments on commit bfbcdfe

Please sign in to comment.