Component: Infrared Reflective Sensor (101020174) (101020174) (Grove)
From Flowcode Help
Jump to navigationJump to search
Author | Matrix Ltd |
Version | 1.0 (Release) |
Category | Grove |
Contents
Infrared Reflective Sensor (101020174) (101020174) component
Uses InfraRed light to detect if an external object is near to the sensor. Returns a digital signal which can represent detected or not detected states.
Examples
No additional examples
Downloadable macro reference
SampleSensor
Returns the state of the sensor pin.
Parameters
- This macro has no parameters
Return value
Initialise
Configures the I/O ready for the sensor to be sampled.
Parameters
- This macro has no parameters
Return value
- This call does not return a value
Simulation macro reference
This component does not contain any simulation macros
Property reference
SIG Pin
This property is of type Single digital pin and can be referenced with the variable name SIG.
Pin connected to the sensor element of the photo transistor
Sensitivity
This property is of type Unsigned integer and can be referenced with the variable name Sensitivity.
Simulation range used to determine if the sense pin is active or not.