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.

TSL2561 Class

Module: tsl2561

TSL2560 and TSL2561 are light-to-digital converters that transform light intensity to a digital signal output capable of a direct I2C ( TSL2561 ) interface
tsl2561.jpg

Item Index

Methods

Methods

TSL2561

(
  • bus
  • devAddr
  • gain
  • integrationTime
)
Number

Instantiates a TSL2561 object

Parameters:

  • bus Number

    Number of the used bus

  • devAddr Number

    Address of the used I2C device

  • gain Number

    Correct gain to use

  • integrationTime Number

    Time to keep the shutter open

Returns:

Number:

getLux

() Number

Gets the calculated lux reading from TSL2561

Returns:

Number:

Calculated lux value from the sensor