Zapojení jako parasite power
Zapojení i s napájením
http://www.davevanderwekke.com/technology/netduino2-tutorials/netduino-2-how-to-blink-an-led
public static void Main()
{
// Define a new Output Pin to the external LED
// NOTE: Setting initial state of the pin to "false"
OutputPort redLED = new OutputPort(Pins.GPIO_PIN_D0, false);
// Define a new Output Pin to the onboard LED
// NOTE: Setting initial state of the pin to "true"
OutputPort onboardLED = new OutputPort(Pins.ONBOARD_LED, true);
// Loop forever
while (true)
{
// Turn on the LED
redLED.Write(true);
// Turn off the onboard LED
onboardLED.Write(false);
// Pause 100ms
Thread.Sleep(100);
// Turn off the LED
redLED.Write(false);
// Turn on the onboard LED
onboardLED.Write(true);
// Pause 200ms
Thread.Sleep(200);
}
}