From 7ffe37e061d4484f8056071c03dfda708a3beabe Mon Sep 17 00:00:00 2001 From: arduino12 Date: Sun, 28 Feb 2021 22:32:36 +0200 Subject: [PATCH] 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: --- Adafruit_TCS34725.cpp | 2 +- library.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Adafruit_TCS34725.cpp b/Adafruit_TCS34725.cpp index ec2c462..25fc02c 100644 --- a/Adafruit_TCS34725.cpp +++ b/Adafruit_TCS34725.cpp @@ -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; diff --git a/library.properties b/library.properties index 255eb84..564371d 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit TCS34725 -version=1.3.3 +version=1.3.4 author=Adafruit maintainer=Adafruit sentence=Driver for Adafruit's TCS34725 RGB Color Sensor Breakout