Instructions
IDUINO for maker’s life
www.openplatform.cc 37
********Code begin********
int speakerPin = 8;
void setup () {
pinMode (speakerPin, OUTPUT);
}
void loop () {
analogWrite (speakerPin, 255);
delay (50);
analogWrite (speakerPin, 0);
delay (10);
}
********Code End********
Module 12: Passive Buzzer
1 Introduction