Using the TSL2561 on the TeensyWiNo

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

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.





Facebooktwittergoogle_plusredditpinterestlinkedintumblrmail

Leave a Reply