Skip to content

Instantly share code, notes, and snippets.

@BinarySpoon
Last active November 12, 2020 04:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BinarySpoon/8e655c7133f28dc8b2908f9b2db9c092 to your computer and use it in GitHub Desktop.
Save BinarySpoon/8e655c7133f28dc8b2908f9b2db9c092 to your computer and use it in GitHub Desktop.
void loop() {
// Every 25ms -->
delay(25);
int mean_distance = MeasureDist();
Object_Alert(mean_distance);
// Update Distance To LCD -->
MyLCD.setCursor(6,1);
MyLCD.print(mean_distance);
// Update Distance To Serial -->
Serial.print(mean_distance);
Serial.print("\t");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment