Skip to content

Commit

Permalink
fixed output of example script
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk.koehler committed Jul 9, 2018
1 parent ed1518c commit 2c01bed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Examples/HCSR04example/HCSR04example.ino
Expand Up @@ -16,25 +16,25 @@ void setup() {
}

void loop() {
Serial.println("\nSingle measured distance:");
Serial.println("Single measured distance:");
Serial.print(sensor.getDistance(false));
Serial.print(" mm");
delay(1000);
Serial.println("\nAverage of 10 measurements by default:");
Serial.println("Average of 10 measurements by default:");
Serial.print(sensor.getDistance());
Serial.print(" mm");
delay(1000);
Serial.println("\nAverage of 30 measurements defined manually:");
Serial.println("Average of 30 measurements defined manually:");
Serial.print(sensor.getDistance(true,30));
Serial.print(" mm");
delay(1000);
Serial.println("\nObstacle in given range of 500 mm found with average option on:");
Serial.println("Obstacle in given range of 500 mm found with average option on:");
Serial.print(sensor.getObstacle(500));
delay(1000);
Serial.println("\nObstacle in given range of 500 mm found with average option on and 30 measurements:");
Serial.println("Obstacle in given range of 500 mm found with average option on and 30 measurements:");
Serial.print(sensor.getObstacle(500,true,30));
delay(1000);
Serial.println("\nObstacle in given range of 500 mm found with average option off:");
Serial.println("Obstacle in given range of 500 mm found with average option off:");
Serial.print(sensor.getObstacle(500,false));
delay(5000);
}

0 comments on commit 2c01bed

Please sign in to comment.