LoRa_APRS_iGate/src/bme_utils.h

33 lines
665 B
C
Raw Normal View History

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