Difference between revisions of "Component: Light Sensor (Grove 101020132) (101020132) (Light)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix Ltd |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="color:gray...") |
|||
Line 20: | Line 20: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
− | == | + | ==Macro reference== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
Revision as of 14:12, 20 January 2023
Author | Matrix Ltd |
Version | 1.0 |
Category | Light |
Contents
Light Sensor (Grove 101020132) component
The Light sensor module is a simple analogue photo transistor. Used to detect the intensity of the indoor light.
Component Source Code
Please click here for the component source code: FC_Comp_Source_Light_Sensor.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetString | |
Reads the ADC as a direct voltage and returns as as tring | |
- STRING | Return |
GetAverageByte | |
Function call to read the ADC as a byte average sample over time | |
- BYTE | NumSamples |
- BYTE | DelayUs |
Number of micro seconds in between taking each sample | |
- BYTE | Return |
GetAverageInt | |
Function call to read the ADC as a full width average sample over time | |
- BYTE | NumSamples |
- BYTE | DelayUs |
Number of micro seconds in between taking each sample | |
- UINT | Return |
GetVoltage | |
Reads the ADC as a direct voltage | |
- FLOAT | Return |
GetInt | |
Blocking call to read the ADC at full bit depth | |
- UINT | Return |
GetByte | |
Blocking call to read the ADC as a byte | |
- BYTE | Return |