Using the TSL2561

The sensor

The TeensyWiNo includes a Luminosity Sensor, a TSL2561. To use this sensor, use the libraries Adafruit_Sensor and Adafruit_TSL2561 as described in the TeensyWiNo’s page.

Modification required

The library works out-of-the-box, except that you must change TSL2561_ADDR_FLOAT to TSL2561_ADDR_LOW. It will modify the I2C address used. We can have three TSL2561 on the same I2C bus.

  Adafruit_TSL2561_Unified tsl = Adafruit_TSL2561_Unified(TSL2561_ADDR_LOW, 12345);

Then use the sensorapi sketch.

What's on this Page