APDS9930 Class
- ID: apds9930
- Name: Digital Ambient Light and Proximity Sensor
- Category: light proximity
- Manufacturer: avago
- Connection: iio i2c
- Link: https://www.broadcom.com/products/optical-sensors/integrated-ambient-light-proximity-sensors/apds-9930
This sensor provides digital ambient light sensing (ALS), IR LED and a complete proximity detection system.
Item Index
Methods
APDS9930
(
Number
-
device
APDS-9930 digital proximity and ambient light sensor constructor
Parameters:
-
device
Numberiio device number
Returns:
Number:
getAmbient
()
Number
Gets the ambient luminance value from the sensor
Returns:
Number:
Ambient Luminance value
getProximity
()
Number
Gets the proximity value from the sensor
Returns:
Number:
Proximity value
enableProximity
(
Boolean
-
enable
Enable proximity
Parameters:
-
enable
Booleanstate
Returns:
Boolean:
enableIlluminance
(
Boolean
-
enable
Enable illuminance
Parameters:
-
enable
Booleanstate
Returns:
Boolean: