Added generic mux selection code

(and the IR ADC should theoretically work now)