Add the following snippet to your HTML:<iframe frameborder='0' height='385' scrolling='no' src='https://www.hackster.io/stannano/how-to-use-ky-012-active-buzzer-520d18/embed' width='350'></iframe>
Learn how to use the KY-012 module in seconds!
Read up about this project on
This is the simplest and quickest way how to use an active buzzer.
int buzzerPin = 8; void setup () { pinMode (buzzerPin, OUTPUT); } void loop () { digitalWrite (buzzerPin, HIGH); delay (500); digitalWrite (buzzerPin, LOW); delay (500); } //to use ky-012
Please log in or sign up to comment.
Comments
Please log in or sign up to comment.