Fun story about mute buttons:
Cisco voip phones have the handset switch connected to the microphone amplifiers mute pin. This is so that when the headset is hung up "on hook" on the phone there is no possibility to listen to the microphone. But what a bunch of hackers found out that there is also a GPIO pin connected to that switch so that the software knows when you picked up the phone.
What they did was use some injected code to switch that GPIO pin in to output mode, this then pulled down the switches signal, making the microphone amplifier turn on and they could stream your top secret conversation out to the internet without the handset being picked up.