Piezo buzzer is attached, via a 1K resistor (R25), to PB15 which is the DAC0 out put.
Original intent was for a speaker not a piezo buzzer so need to check it the DAC can drive the buzzer or if we need to bit bang the pin :/
Looking at PB15 in the data sheet this pin can also be used as an output for PWMH3, we currently have LED1_BLUE using PWMH3 via pin PC5, we could switch PWMH3's output between the two if we only need to use one at once
Piezo buzzer is attached, via a 1K resistor (R25), to PB15 which is the DAC0 out put. Original intent was for a speaker not a piezo buzzer so need to check it the DAC can drive the buzzer or if we need to bit bang the pin :/ Looking at PB15 in the data sheet this pin can also be used as an output for PWMH3, we currently have LED1_BLUE using PWMH3 via pin PC5, we could switch PWMH3's output between the two if we only need to use one at once