Skip to content

Instantly share code, notes, and snippets.

@blister
Last active January 20, 2019 23:27
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 blister/78d7f259a3401c89d3829317d7c52974 to your computer and use it in GitHub Desktop.
Save blister/78d7f259a3401c89d3829317d7c52974 to your computer and use it in GitHub Desktop.
#include "Pitches.h"
/************************/
/** PIN CONFIGURATIONS **/
/************************/
#define led 13
#define buzzer 3
#define echoPin A0
#define pingPin 10
// roughly 2.6 feet
#define detectionDistance 80
void setup() {
//Serial.begin(9600);
pinMode(led, OUTPUT);
pinMode(buzzer, OUTPUT);
pinMode(pingPin, OUTPUT);
pinMode(echoPin, INPUT);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment