Skip to content

Commit 228a47a

Browse files
Merge pull request #42 from zemyblue/feat/support_tcs34727
feat: Add support for device ID 0x4D
2 parents 3f83a69 + d6725cd commit 228a47a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_tcs34725.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __init__(self, i2c: I2C, address: int = 0x29):
121121
self.glass_attenuation = 1.0
122122
# Check sensor ID is expectd value.
123123
sensor_id = self._read_u8(_REGISTER_SENSORID)
124-
if sensor_id not in (0x44, 0x10):
124+
if sensor_id not in (0x44, 0x10, 0x4D):
125125
raise RuntimeError("Could not find sensor, check wiring!")
126126

127127
@property

0 commit comments

Comments
 (0)