PiStorms  4.015
PiStorms Library Reference by mindsensors.com
 All Classes Namespaces Files Functions Variables
GroveDevices.Grove_PIR_Motion_Sensor Class Reference

This class supports the Grove PIR Motion Sensor v1.2. More...

Inheritance diagram for GroveDevices.Grove_PIR_Motion_Sensor:

Public Member Functions

def __init__
def motionDetected
 @ return True if motion is detected, False otherwise
- Public Member Functions inherited from PiStorms_GRX.GrovePort
def __init__

Additional Inherited Members

- Public Attributes inherited from PiStorms_GRX.GrovePort

Detailed Description

This class supports the Grove PIR Motion Sensor v1.2.

The Grove PIR Motion Sensor allows you to sense motion withing its range. You can change whether or not it is retriggerable with an on-board jumper.

Documentation: http://wiki.seeed.cc/Grove-PIR_Motion_Sensor/

1 import GroveDevices
2 # initialize a PIR motion sensor connected to Bank A digital 1
4 if (button.motionDetected()):
5  print("I see you, hi there!")

The documentation for this class was generated from the following file: