updated mapAnalogtoDigital function

all analog inputs can be mapped to all digital outputs