Dec 5, 2012, 4:03:16 PM12/5/12
I have a print based on the netduino. I loaded it with the netduino firmware but now I want to use pins of the uC (AT91SAM7x512) that are not used on the netduino.
I have tried to do this as following:
private const Cpu.Pin GPIO_PIN_PA_6 = (Cpu.Pin)90;
private OutputPort opRS = new OutputPort(GPIO_PIN_PA_6, false);
But when executing the code with the debugger on the hardware, it breaks on the second line with the error:
An unhandled exception of type 'System.ArgumentException' occurred in Microsoft.SPOT.Hardware.dll
Can anyone point me on what I am doing wrong?