Remarks

LEDSocket
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.Grove.Leds.LEDSocket

Code Example

LEDSocket led;

public override Task Initialize()
{
    Resolver.Log.Info("Initialize...");

    led = new LEDSocket(Device.Pins.D13);

    return Task.CompletedTask;
}

public override Task Run()
{
    led.StartBlink();

    return Task.CompletedTask;
}

Sample project(s) available on GitHub

Wiring Example

LEDSocket Meadow Pin
GND GND
VCC 3.3V
RX D01
TX D00
Characteristic Locus
Inheritance object Led > LEDSocket
Implements ILed IDisposable
Inherited Members Led.StopAnimation() Led.StartBlink() Led.StartBlink(TimeSpan, TimeSpan) Led.IsOn Led.Port Led.IsDisposed Led.Dispose() Led.Dispose(bool) object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString()
Namespace Meadow.Foundation.Grove.Leds
Assembly LEDSocket.dll

Syntax

public class LEDSocket : Led, ILed, IDisposable

Constructors

LEDSocket(IDigitalOutputPort)

Creates an LEDSocker driver

Declaration
public LEDSocket(IDigitalOutputPort port)

Parameters

Type Name Description
IDigitalOutputPort port

Remarks

LEDSocket
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.Grove.Leds.LEDSocket

Code Example

LEDSocket led;

public override Task Initialize()
{
    Resolver.Log.Info("Initialize...");

    led = new LEDSocket(Device.Pins.D13);

    return Task.CompletedTask;
}

public override Task Run()
{
    led.StartBlink();

    return Task.CompletedTask;
}

Sample project(s) available on GitHub

Wiring Example

LEDSocket Meadow Pin
GND GND
VCC 3.3V
RX D01
TX D00

LEDSocket(IPin)

Creates an LEDSocker driver

Declaration
public LEDSocket(IPin pin)

Parameters

Type Name Description
IPin pin

Remarks

LEDSocket
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.Grove.Leds.LEDSocket

Code Example

LEDSocket led;

public override Task Initialize()
{
    Resolver.Log.Info("Initialize...");

    led = new LEDSocket(Device.Pins.D13);

    return Task.CompletedTask;
}

public override Task Run()
{
    led.StartBlink();

    return Task.CompletedTask;
}

Sample project(s) available on GitHub

Wiring Example

LEDSocket Meadow Pin
GND GND
VCC 3.3V
RX D01
TX D00