2016-03-26 15:27:23 +01:00
|
|
|
#pragma once
|
|
|
|
#ifdef ENABLE_BMP180
|
|
|
|
#include <SFE_BMP180.h>
|
|
|
|
|
|
|
|
// Get Current altitude with http://fr.mygeoposition.com/
|
|
|
|
#define ALTITUDE 130
|
|
|
|
SFE_BMP180 bmp180;
|
|
|
|
int bmp180Connected = 0;
|
|
|
|
|
|
|
|
int BMP180GetTemperature(double &t);
|
|
|
|
int BMP180GetTempAndPressure(double &t, double &p);
|
2016-03-26 15:30:18 +01:00
|
|
|
int BMP180Setup(int sda, int scl);
|
2016-03-26 15:27:23 +01:00
|
|
|
bool BMP180IsConnected();
|
|
|
|
|
|
|
|
#else //ENABLE_BMP80
|
|
|
|
int BMP180GetTemperature(double &t){return 0;};
|
|
|
|
int BMP180GetTempAndPressure(double &t, double &p){return 0;};
|
2016-03-26 15:30:18 +01:00
|
|
|
int BMP180Setup(int , int ){return 0;};
|
2016-03-26 15:27:23 +01:00
|
|
|
bool BMP180IsConnected(){return 0;};
|
|
|
|
#endif
|