Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By metalphreak
#22761 https://github.com/MetalPhreak/ESP8266_TSL2561

Finished this off today. Code provides access to all the registers via i2c and provides a function to convert the raw data into Lux units.

https://www.sparkfun.com/products/12055
http://www.adafruit.com/products/439
http://www.aliexpress.com/item/TSL2561- ... 85740.html

I ordered mine from Aliexpress and it arrived within a couple of weeks.

Enjoy!
User avatar
By metalphreak
#22911 Have a look at the datasheet for the TSL2561. They provide all the necessary code for use in microcontrollers using scaling and bitshifting. This is what the adafruit arduino library is based on, and is the efficient way of doing it. The sparkfun library uses the pow() function and floating point math... not so great!

http://ams.com/eng/content/download/250 ... 485/142937