Component: PIR Motion (Grove 101020020) (101020020) (Light)
From Flowcode Help
Jump to navigationJump to search
Author | Matrix Ltd |
Version | 1.0 |
Category | Light |
Contents
PIR Motion (Grove 101020020) component
PIR motion sensor component for digital output sensors. Simulates range sensitivity and output hold.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
SampleSensor |
Returns the state of the sensor. Activated if movement detected in the sensor range. | |
![]() |
Return |
![]() |
Initialise |
Configures the I/O ready for the sensor to be sampled. | |
![]() |
Return |
![]() |
GetAverageInt |
Function call to read the ADC as a full width average sample over time | |
![]() |
NumSamples |
![]() |
DelayUs |
Number of micro seconds in between taking each sample | |
![]() |
Return |
![]() |
GetVoltage |
Reads the ADC as a direct voltage | |
[[File:]] - | Return |
![]() |
GetInt |
Blocking call to read the ADC at full bit depth | |
![]() |
Return |
![]() |
GetByte |
Blocking call to read the ADC as a byte | |
![]() |
Return |
![]() |
Initialise |
Initialise the sensor configuration as set by the component properties. Sets the default intigration time and gain as well as enable the sensor. | |
![]() |
Return |