Skip to content

Instantly share code, notes, and snippets.

@seanmtracey
Last active August 29, 2015 14:04
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 seanmtracey/0084c5838da080d94505 to your computer and use it in GitHub Desktop.
Save seanmtracey/0084c5838da080d94505 to your computer and use it in GitHub Desktop.
int out = 9;
float freq = 50;
void setup(){
pinMode(out, OUTPUT);
}
void loop(){
digitalWrite(out, HIGH);
delayMicroseconds(freq);
digitalWrite(out, LOW);
delayMicroseconds(freq);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment