spoocter:
can i use only a part of the channel array - channel0 and channel1, because i dont need the others for now.
To read the button on channel 0, use digitalReadMux(0).
To read the button on channel 1, use digitalReadMux(1).and i should write digitalWrite(ledpin,digitalRead(digitalReadMux) ?
Depends on which button you want to copy to the LED. You probably want something like:
digitalWrite(ledpin, digitalReadMux(0)); // LED follows button on Mux channel 0EDIT : i will update the code to contain the lines for the led