mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2024-10-05 20:47:50 -04:00
.
This commit is contained in:
parent
c4e1879fca
commit
0753f64464
@ -1,8 +1,8 @@
|
||||
// Uncomment modules as required
|
||||
//#define RTC
|
||||
//#define MICRO_SD
|
||||
//#define BMP280 // Adafruit BMP280; temp & pressure
|
||||
#define BME280 // Generic I2C BME280; temp, pressure & humidity
|
||||
#define BMP280 // Adafruit BMP280; temp & pressure
|
||||
//#define BME280 // Generic I2C BME280; temp, pressure & humidity
|
||||
/*
|
||||
BME-280
|
||||
SCL -> GPIO 22
|
||||
|
@ -278,6 +278,8 @@ void setup() {
|
||||
// WaveShare BME280
|
||||
#ifdef BME280
|
||||
unsigned status = bme.begin(0x76); // 0x76
|
||||
//unsigned status = bme.begin(0x58); // 0x58
|
||||
|
||||
if (!status) {
|
||||
Serial.println("Could not find a valid BME/BMP280 sensor, check wiring!");
|
||||
Serial.print("SensorID was: 0x"); Serial.println(bme.sensorID(),16);
|
||||
|
Loading…
Reference in New Issue
Block a user