mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-07 23:45:11 +00:00
BME680 module test
This commit is contained in:
parent
036942f4f4
commit
ff7bf00425
4 changed files with 154 additions and 131 deletions
|
|
@ -4,21 +4,28 @@
|
|||
#include <Arduino.h>
|
||||
#include <Adafruit_Sensor.h>
|
||||
|
||||
//#define BMPSensor // uncoment this line if BMP280 Module is connected instead of BME280
|
||||
#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
|
||||
|
||||
#ifndef BMPSensor
|
||||
#ifdef BME280Sensor
|
||||
#include <Adafruit_BME280.h>
|
||||
#else
|
||||
#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();
|
||||
|
||||
String generateTempString(float bmeTemp);
|
||||
String generateHumString(float bmeHum);
|
||||
String generatePresString(float bmePress);
|
||||
String readDataSensor();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue