mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-01-22 08:40:16 +01:00
33 lines
665 B
C++
33 lines
665 B
C++
#ifndef BME_UTILS_H_
|
|
#define BME_UTILS_H_
|
|
|
|
#include <Arduino.h>
|
|
#include <Adafruit_Sensor.h>
|
|
|
|
#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
|
|
|
|
#ifdef BME280Sensor
|
|
#include <Adafruit_BME280.h>
|
|
#endif
|
|
#ifdef BMP280Sensor
|
|
#include <Adafruit_BMP280.h>
|
|
#endif
|
|
#ifdef BME680Sensor
|
|
#include <Adafruit_BME680.h>
|
|
#endif
|
|
|
|
|
|
namespace BME_Utils {
|
|
|
|
void setup();
|
|
|
|
String generateTempString(float bmeTemp);
|
|
String generateHumString(float bmeHum);
|
|
String generatePresString(float bmePress);
|
|
String readDataSensor();
|
|
|
|
}
|
|
|
|
#endif |