Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (34 sloc) 956 Bytes

Grove Led modules

Version: 1.0.0-preview3

Connections

Grove Led is connected as followed on Netduino3:

Schematic

Grove Led Mainboard with base shield
Yellow wire Socket D7

Example of code:

using System.Threading;
using Bauland.Grove;
using Bauland.Pins;

namespace TestLed
{
    internal static class Program
    {
        private static void Main()
        {
            // Led Grove module is connected as follow:
            // * yellow wire on D7
            // on a base shield connected on Netduino3 

            Led led = new Led(Netduino3.GpioPin.D7);
            while (true)
            {
                led.TurnOn();
                Thread.Sleep(500);
                led.TurnOff();
                Thread.Sleep(500);
            }
        }
    }
}