FEZ Domino Analog In 2 Issue

Hi,

I found my old Domino and Monster Moto Shield. I’ve written code but I have an issue when trying to run it. When I declare PWM on Di5 and InputPort on An2 I get an error on the second one. example:

static PWM Speed = new PWM((PWM.Pin)FEZ_Pin.PWM.Di5);
static InputPort Current = new InputPort((Cpu.Pin)FEZ_Pin.AnalogIn.An2, true, Port.ResistorMode.PullDown);

I’m getting an exception: InvalidOperation on An2. If I switch the order I’ll get an InvalidOperation on Di5. What is the reason?

I think this return to analog channel, not gpio, and InputPort requires Gpio pin.