Last active
January 20, 2019 23:27
-
-
Save blister/78d7f259a3401c89d3829317d7c52974 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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