Skip to content

Instantly share code, notes, and snippets.

@catskull
Created July 23, 2017 02:27
Show Gist options
  • Save catskull/defd4153701b5f391866cbeb7a7994cb to your computer and use it in GitHub Desktop.
Save catskull/defd4153701b5f391866cbeb7a7994cb to your computer and use it in GitHub Desktop.
standup
#include <Ultrasonic.h>
Ultrasonic ultrasonic(5, 4);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println(ultrasonic.distanceRead(INC));
delay(500);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment