Driver for Me PIR Motion Sensor module.
More...
#include <src/MePIRMotionSensor.h>
Driver for Me PIR Motion Sensor module.
Driver for Me PIR Motionn Sensor module.
Class: MePIRMotionSensor
- Description
- Declaration of Class MePIRMotionSensor.
- Copyright (C), 2012-2016, MakeBlock
◆ MePIRMotionSensor() [1/2]
| MePIRMotionSensor::MePIRMotionSensor |
( |
void |
| ) |
|
Alternate Constructor which can call your own function to map the Motion Sensor device to arduino port, no pins are used or initialized here.
- Parameters
-
◆ MePIRMotionSensor() [2/2]
| MePIRMotionSensor::MePIRMotionSensor |
( |
uint8_t |
port | ) |
|
Alternate Constructor which can call your own function to map the Motion Sensor device to arduino port
- Parameters
-
| [in] | port | - RJ25 port from PORT_1 to M2 |
◆ isHumanDetected()
| bool MePIRMotionSensor::isHumanDetected |
( |
| ) |
|
- Function
- isHumanDetected
- Description
- Is human been detected.
- Parameters
-
- Output
- None
- Return
- ture: human is detected false: no human been detected
- Others
- None
◆ setpin()
| void MePIRMotionSensor::setpin |
( |
uint8_t |
ModePin, |
|
|
uint8_t |
SensorPin |
|
) |
| |
- Function
- setpin
- Description
- Reset the PIR motion sensor available PIN by its arduino port.
- Parameters
-
| [in] | ModePin | - arduino port for BIS0001's A port |
| [in] | SensorPin | - arduino port for BIS0001's Vo port |
- Output
- None
- Return
- None
- Others
- Set global variable _KeyPin and s2
◆ SetPirMotionMode()
| void MePIRMotionSensor::SetPirMotionMode |
( |
uint8_t |
ModePin | ) |
|
- Function
- SetPirMotionMode
- Description
- Set PIR motion sensor's trigger mode.
- Parameters
-
| [in] | ModePin | - 1: Retriggerable, 0: Unrepeatable trigger |
- Output
- None
- Return
- None
- Others
- None
The documentation for this class was generated from the following files: