Should be able to use a digital input to switch modes.