From d6725cd51e9c022271c19c5a9f406e5d03974782 Mon Sep 17 00:00:00 2001 From: zemyblue Date: Sun, 30 Apr 2023 00:23:48 +0900 Subject: [PATCH] feat: Add support for device ID 0x4D --- adafruit_tcs34725.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_tcs34725.py b/adafruit_tcs34725.py index 88c201a..994c2c7 100644 --- a/adafruit_tcs34725.py +++ b/adafruit_tcs34725.py @@ -121,7 +121,7 @@ def __init__(self, i2c: I2C, address: int = 0x29): self.glass_attenuation = 1.0 # Check sensor ID is expectd value. sensor_id = self._read_u8(_REGISTER_SENSORID) - if sensor_id not in (0x44, 0x10): + if sensor_id not in (0x44, 0x10, 0x4D): raise RuntimeError("Could not find sensor, check wiring!") @property