Sparkfun Triad (AS7265x) library 1.0.4 and Arduino UNO R4 WiFi

Hi Everyone,

I am wondering if someone was successful with the combo Arduino UNO R4 Wifi and the Triad AS7265x sensor using I2C.

I tried several things including the fact of using Wire2 instead of Wire but I was unsuccessful.

The only success I had was to use an Arduino Duo using the I2C pins connected to a qwiic connector adapter.

However, I had to use the 1.0.3 library since the 1.0.4 did not work. Actually I did not have any success with 1.0.4 with all the boards I tested (Arduino UNO R4 WiFi, Arduino UNO R4 minima, Arduino Duo.

I am wondering if the developer of the library tested with these recent boards since it is a pity the component is sold, the library exist but many people are getting troubles.

Thanks for the support,

rikseventyseven

Did you try the wire2 library?

Thanks for the answer and the question.

I initially tried to use Wire2 although it was not explicitly used in the example codes of the Triad sensor.

void setup()
{
  Serial.begin(115200);
  Serial.println("AS7265x Spectral Triad Example");

  Serial.println("Point the Triad away and press a key to begin with illumination...");
  while (Serial.available() == false)
  {
  }              //Do nothing while we wait for user to press a key
  Serial.read(); //Throw away the user's button

  if (sensor.begin() == false)
  {
    Serial.println("Sensor does not appear to be connected. Please check wiring. Freezing...");
    while (1)
      ;
  }

  sensor.disableIndicator(); //Turn off the blue status LED

  Serial.println("A,B,C,D,E,F,G,H,R,I,S,J,T,U,V,W,K,L");
}

I guess I should then use it editing the library directly. I tried to just write ```
sensor.begin(Wire2)


It is a good question if the 1.0.3 library would work with such syntax on Wire2 on the Arduino R4 WiFi.

I am so annoyed that I need to use Arduino Due which seems to be a total overkill for the project also in terms of form factor...