GrovePir class
The Grove PIR Motion Sensor.
This sensor allows you to sense motion, usually human movement in its range. It uses passive infra red sensing.
When anyone moves in its detecting range, the sensor will output HIGH on its SIG pin.
Constructors
- GrovePir(Mraa _mraa, MraaGpioContext _context)
- Construction
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasTriggered → bool
-
Check if the sensor has triggered, i.e has transitioned from a 0 to a 1.
This is a latch, if the sensor stays at 1 this will continue to return true
until the sensor transitions back to a 0 when false will be returned.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
Read the current value on the signal pin,
either 0 or 1.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited