mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2024-09-19 20:06:00 -04:00
.
This commit is contained in:
parent
3a5b0c82fb
commit
8326aaf28e
@ -12,7 +12,7 @@
|
||||
platform = espressif32
|
||||
board = esp32dev
|
||||
framework = arduino
|
||||
monitor_speed = 115200
|
||||
monitor_speed = 9600
|
||||
lib_deps =
|
||||
adafruit/Adafruit BME280 Library@^2.2.2
|
||||
adafruit/Adafruit BMP280 Library@^2.6.8
|
||||
|
@ -17,7 +17,7 @@ struct {
|
||||
|
||||
void setup() {
|
||||
|
||||
Serial.begin(115200);
|
||||
Serial.begin(9600);
|
||||
Serial.println();
|
||||
Serial.println("Running setup ...");
|
||||
sensors_values.humidity = 0.0;
|
||||
@ -44,7 +44,7 @@ void setup() {
|
||||
#endif
|
||||
#ifdef BMP280
|
||||
Adafruit_BMP280 bmp;
|
||||
unsigned status = bmp.begin();
|
||||
unsigned status = bmp.begin(0x76);
|
||||
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