I think you are right. The classes from SecretLabs.NETMF.Hardware.Netduino namespace should be actually declared as internal classes on Netduino class. Then it would be clear that you have to write for example Netduino.Pins.GPIO_PIN_D3. Currently this code is invalid. If I remmember ut is done this way in GHI and DeviceSolutions SDKs.
Hi. I'm tryng to use Netduino. First Examples run correctly on board, but I controll pin numbers in Netduino dll:
public static class Pins
{
public const Cpu.Pin GPIO_NONE = -1;
public const Cpu.Pin GPIO_PIN_A0 = 59;
public const Cpu.Pin GPIO_PIN_A1 = 60;
public const Cpu.Pin GPIO_PIN_A2 = 61;
public const Cpu.Pin GPIO_PIN_A3 = 62;
public const Cpu.Pin GPIO_PIN_A4 = 10;
public const Cpu.Pin GPIO_PIN_A5 = 11;
public const Cpu.Pin GPIO_PIN_D0 = 27;
public const Cpu.Pin GPIO_PIN_D1 = 28;
public const Cpu.Pin GPIO_PIN_D10 = 54;
public const Cpu.Pin GPIO_PIN_D11 = 17;
public const Cpu.Pin GPIO_PIN_D12 = 16;
public const Cpu.Pin GPIO_PIN_D13 = 18;
public const Cpu.Pin GPIO_PIN_D2 = 0;
public const Cpu.Pin GPIO_PIN_D3 = 1;
public const Cpu.Pin GPIO_PIN_D4 = 12;
public const Cpu.Pin GPIO_PIN_D5 = 51;
public const Cpu.Pin GPIO_PIN_D6 = 52;
public const Cpu.Pin GPIO_PIN_D7 = 3;
public const Cpu.Pin GPIO_PIN_D8 = 4;
public const Cpu.Pin GPIO_PIN_D9 = 53;
public const Cpu.Pin ONBOARD_LED = 55;
public const Cpu.Pin ONBOARD_SW1 = 29;
}
}
They don't match with numbers on schematic : why?
For example onboard_SW1 = 29, but pin on schematic is 75!!!
Thnak you!