Skip to content

reset()

Arnd edited this page Dec 12, 2020 · 3 revisions

reset();


This performs a hardware reset of the BME680 and then runs the begin() function for the communication method that was used (I2C, hardware SPI or software SPI)


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
...
BME680.reset() ;// Panic, reset the device