I am using one of these devices - I thought successfully. But I’ve had 2 fail on me (or at least stop producing a tone). A colleague noticed that the buzzer was getting very hot on his system so I checked it out with a third device on my set up.
The buzzer uses 300mA. And it is continuous. This seems excessive. Is there a fault with the device or is it the way I am using it?
My code is trivial:
#define BUZZER_CONTROL WB_IO3
void buzz(int note, int duration)
I am using it to output a short (200ms) beep each minute.