If you can't provide a solution in software by sacrificing two pins that you can drive 180 Deg out of phase
to supply a piezo, then the below circuit may be of some use to you. It is basically a two transistor inverter
designed to be able to handle a floating input. At rest (INPUT) mode each B-E transistor junction "sees"
approximately 0.45 volts thus ensuring that both transistors are OFF. When the signal goes to +5V or GND,
the appropriate transistor is turned ON while the opposing transistor remains OFF. The voltages in the
schematic next to each resistor reflect the actual measured value, as opposed to a calculated value.
While only consuming about 3mA, the overall design provides a significant volume improvement particularly
noticeable at non-resonate frequencies.