Class ParallaxPir
Represents a Parallax Passive Infrared (PIR) motion sensor.
Assembly: ParallaxPir.dll
View Source
public class ParallaxPir : IDisposable
Implements:
System.IDisposable
Properties
IsDisposed
Gets a value indicating whether the object is disposed.
View Source
public bool IsDisposed { get; }
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
View Source
public void Dispose()
Dispose(bool)
Disposes of the object and releases any associated resources.
View Source
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | A value indicating whether the object is being disposed. |
Events
OnMotionStart
Event raised when motion is detected.
View Source
public event ParallaxPir.MotionChange OnMotionStart
Event Type
Meadow.Foundation.Sensors.Motion.ParallaxPir.MotionChange
OnMotionEnd
Event raised when the PIR sensor indicates that there is no longer any motion.
View Source
public event ParallaxPir.MotionChange OnMotionEnd
Event Type
Meadow.Foundation.Sensors.Motion.ParallaxPir.MotionChange
Implements
System.IDisposable