Skip to content

Commit 7ffe37e

Browse files
committed
Add support for device ID 0x4d.
The new device TCS34727 returns this ID (by PDF table in page 27) Pass tests with my new sensor 👍
1 parent 6dc4283 commit 7ffe37e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Adafruit_TCS34725.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ boolean Adafruit_TCS34725::init() {
219219

220220
/* Make sure we're actually connected */
221221
uint8_t x = read8(TCS34725_ID);
222-
if ((x != 0x44) && (x != 0x10)) {
222+
if ((x != 0x4d) && (x != 0x44) && (x != 0x10)) {
223223
return false;
224224
}
225225
_tcs34725Initialised = true;

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit TCS34725
2-
version=1.3.3
2+
version=1.3.4
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=Driver for Adafruit's TCS34725 RGB Color Sensor Breakout

0 commit comments

Comments
 (0)