added function to switch the externel amplifier with an optocopler