#include #include "Adafruit_TCS34725.h" // Create sensor object Adafruit_TCS34725 tcs = Adafruit_TCS34725(); void setup() { Serial.begin(115200); Wire.setSDA(6); // D4 XIAO RP2040 Wire.setSCL(7); // D5 XIAO RP2040 Wire.begin(); if (tcs.begin()) { Serial.println("TCS34725 detected."); } else { Serial.println("TCS34725 not found"); while (1); } } void loop() { uint16_t r, g, b, c; tcs.getRawData(&r, &g, &b, &c); Serial.printf("Red: %d, Green: %d, Blue: %d, Intensity: %d\n", r, g, b, c); delay(1000); }