How to use two buzzera separately

Hello,

I have BBC Micro bit V2 with built in buzzer. I connect it to joypad with its own buzzer. Is there a way to play two different notes in same time - first note on buzzer on Microbit and second note on buzzer built in joypad?

Hi, if you want to use two buzzers in the same time, you should use

music.ringTone(Note.C)

for the built-in buzzer and

pins.analogSetPitchPin(AnalogPin.P0)
pins.analogPitch(440, 100)

for the external buzzer (check if your joypad has its buzzer connected to pin 0).
You may have to specify to use the internal buzzer (music.setBuiltInSpeakerEnabled(true)), because micro:bit can find out if you are using external buzzer.