Last active
October 23, 2018 07:42
-
-
Save li2hub/1684a71e23cd4473ece9e2021d1c2947 to your computer and use it in GitHub Desktop.
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
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