pyupm_apds9930 module

class pyupm_apds9930.APDS9930(device)[source]

Bases: object

APDS9930 Digital Proximity and Ambient Light Sensor.

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.

C++ includes: apds9930.hpp

enableIlluminance(enable)[source]

bool enableIlluminance(bool enable)

Enable illuminance

enable: state

enableProximity(enable)[source]

bool enableProximity(bool enable)

Enable proximity

enable: state

getAmbient()[source]

int getAmbient()

Gets the ambient luminance value from the sensor

Ambient Luminance value

getProximity()[source]

int getProximity()

Gets the proximity value from the sensor

Proximity value