Support for BME280
This commit is contained in:
1 parent
a6663d44b5
commit
91cc9dba0c
15 files changed
+151
-27
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#ifndef _BME280_H
|
||||
#define _BME280_H
|
||||
|
||||
#include "globals.h"
|
||||
#include <Wire.h>
|
||||
#include <Adafruit_Sensor.h>
|
||||
#include <Adafruit_BME280.h>
|
||||
#include "../lib/Bosch-BSEC/src/bsec.h"
|
||||
|
||||
extern bmeStatus_t
|
||||
bme_status; // Make struct for storing gps data globally available
|
||||
extern TaskHandle_t Bme280Task;
|
||||
|
||||
int bme280_init();
|
||||
void bme280_loop(void *pvParameters);
|
||||
|
||||
#endif
|
||||
+5
-1
@@ -7,10 +7,14 @@
|
||||
#include "spislave.h"
|
||||
#include <lmic.h>
|
||||
|
||||
#ifdef HAS_BME
|
||||
#ifdef HAS_BME680
|
||||
#include "bme680mems.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAS_BME280
|
||||
#include "bme280.h"
|
||||
#endif
|
||||
|
||||
extern Ticker housekeeper;
|
||||
|
||||
void housekeeping(void);
|
||||
|
||||
+5
-1
@@ -151,8 +151,12 @@ extern time_t userUTCTime;
|
||||
#include "sensor.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAS_BME
|
||||
#ifdef HAS_BME680
|
||||
#include "bme680mems.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAS_BME280
|
||||
#include "bme280.h"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user