Tasmota/lib/Joba_Tsl2561-2.0.10
Theo Arends b800db4bac Update library Joba_Tsl2561 from 2.0.7 to 2.0.10
Update library Joba_Tsl2561 from 2.0.7 to 2.0.10
2019-04-18 17:28:56 +02:00
..
examples Update library Joba_Tsl2561 from 2.0.7 to 2.0.10 2019-04-18 17:28:56 +02:00
lib Update library Joba_Tsl2561 from 2.0.7 to 2.0.10 2019-04-18 17:28:56 +02:00
src Update library Joba_Tsl2561 from 2.0.7 to 2.0.10 2019-04-18 17:28:56 +02:00
.gitignore Update library Joba_Tsl2561 from 2.0.7 to 2.0.10 2019-04-18 17:28:56 +02:00
.hgignore Update library Joba_Tsl2561 from 2.0.7 to 2.0.10 2019-04-18 17:28:56 +02:00
.travis.yml Update library Joba_Tsl2561 from 2.0.7 to 2.0.10 2019-04-18 17:28:56 +02:00
COPYING Update library Joba_Tsl2561 from 2.0.7 to 2.0.10 2019-04-18 17:28:56 +02:00
COPYING.LESSER Update library Joba_Tsl2561 from 2.0.7 to 2.0.10 2019-04-18 17:28:56 +02:00
README Update library Joba_Tsl2561 from 2.0.7 to 2.0.10 2019-04-18 17:28:56 +02:00
library.json Update library Joba_Tsl2561 from 2.0.7 to 2.0.10 2019-04-18 17:28:56 +02:00
library.properties Update library Joba_Tsl2561 from 2.0.7 to 2.0.10 2019-04-18 17:28:56 +02:00
platformio.ini Update library Joba_Tsl2561 from 2.0.7 to 2.0.10 2019-04-18 17:28:56 +02:00

README

This is an Arduino library for the TSL2561 digital luminosity sensors from Ams (Taos).

Design goals:
* It is modularized so you can use only what you need if space/ram is constrained.
* It does not swallow error codes so you can react on them.
* It doesn't use floats as they are overkill for most IoT stuff.

Datasheet used:
http://ams.com/eng/Products/Light-Sensors/Ambient-Light-Sensors/TSL2561/TSL2560-TSL2561-Datasheet
http://ams.com/eng/content/download/250094/975485/file/TSL2560-61_DS000110_2-00.pdf
http://ams.com/eng/content/view/download/145438
http://ams.com/eng/content/view/download/181895

To use the library, just place the folder in your projects lib folder.
For usage, see the examples folder.

The library has 3 classes:
Tsl2561     All register access as described in the datasheet, except for interrupts
Tsl2561Util Convenience functions like lux calculation or automatic gain
Tsl2561Int  TODO, Interrupt related stuff (not needed if int pin unconnected)

Tested with boards Nano, ESP8266 and ESP32