Change MUX to matrix configuration with diodes