Keyestudio KS0436 Kit Manual page 68

Table of Contents

Advertisement

68
delay(1);//ms delay
}
for(i=0;i<100;i++)// output a frequency sound
{ digitalWrite(buzzer,HIGH);// sound
digitalWrite(buzzer,LOW);//not sound
delay(2);//2ms delay
}
}
}
Done uploading the code to the board, the passive buzzer will make a
Test Reult:
tone.

Advertisement

Table of Contents
loading

Table of Contents