Netduino Plus (v1)

Upgrade firmware

OneWire

Senzor DS18B20

Zapojení jako parasite power Zapojení i s napájením

  • modra == oranzovo bila == vcc
  • zenenej == zeleno bila == data
  • zlutej == tmave zeleny == gnd

Blikání LEDkou

http://www.davevanderwekke.com/technology/netduino2-tutorials/netduino-2-how-to-blink-an-led

  • Plusová nožička LEDky je delší než záporná.
    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);
        }
    }

I2C

Web server

netmf/netduino.txt · Poslední úprava: 28.11.2015 15:34 autor: vm

Nástroje pro stránku