Meadow.Foundation.Grove.Sensors.Light.LineFinder
LineFinder | |
---|---|
Status | |
Source code | GitHub |
NuGet package |
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
LineFinder | Meadow Pin |
---|---|
GND | GND |
VCC | 3.3V |
RX | D01 |
TX | D00 |
Class LineFinder
Represents a line finder sensor
Assembly: LineFinder.dll
View Source
Declaration
public class LineFinder
Properties
Color
Last state of the Line Finder
View Source
Declaration
public LineFinder.LineColor Color { get; }
Events
ColorChanged
Event when line color changed
View Source
Declaration
public event EventHandler<LineFinder.LineColor> ColorChanged
Event Type
System.EventHandler<Meadow.Foundation.Grove.Sensors.Light.LineFinder.LineColor>