button switched diode schemes