6 years, 7 months ago.

How to redefine standard pin

I've buit a board with an ST32F303K8T6 MCU. And I have connected a buzzer to pin PB_3, where normally on the development board, LED1 is connected.

When I include the buzzer.h library and try to create an object on that pin, it compiles but I can hear the 4 slow, 4 quick led 'blinks' coming from the speaker, thus letting me know that there is something wrong, probably in the pindefenition for the the buzzer.

How can I solve this problem?

Be the first to answer this question.