mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 12:50:53 +00:00
.
This commit is contained in:
@@ -20,8 +20,8 @@ void setup() {
|
|||||||
Serial.println("Setting up BME280 sensor");
|
Serial.println("Setting up BME280 sensor");
|
||||||
Wire.setPins(SDA_PIN, SCL_PIN);
|
Wire.setPins(SDA_PIN, SCL_PIN);
|
||||||
Wire.begin();
|
Wire.begin();
|
||||||
/*unsigned status = bme.begin(0x76); // 0x76
|
//unsigned status = bme.begin(0x76); // 0x76
|
||||||
if (!status) {
|
if (!bme.begin(0x76)) {
|
||||||
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);
|
||||||
Serial.print(" ID of 0xFF probably means a bad address, a BMP 180 or BMP 085\n");
|
Serial.print(" ID of 0xFF probably means a bad address, a BMP 180 or BMP 085\n");
|
||||||
@@ -34,7 +34,7 @@ void setup() {
|
|||||||
digitalWrite(LED_PIN, HIGH);
|
digitalWrite(LED_PIN, HIGH);
|
||||||
delay(250);
|
delay(250);
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
Reference in New Issue
Block a user