2023-06-17 18:28:40 -04:00
|
|
|
#ifndef BME_UTILS_H_
|
|
|
|
|
#define BME_UTILS_H_
|
|
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
#include <Adafruit_Sensor.h>
|
2023-10-09 22:12:29 -03:00
|
|
|
|
2023-12-24 11:30:19 -03:00
|
|
|
#define BME280Sensor // its set by default but you should comment it with "//"
|
|
|
|
|
//#define BMP280Sensor // and delete "//" from the one you want to use.
|
|
|
|
|
//#define BME680Sensor
|
2023-10-09 22:12:29 -03:00
|
|
|
|
2023-12-24 11:30:19 -03:00
|
|
|
#ifdef BME280Sensor
|
2023-06-17 18:28:40 -04:00
|
|
|
#include <Adafruit_BME280.h>
|
2023-12-24 11:30:19 -03:00
|
|
|
#endif
|
|
|
|
|
#ifdef BMP280Sensor
|
2023-10-09 22:12:29 -03:00
|
|
|
#include <Adafruit_BMP280.h>
|
|
|
|
|
#endif
|
2023-12-24 11:30:19 -03:00
|
|
|
#ifdef BME680Sensor
|
|
|
|
|
#include <Adafruit_BME680.h>
|
|
|
|
|
#endif
|
2023-06-17 18:28:40 -04:00
|
|
|
|
|
|
|
|
namespace BME_Utils {
|
|
|
|
|
|
|
|
|
|
void setup();
|
2023-12-24 11:30:19 -03:00
|
|
|
|
|
|
|
|
String generateTempString(float bmeTemp);
|
|
|
|
|
String generateHumString(float bmeHum);
|
|
|
|
|
String generatePresString(float bmePress);
|
|
|
|
|
String readDataSensor();
|
2023-06-17 18:28:40 -04:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|