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.

APDS9002 Class

Module: apds9002

This sensor transforms luminous intensity to output analog values. It uses an APDS-9002 ambient light sensor.
apds9002.jpg

Item Index

Methods

Methods

APDS9002

(
  • pin
)
Number

APDS-9002 luminance sensor constructor

Parameters:

  • pin Number

    Analog pin to use

Returns:

Number:

value

() Number

Gets the luminance value from the sensor

Returns:

Number:

Luminance value