Skip to content

Instantly share code, notes, and snippets.

@li2hub

li2hub/Buzzer-nodemcu.ino

Last active Oct 23, 2018
Embed
What would you like to do?
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