I'm trying to light up an LED and play a buzzer noise at the same time. Here is my code so far:
Import RPi.GPIO as GPIO
and here is how my RBp is connected:
The LED lights up as expected but all I'm getting from the piezo is a very short static noise as if it's getting electricity. But no sustaining noise.
I don't think theres anything wrong with the code as I've seen multiple examples online that are basically identical and work with no issues. The buzzer I'm using is from the arduino starter kit if thats any help.
If anyone can help me figure out why it's not working that would be very appreciated!