This commit is contained in:
ladyada
2018-01-19 13:07:46 -05:00
parent fbd7d124a3
commit c913785d70
3 changed files with 5 additions and 6 deletions

View File

@@ -107,8 +107,7 @@ boolean Adafruit_TSL2561_Unified::init()
{
/* Make sure we're actually connected */
uint8_t x = read8(TSL2561_REGISTER_ID);
if (!(x & 0x0A))
{
if (x & 0xF0 != 0x10) { // ID code for TSL2561
return false;
}
_tsl2561Initialised = true;

View File

@@ -16,9 +16,9 @@
Connections
===========
Connect SCL to analog 5
Connect SDA to analog 4
Connect VDD to 3.3V DC
Connect SCL to I2C SCL Clock
Connect SDA to I2C SDA Data
Connect VDD to 3.3V or 5V (whatever your logic level is)
Connect GROUND to common ground
I2C Address

View File

@@ -1,5 +1,5 @@
name=Adafruit TSL2561
version=1.0.1
version=1.0.2
author=Adafruit
maintainer=Adafruit <info@adafruit.com>
sentence=Unified sensor driver for Adafruit's TSL2561 breakouts