Skip to main content

Meadow.Foundation.Grove.Sensors.Light.LineFinder

LineFinder
StatusStatus badge: working
Source codeGitHub
NuGet packageNuGet Gallery for Meadow.Foundation.Grove.Sensors.Light.LineFinder

Code Example

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

    var lineFinder = new LineFinder(Device.Pins.D13);

    lineFinder.ColorChanged += (s, e) =>
    {
        Resolver.Log.Info($"line color: {e}");
    };

    return Task.CompletedTask;
}

Sample project(s) available on GitHub

Wiring Example

LineFinderMeadow Pin
GNDGND
VCC3.3V
RXD01
TXD00

Class LineFinder

Represents a line finder sensor

Assembly: LineFinder.dll
View Source
public class LineFinder

Properties

Color

Last state of the Line Finder

View Source
public LineFinder.LineColor Color { get; }

Events

ColorChanged

Event when line color changed

View Source
public event EventHandler<LineFinder.LineColor> ColorChanged
Event Type

System.EventHandler<Meadow.Foundation.Grove.Sensors.Light.LineFinder.LineColor>