Skip to content

Commit 9e29f45

Browse files
committed
fix: Added a delay to the examples to aid traceability
1 parent 4839194 commit 9e29f45

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/Simple/Simple.ino

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ void loop(void)
3434
Serial.print("Requesting temperatures...");
3535
sensors.requestTemperatures(); // Send the command to get temperatures
3636
Serial.println("DONE");
37+
delay(5000);
3738
// After we got the temperatures, we can print them here.
3839
// We use the function ByIndex, and as an example get the temperature from the first sensor only.
3940
float tempC = sensors.getTempCByIndex(0);

examples/Single/Single.ino

+1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ void loop(void)
105105
Serial.print("Requesting temperatures...");
106106
sensors.requestTemperatures(); // Send the command to get temperatures
107107
Serial.println("DONE");
108+
delay(5000);
108109

109110
// It responds almost immediately. Let's print out the data
110111
printTemperature(insideThermometer); // Use a simple function to print out the data

0 commit comments

Comments
 (0)