Skip to main content

Class ParallaxPir

Represents a Parallax Passive Infrared (PIR) motion sensor.

Assembly: ParallaxPir.dll​
View Source​
Declaration
public class ParallaxPir : IDisposable

Implements:
System.IDisposable

Properties​

IsDisposed​

Gets a value indicating whether the object is disposed.

View Source​
Declaration
public bool IsDisposed { get; }

Methods​

Dispose()​

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

View Source​
Declaration
public void Dispose()

Dispose(bool)​

Disposes of the object and releases any associated resources.

View Source​
Declaration
protected virtual void Dispose(bool disposing)
Parameters​
TypeNameDescription
System.BooleandisposingA value indicating whether the object is being disposed.

Events​

OnMotionStart​

Event raised when motion is detected.

View Source​
Declaration
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​
Declaration
public event ParallaxPir.MotionChange OnMotionEnd
Event Type​

Meadow.Foundation.Sensors.Motion.ParallaxPir.MotionChange

Implements​

  • System.IDisposable