-
Notifications
You must be signed in to change notification settings - Fork 1
reset()
Arnd edited this page Dec 11, 2020
·
2 revisions
reset();
This performs a hardware reset of the BME280 and then run the begin() for the communication method that was used (I2C, hardware SPI or software SPI)
BME280_Class BME280; // Instantiate class
...
while (!BME280.begin()) { // Find on I2C bus
Serial.println("Error, unable to find BME280."); // Show error message
delay(5000); // Wait 5 seconds
} // of if-then we can't initialize or find the device
...
BME280.reset() ;// Panic, reset the device