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.
|
|
Then use the sensorapi
sketch.