Skip to content

Commit ec506be

Browse files
committed
fix: Minor change to reduce the example delays
1 parent 9e29f45 commit ec506be

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/Simple/Simple.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +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);
37+
delay(1500);
3838
// After we got the temperatures, we can print them here.
3939
// We use the function ByIndex, and as an example get the temperature from the first sensor only.
4040
float tempC = sensors.getTempCByIndex(0);

examples/Single/Single.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +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);
108+
delay(1500);
109109

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

examples/WaitForConversion/WaitForConversion.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ void loop(void)
6262
Serial.println(sensors.getTempCByIndex(0));
6363
Serial.println("\n\n\n\n");
6464

65-
delay(5000);
65+
delay(1500);
6666
}

0 commit comments

Comments
 (0)