I made the “clever” decision to wire a buzzer’s positive pin in a PCB straight to VCC, and the ground PIN straight to A0 of a Photon.
Here’s the issue. If I set the PIN to INPUT or not set anything at all in the pin mode, it will silence the BUZZER.
I am guessing this is because the pin is floating. However if I set it as OUTPUT, it will BUZZ No matter what I write to the PIN.
Dumb me for setting this configuration, I was trying to be clever and not to pull more current than necessary from the Photon unnecessarily and never thought about it much after a drew it.
Is there a way to set a PIN Write to Floating (High-Low-Floating) to silence the buzzer without having to configure the pin mode differently (INPUT)?
Any suggestion would be greatly welcomed!