Error in buzzer program

I am not getting the output in buzzer program.Can anyone please help me with this.

The digitalWrite parameter should contain only HIGH/LOW values, by which you can turn ON/OFF the buzzer.
for example,digitalWrite(0,‘HIGH/LOW’)

For controlling the sound of the buzzer, analogWrite should be used with its parameters.
for example,analogWrite(0,‘values ranging from 0 to 255 depending on the sound of the buzzer’)

1 Like