R4 WiFi Test Sketch To Test SparkFun BME280 Communication using QWIIC

Have a new BME280 from SparkFun, have the proper library installed and the red LED comes on.

Every sketch I have tried shows no communication with the BME280.

Asking for technical help, have to start somewhere.

Thank-you!

Qwiic on WIFI R4 is Wire1. Make sure to use Wire1 instead of Wire.

Change

Wire.begin();

if (mySensor.beginI2C() == false) //Begin communication over I2C
{
  Serial.println(“The sensor did not respond. Please check wiring.”);
  while(1); //Freeze
}

change to :

Wire1.begin();

if (mySensor.beginI2C(Wire1) == false) //Begin communication over I2C
{
  Serial.println(“The sensor did not respond. Please check wiring.”);
  while(1); //Freeze
}
1 Like

Thank-you, that was the problem.