UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

APDS9930 Class

Module: apds9930

This sensor provides digital ambient light sensing (ALS), IR LED and a complete proximity detection system.

Methods

APDS9930

(
  • device
)
Number

APDS-9930 digital proximity and ambient light sensor constructor

Parameters:

  • device Number

    iio 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

(
  • enable
)
Boolean

Enable proximity

Parameters:

  • enable Boolean

    state

Returns:

Boolean:

enableIlluminance

(
  • enable
)
Boolean

Enable illuminance

Parameters:

  • enable Boolean

    state

Returns:

Boolean: