Skip to content

Instantly share code, notes, and snippets.

@blister
Created February 18, 2019 02:47
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/de1e5f83a13046a108ed4f0f11b5463a to your computer and use it in GitHub Desktop.
Save blister/de1e5f83a13046a108ed4f0f11b5463a to your computer and use it in GitHub Desktop.
Theremin Setup
#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