HELP

i want to ask, why the code in my arduino:

digitalWrite (buzzer, HIGH);

the buzzer will not sound, the buzzer will sound if i write:

digitalWrite (buzzer, LOW);

i think it;s suppose to sound when high and mute when it's low.

Help me please, i'm still newbie in using arduino. :sob:

Please post your hardware, wiring, sketch

I cannot help without knowing what board you are using. HOWEVER, if it is an ESP board, normally pin D0 is not GPIO0. D1 is not GPIO 1. Etc

Outside of that, you have provided no clues as to the problem whatsoever

If you want the buzzer to sound when the output is HIGH, make sure the buzzer is connected between the output pin and GND.