|
@ -22,6 +22,7 @@ |
|
|
#include <Adafruit_Sensor.h> |
|
|
#include <Adafruit_Sensor.h> |
|
|
#include "Adafruit_BME280.h" |
|
|
#include "Adafruit_BME280.h" |
|
|
#include "Adafruit_BME680.h" |
|
|
#include "Adafruit_BME680.h" |
|
|
|
|
|
#include <Adafruit_BMP280.h> |
|
|
|
|
|
|
|
|
#include "Adafruit_VEML6075.h" |
|
|
#include "Adafruit_VEML6075.h" |
|
|
#include <BH1750.h> |
|
|
#include <BH1750.h> |
|
@ -54,6 +55,7 @@ static constexpr uint8_t y_offset = 6; |
|
|
|
|
|
|
|
|
Adafruit_BME280 bme280; // I2C (also available: hardware SPI
|
|
|
Adafruit_BME280 bme280; // I2C (also available: hardware SPI
|
|
|
Adafruit_BME680 bme680; // I2C (also available: hardware SPI
|
|
|
Adafruit_BME680 bme680; // I2C (also available: hardware SPI
|
|
|
|
|
|
Adafruit_BMP280 bmp280; |
|
|
//HardwareSerial Serial2(2);
|
|
|
//HardwareSerial Serial2(2);
|
|
|
SdsDustSensor sds(Serial2); |
|
|
SdsDustSensor sds(Serial2); |
|
|
Adafruit_VEML6075 uv = Adafruit_VEML6075(); |
|
|
Adafruit_VEML6075 uv = Adafruit_VEML6075(); |
|
@ -757,6 +759,10 @@ void setup() |
|
|
} else { |
|
|
} else { |
|
|
ESP_LOGE(TAG, "Could not find a valid BME680 sensor, check wiring!"); |
|
|
ESP_LOGE(TAG, "Could not find a valid BME680 sensor, check wiring!"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (bmp280.begin()) { |
|
|
|
|
|
Serial.println("BMP280 found"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (uv.begin()) { |
|
|
if (uv.begin()) { |
|
|
sensors_active.uv = true; |
|
|
sensors_active.uv = true; |
|
|