This library lets you communicate with a TCS34725 RGB sensor.
https://github.com/adafruit/micropython-adafruit-tcs34725
latest