int buzzer=9;//set the buzzer control digits IO pin
void setup() {
// put your setup code here, to run once:
pinMode(buzzer,OUTPUT);//set pin9 as output
}
void loop() {
// put your main code here, to run repeatedly:
for(int i=0;i<0;i++){//make a sound
digitalWrite(buzzer,HIGH);//send high signal to buzzer
delay(1);//delay 1ms
digitalWrite(buzzer,LOW);//send lo signal to buzzer
delay(1);
}
delay(50);
for(int j=0;j<100;j++){//make another sound
digitalWrite(buzzer,HIGH);
delay(2);
}
delay(100);
}