From 68a61690bf54fb24ba255b06dddc3b697034315c Mon Sep 17 00:00:00 2001 From: hans-jurgen Date: Tue, 1 Oct 2024 21:14:05 +0200 Subject: [PATCH] 2024-10-0100 --- include/mess_BME280.h | 2 +- include/mess_BMP280.h | 2 +- platformio.ini | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/mess_BME280.h b/include/mess_BME280.h index 17bea54..36e4b5a 100755 --- a/include/mess_BME280.h +++ b/include/mess_BME280.h @@ -9,7 +9,7 @@ //---------------------------------------------------------------- #include "Adafruit_Sensor.h" #include "Adafruit_BME280.h" -uint8_t BME280_adresse[2] = {0x76, 0x77}; +uint8_t BME280_adresse[2] = {0x76, 0x76}; #define SEALEVELPRESSURE_HPA (1013.25f) //---------------------------------------------------------------- diff --git a/include/mess_BMP280.h b/include/mess_BMP280.h index abb83d0..8e77bc5 100644 --- a/include/mess_BMP280.h +++ b/include/mess_BMP280.h @@ -23,7 +23,7 @@ struct { void Init_BMP280(){ - bool status = bmp.begin(0x76); + bool status = bmp.begin(); F_BMP280 = true; if (!status) { Serial.println("Could not find a valid BME280 sensor, check wiring!"); diff --git a/platformio.ini b/platformio.ini index 6f1c770..c0eaee0 100644 --- a/platformio.ini +++ b/platformio.ini @@ -24,8 +24,10 @@ lib_deps = adafruit/Adafruit MCP9808 Library @ 2.0.0 adafruit/Adafruit BusIO @ 1.16.1 adafruit/Adafruit BME280 Library @ 2.2.4 + adafruit/Adafruit BMP280 Library @ 2.6.8 adafruit/Adafruit Unified Sensor @ 1.1.14 + build_flags = -DTEMPTEST33=1 -DNOBATT=0 @@ -47,7 +49,7 @@ build_flags = ${env.build_flags} -Dmqtt_port=61883 -DTERROR=5 -DTLOWBATT=60 - -DTINTERVAL=1 + -DTINTERVAL=10 -DKorrekturLuftdruck=22.58 [env:marcel] ; Produktivsystem: