2016-03-26 15:27:23 +01:00
|
|
|
#pragma once
|
2016-03-30 00:44:37 +02:00
|
|
|
#ifdef CONFIG_ENABLE_BMP180
|
2016-03-26 15:27:23 +01:00
|
|
|
#include <SFE_BMP180.h>
|
2016-03-28 23:28:33 +02:00
|
|
|
#include "debug_sketch.h"
|
2016-03-26 15:27:23 +01:00
|
|
|
|
|
|
|
// Get Current altitude with http://fr.mygeoposition.com/
|
|
|
|
#define ALTITUDE 130
|
|
|
|
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();
|
|
|
|
|
2016-03-30 00:44:37 +02:00
|
|
|
#else //CONFIG_ENABLE_BMP80
|
2016-06-01 00:36:14 +02:00
|
|
|
int BMP180GetTemperature(double &t){return -1;};
|
|
|
|
int BMP180GetTempAndPressure(double &t, double &p){return -1;};
|
2016-06-18 01:47:35 +02:00
|
|
|
int BMP180Setup(int , int ){SKETCH_DEBUG_PRINTLN("BMP180 is disabled at build time"); return -1;};
|
2016-04-07 15:26:01 +02:00
|
|
|
bool BMP180IsConnected(){return false;};
|
2016-03-26 15:27:23 +01:00
|
|
|
#endif
|