Meadow.Foundation.Grove.Sensors.Environmental.FlameSensor
FlameSensor | |
---|---|
Status | |
Source code | GitHub |
NuGet package |
Code Example
FlameSensor flameSensor;
public override Task Initialize()
{
Resolver.Log.Info("Initialize...");
flameSensor = new FlameSensor(Device.Pins.D13);
flameSensor.FlameDetected += (s, e) =>
{
Resolver.Log.Info($"fire detected: {e}");
};
return Task.CompletedTask;
}
Sample project(s) available on GitHub
Wiring Example
FlameSensor | Meadow Pin |
---|---|
GND | GND |
VCC | 3.3V |
RX | D01 |
TX | D00 |