Skip to content

Instantly share code, notes, and snippets.

@BinarySpoon
Last active Nov 12, 2020
Embed
What would you like to do?
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