I am trying to get the TCS3472 color sensor to work with RaspberryPi, I have setup I2C succesfully and can detect the sensor with i2cdetect -y 1 which outputs
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- 29 -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
ls /dev/i2*
gives 2 devices
/dev/i2c-1 /dev/i2c-2
If I test the connection with this.
import board
import adafruit_tcs34725
i2c = board.I2C()
sensor = adafruit_tcs34725.TCS34725(i2c)
I get a runtime error
RuntimeError: Could not find sensor, check wiring!
The unit works with Ardiuno.
Using Python 3.9.2
Based on the CircuitPython module for the TCS34725 color sensor. It is not an original AdaFruit product but I would definitely buy one if that was the problem