This commit is contained in:
Alexander 2024-06-18 16:08:01 -04:00
parent c4e1879fca
commit 0753f64464
2 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,8 @@
// Uncomment modules as required // Uncomment modules as required
//#define RTC //#define RTC
//#define MICRO_SD //#define MICRO_SD
//#define BMP280 // Adafruit BMP280; temp & pressure #define BMP280 // Adafruit BMP280; temp & pressure
#define BME280 // Generic I2C BME280; temp, pressure & humidity //#define BME280 // Generic I2C BME280; temp, pressure & humidity
/* /*
BME-280 BME-280
SCL -> GPIO 22 SCL -> GPIO 22

View File

@ -278,6 +278,8 @@ void setup() {
// WaveShare BME280 // WaveShare BME280
#ifdef BME280 #ifdef BME280
unsigned status = bme.begin(0x76); // 0x76 unsigned status = bme.begin(0x76); // 0x76
//unsigned status = bme.begin(0x58); // 0x58
if (!status) { if (!status) {
Serial.println("Could not find a valid BME/BMP280 sensor, check wiring!"); Serial.println("Could not find a valid BME/BMP280 sensor, check wiring!");
Serial.print("SensorID was: 0x"); Serial.println(bme.sensorID(),16); Serial.print("SensorID was: 0x"); Serial.println(bme.sensorID(),16);