Skip to content

Instantly share code, notes, and snippets.

@li2hub
Last active October 23, 2018 07:42
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 li2hub/1684a71e23cd4473ece9e2021d1c2947 to your computer and use it in GitHub Desktop.
Save li2hub/1684a71e23cd4473ece9e2021d1c2947 to your computer and use it in GitHub Desktop.
int buzzer = D1 ;
void setup ()
{
pinMode (buzzer, OUTPUT) ;
}
void loop ()
{
digitalWrite (buzzer, HIGH) ;
delayMicroseconds(500); ;
digitalWrite (buzzer, LOW) ;
delayMicroseconds(500); ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment