From elektor magazine 06-2012 p72
Interfacing a button and an indicator led from the switch panel to the microcontroller, using a single pair to panel to minimise wiring required.
logic input controls led on/off.
output collector of Q2 echoes button state.