cable Wire stereo buzzers
1. Connect the short (negative) leg to GND.
2. Connect the long (positive) leg to a GP pin.
play_circle Play two buzzers in stereo
# Import the Speaker component
from picozero import Speaker
# Set up the buzzer with correct pin number
speaker_1 = Speaker(5)
speaker_2 = Speaker(10)
# Play two buzzers in stereo
speaker_1.play('c4', wait=False)
speaker_2.play('a4', wait=False)
bug_report My buzzer doesn't play a sound
- Check your connections.
- Check the pin numbers in your code.