Created
February 18, 2019 02:47
-
-
Save blister/de1e5f83a13046a108ed4f0f11b5463a to your computer and use it in GitHub Desktop.
Theremin Setup
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
#define led 13 | |
#define buzzer 3 | |
#define echoPin A0 | |
#define pingPin 10 | |
int toneCounter = 0; | |
void setup() { | |
// put your setup code here, to run once: | |
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