Adding a function

Hi, yes I do know about hardware multiplexors, the problem is that the device is based on a custom PCB that cant be modified so I need a soft solution to this.