mirror of
https://github.com/adafruit/Adafruit_TSL2561.git
synced 2025-08-01 01:44:27 +02:00
fix https://github.com/adafruit/Adafruit_TSL2561/issues/11 and bump!
This commit is contained in:
@@ -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;
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user