Skip to content

Commit

Permalink
Add support for device ID 0x4d.
Browse files Browse the repository at this point in the history
The new device TCS34727 returns this ID (by PDF table in page 27)
Pass tests with my new sensor 👍
  • Loading branch information
arduino12 committed Feb 28, 2021
1 parent 6dc4283 commit 7ffe37e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Adafruit_TCS34725.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ boolean Adafruit_TCS34725::init() {

/* Make sure we're actually connected */
uint8_t x = read8(TCS34725_ID);
if ((x != 0x44) && (x != 0x10)) {
if ((x != 0x4d) && (x != 0x44) && (x != 0x10)) {
return false;
}
_tcs34725Initialised = true;
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit TCS34725
version=1.3.3
version=1.3.4
author=Adafruit
maintainer=Adafruit <info@adafruit.com>
sentence=Driver for Adafruit's TCS34725 RGB Color Sensor Breakout
Expand Down

0 comments on commit 7ffe37e

Please sign in to comment.