Sight | lrf.sight
The Little Robot Friends have a single photocell resister. This photocell enables them to sense light intensity in their environment. Higher levels of light result in higher readings, lower levels of light have lower readings.
Functions called from within the "sight" portion of the library have the prefix of lrf.sight
enable()
Description
This function enables the photocell sensor and the subsequent events it triggers.
Examples
lrf.sight.enable();
Syntax
enable()
Parameters
none
Returns
none
Notes
none
disable()
Description
This function disables the photocell sensor and the subsequent events it triggers.
Examples
lrf.sight.disable();
Syntax
disable()
Parameters
none
Returns
none
Notes
none
read()
Description
This function returns the raw sensor value for the photocell light sensor. Higher levels of light result in higher readings, lower levels of light have lower readings.
Examples
var soundLevel = lrf.sight.read();
Syntax
read()
Parameters
none
Returns
int16_t
Notes
none