Component: Infrared Reflective Sensor (101020174) (101020174) (Grove)

From Flowcode Help
Revision as of 14:51, 22 May 2018 by BenR (talk | contribs) (XML import - Pre 8.0 release)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Author Matrix Ltd
Version 1.0 (Release)
Category Grove


Image 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

BYTE


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.