Skip to content

getI2CAddress()

Arnd edited this page Jun 20, 2020 · 2 revisions

getI2CAddress();


This returns the I2C address of the BME680 in use by the current instance of the library.


Example:

BME680_Class BME680;  // Instantiate class    
...    
while (!BME680.begin()) {                          // Find on I2C bus
  Serial.println("Error, unable to find BME680."); // Show error message
  delay(5000);                                     // Wait 5 seconds 
} // of if-then we can't initialize or find the device
Serial.print("The I2C Address of the BME680 is ");
Serial.println(BME680.GetI2CAddress());
...